Skip to content

Commit

Permalink
Fix unstable TryK2IT.smokeTestForNativeTasks test
Browse files Browse the repository at this point in the history
fix test fails with unexpected task execution order


Merge-request: KT-MR-12327
Merged-by: Nataliya Valtman <Nataliya.Valtman@jetbrains.com>
  • Loading branch information
nav-nav authored and qodana-bot committed Sep 22, 2023
1 parent 70ea0de commit e4fc375
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ class TryK2IT : KGPBaseTest() {
assertOutputContains(
"""
|##### 'kotlin.experimental.tryK2' results #####
|:lib:compileKotlin: 2.0 language version
|:app:compileKotlin: 2.0 language version
|:lib:compileKotlin: 2.0 language version
|##### 100% (2/2) tasks have been compiled with Kotlin 2.0 #####
""".trimMargin().normalizeLineEndings()
)
Expand All @@ -112,13 +112,13 @@ class TryK2IT : KGPBaseTest() {
"""
|##### 'kotlin.experimental.tryK2' results #####
|:compileCommonMainKotlinMetadata: 2.0 language version
|:compileNativeMainKotlinMetadata: 2.0 language version
|:compileKotlinLinuxX64: 2.0 language version${
if (HostManager.hostIsMac)
"\n|:compileKotlinMacosArm64: 2.0 language version\n|:compileKotlinMacosX64: 2.0 language version"
else ""
}
|:compileKotlinMingwX64: 2.0 language version
|:compileNativeMainKotlinMetadata: 2.0 language version
|##### 100% ${if (HostManager.hostIsMac) "(6/6)" else "(4/4)"} tasks have been compiled with Kotlin 2.0 #####
""".trimMargin().normalizeLineEndings()
)
Expand Down Expand Up @@ -148,8 +148,8 @@ class TryK2IT : KGPBaseTest() {
assertOutputContains(
"""
|##### 'kotlin.experimental.tryK2' results #####
|:lib:compileKotlin: 2.0 language version
|:app:compileKotlin: 2.0 language version
|:lib:compileKotlin: 2.0 language version
|##### 100% (2/2) tasks have been compiled with Kotlin 2.0 #####
""".trimMargin().normalizeLineEndings()
)
Expand Down Expand Up @@ -294,8 +294,8 @@ class TryK2IT : KGPBaseTest() {
|##### 'kotlin.experimental.tryK2' results #####
|:compileKotlinJs: 2.0 language version
|:compileProductionExecutableKotlinJs: 2.0 language version
|:compileTestKotlinJs: 2.0 language version
|:compileTestDevelopmentExecutableKotlinJs: 2.0 language version
|:compileTestKotlinJs: 2.0 language version
|##### 100% (4/4) tasks have been compiled with Kotlin 2.0 #####
""".trimMargin().normalizeLineEndings()
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ class BuildReportsService {
}
val taskWithK2Percent = (tasksCountWithKotlin2 * 100) / tasksData.count()
val statsData = tasksData.map { it.path to it.kotlinLanguageVersion?.version }
statsData.forEach { record ->
statsData.sortedBy { it.first }.forEach { record ->
log.warn("${record.first}: ${record.second} language version")
}
log.warn(
Expand Down

0 comments on commit e4fc375

Please sign in to comment.