KTIJ-37466 Add OrderEntriesChecker to testForwardDeclarations test to verify the reason of flakiness

GitOrigin-RevId: cd80e4a395bad9b258a02433011f2914ced2c0dc
This commit is contained in:
Aleksei.Cherepanov
2026-02-06 13:13:04 +00:00
committed by intellij-monorepo-bot
parent 3b1038f831
commit 42ef9c6517
2 changed files with 176 additions and 1 deletions
@@ -7,6 +7,7 @@ import org.jetbrains.kotlin.gradle.multiplatformTests.AbstractKotlinMppGradleImp
import org.jetbrains.kotlin.gradle.multiplatformTests.TestConfigurationDslScope
import org.jetbrains.kotlin.gradle.multiplatformTests.testFeatures.GradleProjectsPublishingTestsFeature
import org.jetbrains.kotlin.gradle.multiplatformTests.testFeatures.checkers.highlighting.HighlightingChecker
import org.jetbrains.kotlin.gradle.multiplatformTests.testFeatures.checkers.orderEntries.OrderEntriesChecker
import org.jetbrains.kotlin.idea.base.plugin.KotlinPluginMode
import org.jetbrains.kotlin.test.TestMetadata
import org.jetbrains.plugins.gradle.tooling.annotation.PluginTargetVersions
@@ -53,7 +54,11 @@ class K2MppHighlightingIntegrationTest : AbstractKotlinMppGradleImportingTest()
@Test
@PluginTargetVersions(pluginVersion = "1.9.20+")
fun testForwardDeclarations() {
doTest()
doTest {
// Added for investigation of KTIJ-37466
// TODO: remove after investigation of flaky test failings
onlyCheckers(OrderEntriesChecker, GradleProjectsPublishingTestsFeature, HighlightingChecker)
}
}
@Test
@@ -0,0 +1,170 @@
MODULES
project
project.consumer
project.consumer.appleMain
Kotlin/Native {{KGP_VERSION}} - DISTRIBUTION STUB
Kotlin/Native: stdlib (COMPILE)
a:consumer-cinterop-myInterop:macos_x64 (COMPILE)
consumer.commonMain (refines, COMPILE)
consumer.nativeMain (refines, COMPILE)
project.consumer.appleTest
Kotlin/Native {{KGP_VERSION}} - DISTRIBUTION STUB
Kotlin/Native: stdlib (TEST)
a:consumer-cinterop-myInterop:macos_x64 (TEST)
consumer.appleMain (friend, TEST)
consumer.commonMain (friend, TEST)
consumer.commonTest (refines, TEST)
consumer.macosMain (friend, TEST)
consumer.macosX64Main (friend, TEST)
consumer.nativeMain (friend, TEST)
consumer.nativeTest (refines, TEST)
project.consumer.commonMain
Kotlin/Native {{KGP_VERSION}} - DISTRIBUTION STUB
Kotlin/Native: stdlib (COMPILE)
project.consumer.commonTest
Kotlin/Native {{KGP_VERSION}} - DISTRIBUTION STUB
Kotlin/Native: stdlib (TEST)
consumer.commonMain (friend, TEST)
consumer.nativeMain (friend, TEST)
project.consumer.linuxMain
Kotlin/Native {{KGP_VERSION}} - DISTRIBUTION STUB
Kotlin/Native: stdlib (COMPILE)
a:consumer-cinterop-myInterop:linux_x64 (COMPILE)
consumer.commonMain (refines, COMPILE)
consumer.nativeMain (refines, COMPILE)
project.consumer.linuxTest
Kotlin/Native {{KGP_VERSION}} - DISTRIBUTION STUB
Kotlin/Native: stdlib (TEST)
a:consumer-cinterop-myInterop:linux_x64 (TEST)
consumer.commonMain (friend, TEST)
consumer.commonTest (refines, TEST)
consumer.linuxMain (friend, TEST)
consumer.linuxX64Main (friend, TEST)
consumer.nativeMain (friend, TEST)
consumer.nativeTest (refines, TEST)
project.consumer.linuxX64Main
Kotlin/Native {{KGP_VERSION}} - DISTRIBUTION STUB
Kotlin/Native: stdlib (COMPILE)
a:consumer-cinterop-myInterop:linux_x64 (COMPILE)
consumer.commonMain (refines, COMPILE)
consumer.linuxMain (refines, COMPILE)
consumer.nativeMain (refines, COMPILE)
project.consumer.linuxX64Test
Kotlin/Native {{KGP_VERSION}} - DISTRIBUTION STUB
Kotlin/Native: stdlib (TEST)
a:consumer-cinterop-myInterop:linux_x64 (TEST)
consumer.commonMain (friend, TEST)
consumer.commonTest (refines, TEST)
consumer.linuxMain (friend, TEST)
consumer.linuxTest (refines, TEST)
consumer.linuxX64Main (friend, TEST)
consumer.nativeMain (friend, TEST)
consumer.nativeTest (refines, TEST)
project.consumer.macosMain
Kotlin/Native {{KGP_VERSION}} - DISTRIBUTION STUB
Kotlin/Native: stdlib (COMPILE)
a:consumer-cinterop-myInterop:macos_x64 (COMPILE)
consumer.appleMain (refines, COMPILE)
consumer.commonMain (refines, COMPILE)
consumer.nativeMain (refines, COMPILE)
project.consumer.macosTest
Kotlin/Native {{KGP_VERSION}} - DISTRIBUTION STUB
Kotlin/Native: stdlib (TEST)
a:consumer-cinterop-myInterop:macos_x64 (TEST)
consumer.appleMain (friend, TEST)
consumer.appleTest (refines, TEST)
consumer.commonMain (friend, TEST)
consumer.commonTest (refines, TEST)
consumer.macosMain (friend, TEST)
consumer.macosX64Main (friend, TEST)
consumer.nativeMain (friend, TEST)
consumer.nativeTest (refines, TEST)
project.consumer.macosX64Main
Kotlin/Native {{KGP_VERSION}} - DISTRIBUTION STUB
Kotlin/Native: stdlib (COMPILE)
a:consumer-cinterop-myInterop:macos_x64 (COMPILE)
consumer.appleMain (refines, COMPILE)
consumer.commonMain (refines, COMPILE)
consumer.macosMain (refines, COMPILE)
consumer.nativeMain (refines, COMPILE)
project.consumer.macosX64Test
Kotlin/Native {{KGP_VERSION}} - DISTRIBUTION STUB
Kotlin/Native: stdlib (TEST)
a:consumer-cinterop-myInterop:macos_x64 (TEST)
consumer.appleMain (friend, TEST)
consumer.appleTest (refines, TEST)
consumer.commonMain (friend, TEST)
consumer.commonTest (refines, TEST)
consumer.macosMain (friend, TEST)
consumer.macosTest (refines, TEST)
consumer.macosX64Main (friend, TEST)
consumer.nativeMain (friend, TEST)
consumer.nativeTest (refines, TEST)
project.consumer.mingwMain
Kotlin/Native {{KGP_VERSION}} - DISTRIBUTION STUB
Kotlin/Native: stdlib (COMPILE)
a:consumer-cinterop-myInterop:mingw_x64 (COMPILE)
consumer.commonMain (refines, COMPILE)
consumer.nativeMain (refines, COMPILE)
project.consumer.mingwTest
Kotlin/Native {{KGP_VERSION}} - DISTRIBUTION STUB
Kotlin/Native: stdlib (TEST)
a:consumer-cinterop-myInterop:mingw_x64 (TEST)
consumer.commonMain (friend, TEST)
consumer.commonTest (refines, TEST)
consumer.mingwMain (friend, TEST)
consumer.mingwX64Main (friend, TEST)
consumer.nativeMain (friend, TEST)
consumer.nativeTest (refines, TEST)
project.consumer.mingwX64Main
Kotlin/Native {{KGP_VERSION}} - DISTRIBUTION STUB
Kotlin/Native: stdlib (COMPILE)
a:consumer-cinterop-myInterop:mingw_x64 (COMPILE)
consumer.commonMain (refines, COMPILE)
consumer.mingwMain (refines, COMPILE)
consumer.nativeMain (refines, COMPILE)
project.consumer.mingwX64Test
Kotlin/Native {{KGP_VERSION}} - DISTRIBUTION STUB
Kotlin/Native: stdlib (TEST)
a:consumer-cinterop-myInterop:mingw_x64 (TEST)
consumer.commonMain (friend, TEST)
consumer.commonTest (refines, TEST)
consumer.mingwMain (friend, TEST)
consumer.mingwTest (refines, TEST)
consumer.mingwX64Main (friend, TEST)
consumer.nativeMain (friend, TEST)
consumer.nativeTest (refines, TEST)
project.consumer.nativeMain
Kotlin/Native {{KGP_VERSION}} - DISTRIBUTION STUB
Kotlin/Native: stdlib (COMPILE)
consumer.commonMain (refines, COMPILE)
project.consumer.nativeTest
Kotlin/Native {{KGP_VERSION}} - DISTRIBUTION STUB
Kotlin/Native: stdlib (TEST)
consumer.commonMain (friend, TEST)
consumer.commonTest (refines, TEST)
consumer.nativeMain (friend, TEST)
Test configuration:
- hiding following standard dependencies: sdk, self
- dependencies order is not checked