Hello :wave:, I'm trying to run all tests on a mul...
# multiplatform
j
Hello 👋, I'm trying to run all tests on a multiplatform project with bitrise CI (stack machine: Xcode 14.0.x, on macOS 13.2, M1 Large). The gradlew task is:
./gradlew allTests testDebugUnitTest --stacktrace --daemon
The error log is:
Copy code
> Task :metadata:metadata-retriever:compileTestKotlinIosSimulatorArm64

e: Compilation failed: /Users/vagrant/.konan/kotlin-native-prebuilt-macos-aarch64-1.9.21/klib/cache/ios_simulator_arm64-gSTATIC-pl/io.ktor:ktor-utils-cinterop-threadUtils/unspecified/641d4a6f6230adbde5c19676cf7148275b607631ec9892d448ad7aed0592fd0f/io.ktor:ktor-utils-cinterop-threadUtils-cache

 * Source files: 
 * Compiler version: 1.9.21
 * Output kind: PROGRAM

e: java.nio.file.NoSuchFileException: /Users/vagrant/.konan/kotlin-native-prebuilt-macos-aarch64-1.9.21/klib/cache/ios_simulator_arm64-gSTATIC-pl/io.ktor:ktor-utils-cinterop-threadUtils/unspecified/641d4a6f6230adbde5c19676cf7148275b607631ec9892d448ad7aed0592fd0f/io.ktor:ktor-utils-cinterop-threadUtils-cache
The project use the following dependencies: • org.jetbrains.kotlin (gradle plugin, script runtime & test) version 1.9.21 • io.ktor (client-*, client-json) version 2.3.7 • kotlinx.coroutines version 1.7.3 • K2 is enabled • kotlin.mpp.enableCInteropCommonization is enabled This problem doesn't occur frequently, sometimes the pipeline fails & sometimes it finishes successfully. When pipelines fails I try to rerun again multiple times until it succeeded to be able to merge the pull request. This point starts to be a painful one 😔. Can anyone help me solve this issue or give me some tips that can avoid these types of problem ? Thank you 🙏
j
I've seen similar errors when compiling my library. Usually after a reboot the error goes away. I usually see the error after making a change to the Kotlin or Gradle version in the project, or some other configuration change. I haven't taken the time to dig into it more or see if there was a YouTrack report for it.
j
Hey Jeff thank you for your reply. This issue is really annoying because it happens often on the multiplatform library. It would be nice to take a bit time to dig into it. Thank you 🙏
j
Does rebooting fix it for you as well?
j
when we retry the pipeline on bitrise sometimes it works but sometines we need to retry several times to have a success result
k
We are seeing this same issue happen on CI happen occassionally
@Jessica Al Araye, what Gradle version are you using?
Our env: Gradle 8.4 Kotlin 1.9.22 Daemon: on Configuration caching: on kotlin.mpp.enableCInteropCommonization=true K2: off