Skip to content

Conversation

shishkin-pavel
Copy link

verifies CMP-7505

Release Notes

N/A

.idea/vcs.xml Outdated
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please revert that

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, havent noticed it! :)

@OptIn(ExperimentalTestApi::class)
class WideNavigationRailTest {
@Test
fun `check CMP-7505 compiles`() = runComposeUiTest {
Copy link
Collaborator

@igordmn igordmn Aug 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you check if reverting your fix fails the compilation of this Test?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ohhh, test were in same module as classes-to-be-tested. it caused it not to fail, because compilation failure only happens on compilation in different modules
so ive moved the sample to mpp/demo and it works with compose plugin adjustment and it fails without it

Copy link
Collaborator

@igordmn igordmn Aug 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't compile demo in any CI check right now, so we need to add its compilation somewhere.

But I would not change the demo, as its purpose is not for auto testing. We can move it, for example, to a new module mpp/compilation-tests. And then register its compilation here in all test tasks.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@igordmn are you sure that it's good idea to add it mpp/compilation-tests with pinned versions? I think something like https://github.com/JetBrains/compose-multiplatform/tree/master/ci/templates is much better fit and might be triggered by each dev

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are you sure that it's good idea to add it mpp/compilation-tests with pinned versions

It should be not pinned, indeed.

I think something like https://github.com/JetBrains/compose-multiplatform/tree/master/ci/templates is much better fit and might be triggered by each dev

The test is about compilation with Compose Compiler, so it looks okay to keep it here instead of https://github.com/JetBrains/compose-multiplatform/tree/master/ci/templates, which purpose is for end-to-end checks.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's kinda e2e thing. Also this change basically converts mpp from "just app for debugging" to infra meaningful thing. Which is questionable if we consider mpp folder as a thing that will be migrated to google test app (integration-tests) eventually.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you think that it is better to have it https://github.com/JetBrains/compose-multiplatform/tree/master/ci/templates, I have no objections for that.

Will you request this change?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Already requested. Added more detailed comment in that thread

Copy link
Collaborator

@igordmn igordmn Aug 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's move the conversation there

@shishkin-pavel shishkin-pavel force-pushed the shish/CMP-7505/add-test branch from b299705 to 56a778a Compare August 20, 2025 12:20
exclude("org.jetbrains.compose.ui")
}

implementation("org.jetbrains.compose.material3:material3:1.9.0-beta03")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With this approach it won't really test any future changes

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently, with unpinned dependencies it might work, but it basically introduces new e2e test concept in this repo. It's might be good in long term, but I beleive that it should be done via commonization of Google's integration-tests instead adding more stuff in mpp folder. I guess it's out of the scope here.
I mean I see this mpp folder as "just app for debugging" and eventually needs to be removed, but by introducing infra related stuff to it, you changes the status of it and require more work during migration to integration-tests.

My suggestion is to add such tests in https://github.com/JetBrains/compose-multiplatform/tree/master/ci/templates where our e2e placed now

Copy link
Collaborator

@igordmn igordmn Aug 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@shishkin-pavel shishkin-pavel requested a review from igordmn August 21, 2025 22:24
id("AndroidXPlugin")
id("AndroidXComposePlugin")
id("kotlin-multiplatform")
// [1.4 Update] id("application")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// [1.4 Update] id("application")

@OptIn(ExperimentalTestApi::class)
class WideNavigationRailTest {
@Test
fun `check CMP-7505 compiles`() = runComposeUiTest {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are you sure that it's good idea to add it mpp/compilation-tests with pinned versions

It should be not pinned, indeed.

I think something like https://github.com/JetBrains/compose-multiplatform/tree/master/ci/templates is much better fit and might be triggered by each dev

The test is about compilation with Compose Compiler, so it looks okay to keep it here instead of https://github.com/JetBrains/compose-multiplatform/tree/master/ci/templates, which purpose is for end-to-end checks.

}

kotlin {
jvm()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't we need to include iOS too? Or are there issues including it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants