Oleg Yukhnevich
02/11/2023, 7:36 PMe: /home/runner/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlinx/kotlinx-coroutines-test-linuxx64/1.6.4/4757f4ccaeca3c186c03adb80dd4125932850259/kotlinx-coroutines-test is cached (in /home/runner/.gradle/konan/kotlin-native-prebuilt-linux-x86_64-1.8.20-Beta/klib/cache/linux_x64-gSTATIC/org.jetbrains.kotlinx:kotlinx-coroutines-test/unspecified/1e60851fbe3383bc94735442f181a9273d1e96adaab6fe4b95811738dc5e378e/org.jetbrains.kotlinx:kotlinx-coroutines-test-cache/bin/liborg.jetbrains.kotlinx:kotlinx-coroutines-test-cache.a), but its dependency isn't: /home/runner/.gradle/konan/kotlin-native-prebuilt-linux-x86_64-1.8.20-Beta/klib/common/stdlib
• https://github.com/rsocket/rsocket-kotlin/actions/runs/4152472478/jobs/7183450649
e: /home/runner/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlinx/atomicfu-linuxx64/0.19.0/e5e28a197f697b77d49846bfec2fce6e0847e5ed/atomicfu is cached (in /home/runner/.gradle/konan/kotlin-native-prebuilt-linux-x86_64-1.8.20-Beta/klib/cache/linux_x64-gSTATIC/org.jetbrains.kotlinx:atomicfu/unspecified/7ec08e59096adf58ceb23075044b5b12968ce418b16d8d23364485d49f5fe48c/org.jetbrains.kotlinx:atomicfu-cache/bin/liborg.jetbrains.kotlinx:atomicfu-cache.a), but its dependency isn't: /home/runner/.gradle/konan/kotlin-native-prebuilt-linux-x86_64-1.8.20-Beta/klib/common/stdlib
or
e: /home/runner/.gradle/caches/modules-2/files-2.1/io.ktor/ktor-utils-linuxx64/2.2.3/1f96940f71493794b49a4fe22d25e448ae663854/ktor-utils is cached (in /home/runner/.gradle/konan/kotlin-native-prebuilt-linux-x86_64-1.8.20-Beta/klib/cache/linux_x64-gSTATIC/io.ktor:ktor-utils/unspecified/cd659155ccdeccb8b955ac996626c4018e6b1b19d85023c63b5d72de04e3affe/io.ktor:ktor-utils-cache/bin/libio.ktor:ktor-utils-cache.a), but its dependency isn't: /home/runner/.gradle/konan/kotlin-native-prebuilt-linux-x86_64-1.8.20-Beta/klib/common/stdlib
Adam S
02/11/2023, 7:58 PM--no-parallel
to the Gradle command? Kotlin/Native doesn’t follow the Gradle API so it’s a bit janky
https://kotlinlang.slack.com/archives/C3SGXARS6/p1585734327100500
https://youtrack.jetbrains.com/issue/KT-56309Oleg Yukhnevich
02/12/2023, 9:18 AMAdam S
02/12/2023, 9:21 AMAdam S
02/12/2023, 9:23 AMconcurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
(copied from https://docs.github.com/en/actions/examples/using-concurrency-expressions-and-a-test-matrix)Oleg Yukhnevich
02/12/2023, 9:23 AMkotlin.native.cacheKind=none
And BTW, I’ve already disabled gradle caches for kotlin-1.8.20
branch at all, so it should not be an issue with outdated cachesAdam S
02/12/2023, 9:24 AMOleg Yukhnevich
02/12/2023, 9:26 AMit might help to cache Konan separately from Gradleyeah, thought, it’s harder to do it correctly, because then I need to know Kotlin version inside GA workflow, but I will think about it, thx!
Adam S
02/12/2023, 9:34 AM.konan/
without the Kotlin version, just based on the OS, and trust that eventually GitHub will delete the cache once it gets too big.jb.igor.chevdar
02/12/2023, 11:03 AMkotlin.native.cacheOrchestration=gradle
(we’ve reworked caches in 1.8.20 and this flag is a way to fallback to the previous implementation).jb.igor.chevdar
02/12/2023, 11:08 AMOleg Yukhnevich
02/12/2023, 11:18 AMjb.igor.chevdar
02/12/2023, 11:21 AMBTW, locally on Mac M1 it’s not reproduced at my sideThis is expected (the caches are turned off now on Mac M1)
Oleg Yukhnevich
02/12/2023, 12:11 PMkotlin.native.cacheOrchestration=gradle
instead of kotlin.native.cacheKind=none
also solves linkage errorOleg Yukhnevich
02/12/2023, 3:06 PMjb.igor.chevdar
02/12/2023, 3:07 PMOleg Yukhnevich
02/12/2023, 3:07 PMjb.igor.chevdar
02/12/2023, 3:08 PMOleg Yukhnevich
02/12/2023, 3:09 PMOleg Yukhnevich
02/13/2023, 7:14 AMjb.igor.chevdar
02/13/2023, 7:34 AM./gradlew clean linkDebugTestMacosX64
.
I’m not getting any errors and the logs show that all the caches are being built successfully 🤷Oleg Yukhnevich
02/13/2023, 7:40 AMcheck -PskipTest
may be ? (it’s what is executed on CI)jb.igor.chevdar
02/13/2023, 8:04 AMtry to runNope, still no error.check -PskipTest
jb.igor.chevdar
02/13/2023, 8:07 AMbuild.gradle.kts
for appropriate projects:
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinNativeLink>().configureEach {
toolOptions.verbose.set(true)
}
(I’ve added to cryptography-tests/behavior-tests/build.gradle.kts, cryptography-tests/compatibility-tests/build.gradle.kts and cryptography-tests/test-utils/build.gradle.kts) and rerun CI? (This will add some additional cache-related logging and, hopefully, will shed some light to the problem).Oleg Yukhnevich
02/13/2023, 8:18 AMKONAN_DATA_DIR
(echo "KONAN_DATA_DIR=${HOME}/.gradle/konan" >> $GITHUB_ENV
)- cryptograhy-kotlin also do this (to cache konan distribution by Github Actions)
Now I dropped it - and build was successful with enabled native cachesOleg Yukhnevich
02/13/2023, 8:37 AM:cryptography-tests:cryptography-behavior-tests:linkDebugTestLinuxX64 FAILED
v: Using Kotlin home directory dist/kotlinc
v: CACHING /home/runner/.gradle/konan/kotlin-native-prebuilt-linux-x86_64-1.8.20-Beta/klib/common/stdlib
v: dependencies:
v: caches used:
v: cache dir: /home/runner/.gradle/konan/kotlin-native-prebuilt-linux-x86_64-1.8.20-Beta/klib/cache/linux_x64-gSTATIC
v: CACHING /home/runner/.gradle/konan/kotlin-native-prebuilt-linux-x86_64-1.8.20-Beta/klib/platform/linux_x64/org.jetbrains.kotlin.native.platform.posix
v: dependencies:
v: caches used:
/home/runner/.gradle/konan/kotlin-native-prebuilt-linux-x86_64-1.8.20-Beta/klib/common/stdlib: /home/runner/.gradle/konan/kotlin-native-prebuilt-linux-x86_64-1.8.20-Beta/klib/cache/linux_x64-gSTATIC/stdlib-cache
v: cache dir: /home/runner/.gradle/konan/kotlin-native-prebuilt-linux-x86_64-1.8.20-Beta/klib/cache/linux_x64-gSTATIC
v: CACHING /home/runner/.gradle/caches/modules-2/files-2.1/dev.whyoleg.kcwrapper/libcrypto3-api-linuxx64/0.1.0-SNAPSHOT/5374a360660b3a41958d8f69ed658938c39801d5/libcrypto3-api-linuxx64-0.1.0-SNAPSHOT-cinterop-api
v: dependencies:
v: caches used:
/home/runner/.gradle/konan/kotlin-native-prebuilt-linux-x86_64-1.8.20-Beta/klib/common/stdlib: /home/runner/.gradle/konan/kotlin-native-prebuilt-linux-x86_64-1.8.20-Beta/klib/cache/linux_x64-gSTATIC/stdlib-cache
/home/runner/.gradle/konan/kotlin-native-prebuilt-linux-x86_64-1.8.20-Beta/klib/platform/linux_x64/org.jetbrains.kotlin.native.platform.posix: /home/runner/.gradle/konan/kotlin-native-prebuilt-linux-x86_64-1.8.20-Beta/klib/cache/linux_x64-gSTATIC/org.jetbrains.kotlin.native.platform.posix-cache
v: cache dir: /home/runner/.gradle/konan/kotlin-native-prebuilt-linux-x86_64-1.8.20-Beta/klib/cache/linux_x64-gSTATIC/dev.whyoleg.kcwrapper:libcrypto3-api-cinterop-api/unspecified/a77298f2dded0352a4cfa04c491d1bdf75d452c7dfd9994244d86e7ece4b3fa8
v: CACHING /home/runner/.gradle/caches/modules-2/files-2.1/dev.whyoleg.kcwrapper/libcrypto3-api-linuxx64/0.1.0-SNAPSHOT/20575bea5a23dcb98d4162c3f0a4c1798383053e/libcrypto3-api-linuxx64-0.1.0-SNAPSHOT
v: dependencies:
/home/runner/.gradle/caches/modules-2/files-2.1/dev.whyoleg.kcwrapper/libcrypto3-api-linuxx64/0.1.0-SNAPSHOT/5374a360660b3a41958d8f69ed658938c39801d5/libcrypto3-api-linuxx64-0.1.0-SNAPSHOT-cinterop-api.klib
v: caches used:
/home/runner/.gradle/konan/kotlin-native-prebuilt-linux-x86_64-1.8.20-Beta/klib/common/stdlib: /home/runner/.gradle/konan/kotlin-native-prebuilt-linux-x86_64-1.8.20-Beta/klib/cache/linux_x64-gSTATIC/stdlib-cache
/home/runner/.gradle/konan/kotlin-native-prebuilt-linux-x86_64-1.8.20-Beta/klib/platform/linux_x64/org.jetbrains.kotlin.native.platform.posix: /home/runner/.gradle/konan/kotlin-native-prebuilt-linux-x86_64-1.8.20-Beta/klib/cache/linux_x64-gSTATIC/org.jetbrains.kotlin.native.platform.posix-cache
/home/runner/.gradle/caches/modules-2/files-2.1/dev.whyoleg.kcwrapper/libcrypto3-api-linuxx64/0.1.0-SNAPSHOT/5374a360660b3a41958d8f69ed658938c39801d5/libcrypto3-api-linuxx64-0.1.0-SNAPSHOT-cinterop-api.klib: /home/runner/.gradle/konan/kotlin-native-prebuilt-linux-x86_64-1.8.20-Beta/klib/cache/linux_x64-gSTATIC/dev.whyoleg.kcwrapper:libcrypto3-api-cinterop-api/unspecified/a77298f2dded0352a4cfa04c491d1bdf75d452c7dfd9994244d86e7ece4b3fa8/dev.whyoleg.kcwrapper:libcrypto3-api-cinterop-api-cache
v: cache dir: /home/runner/.gradle/konan/kotlin-native-prebuilt-linux-x86_64-1.8.20-Beta/klib/cache/linux_x64-gSTATIC/dev.whyoleg.kcwrapper:libcrypto3-api/unspecified/53f470a7e573191653f35b1e7cdba39d11612d6641ba5cda5a1f308286a6596e
v: CACHING /home/runner/.gradle/caches/modules-2/files-2.1/dev.whyoleg.kcwrapper/libcrypto3-static-linuxx64/0.1.0-SNAPSHOT/faf10573368e41a45a8e57be717051b0e77ca488/libcrypto3-static-linuxx64-0.1.0-SNAPSHOT-cinterop-static
v: dependencies:
v: caches used:
/home/runner/.gradle/konan/kotlin-native-prebuilt-linux-x86_64-1.8.20-Beta/klib/common/stdlib: /home/runner/.gradle/konan/kotlin-native-prebuilt-linux-x86_64-1.8.20-Beta/klib/cache/linux_x64-gSTATIC/stdlib-cache
v: cache dir: /home/runner/.gradle/konan/kotlin-native-prebuilt-linux-x86_64-1.8.20-Beta/klib/cache/linux_x64-gSTATIC/dev.whyoleg.kcwrapper:libcrypto3-static-cinterop-static/unspecified/4db3c4dd516de69c49b9e523331a546d1a5dfba2e0e88fed4d2527ff9b3256c9
v: CACHING /home/runner/.gradle/caches/modules-2/files-2.1/dev.whyoleg.kcwrapper/libcrypto3-static-linuxx64/0.1.0-SNAPSHOT/36198a4ae7cc71380b5d50b25ecd76e9ee28a1b9/libcrypto3-static-linuxx64-0.1.0-SNAPSHOT
v: dependencies:
/home/runner/.gradle/caches/modules-2/files-2.1/dev.whyoleg.kcwrapper/libcrypto3-static-linuxx64/0.1.0-SNAPSHOT/faf10573368e41a45a8e57be717051b0e77ca488/libcrypto3-static-linuxx64-0.1.0-SNAPSHOT-cinterop-static.klib
/home/runner/.gradle/caches/modules-2/files-2.1/dev.whyoleg.kcwrapper/libcrypto3-api-linuxx64/0.1.0-SNAPSHOT/5374a360660b3a41958d8f69ed658938c39801d5/libcrypto3-api-linuxx64-0.1.0-SNAPSHOT-cinterop-api.klib
/home/runner/.gradle/caches/modules-2/files-2.1/dev.whyoleg.kcwrapper/libcrypto3-api-linuxx64/0.1.0-SNAPSHOT/20575bea5a23dcb98d4162c3f0a4c1798383053e/libcrypto3-api-linuxx64-0.1.0-SNAPSHOT.klib
v: caches used:
/home/runner/.gradle/konan/kotlin-native-prebuilt-linux-x86_64-1.8.20-Beta/klib/common/stdlib: /home/runner/.gradle/konan/kotlin-native-prebuilt-linux-x86_64-1.8.20-Beta/klib/cache/linux_x64-gSTATIC/stdlib-cache
/home/runner/.gradle/caches/modules-2/files-2.1/dev.whyoleg.kcwrapper/libcrypto3-static-linuxx64/0.1.0-SNAPSHOT/faf10573368e41a45a8e57be717051b0e77ca488/libcrypto3-static-linuxx64-0.1.0-SNAPSHOT-cinterop-static.klib: /home/runner/.gradle/konan/kotlin-native-prebuilt-linux-x86_64-1.8.20-Beta/klib/cache/linux_x64-gSTATIC/dev.whyoleg.kcwrapper:libcrypto3-static-cinterop-static/unspecified/4db3c4dd516de69c49b9e523331a546d1a5dfba2e0e88fed4d2527ff9b3256c9/dev.whyoleg.kcwrapper:libcrypto3-static-cinterop-static-cache
/home/runner/.gradle/konan/kotlin-native-prebuilt-linux-x86_64-1.8.20-Beta/klib/platform/linux_x64/org.jetbrains.kotlin.native.platform.posix: /home/runner/.gradle/konan/kotlin-native-prebuilt-linux-x86_64-1.8.20-Beta/klib/cache/linux_x64-gSTATIC/org.jetbrains.kotlin.native.platform.posix-cache
/home/runner/.gradle/caches/modules-2/files-2.1/dev.whyoleg.kcwrapper/libcrypto3-api-linuxx64/0.1.0-SNAPSHOT/5374a360660b3a41958d8f69ed658938c39801d5/libcrypto3-api-linuxx64-0.1.0-SNAPSHOT-cinterop-api.klib: /home/runner/.gradle/konan/kotlin-native-prebuilt-linux-x86_64-1.8.20-Beta/klib/cache/linux_x64-gSTATIC/dev.whyoleg.kcwrapper:libcrypto3-api-cinterop-api/unspecified/a77298f2dded0352a4cfa04c491d1bdf75d452c7dfd9994244d86e7ece4b3fa8/dev.whyoleg.kcwrapper:libcrypto3-api-cinterop-api-cache
/home/runner/.gradle/caches/modules-2/files-2.1/dev.whyoleg.kcwrapper/libcrypto3-api-linuxx64/0.1.0-SNAPSHOT/20575bea5a23dcb98d4162c3f0a4c1798383053e/libcrypto3-api-linuxx64-0.1.0-SNAPSHOT.klib: /home/runner/.gradle/konan/kotlin-native-prebuilt-linux-x86_64-1.8.20-Beta/klib/cache/linux_x64-gSTATIC/dev.whyoleg.kcwrapper:libcrypto3-api/unspecified/53f470a7e573191653f35b1e7cdba39d11612d6641ba5cda5a1f308286a6596e/dev.whyoleg.kcwrapper:libcrypto3-api-cache
v: cache dir: /home/runner/.gradle/konan/kotlin-native-prebuilt-linux-x86_64-1.8.20-Beta/klib/cache/linux_x64-gSTATIC/dev.whyoleg.kcwrapper:libcrypto3-static/unspecified/5e68dc5540b1660f048da55ec1fa2d3914742772b4521b264188a8dd22553798
v: CACHING /home/runner/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlinx/atomicfu-linuxx64/0.17.3/dbf7ab263d8ddbeedc0376daf2646be87267276b/atomicfu-cinterop-interop
v: dependencies:
v: caches used:
/home/runner/.gradle/konan/kotlin-native-prebuilt-linux-x86_64-1.8.20-Beta/klib/common/stdlib: /home/runner/.gradle/konan/kotlin-native-prebuilt-linux-x86_64-1.8.20-Beta/klib/cache/linux_x64-gSTATIC/stdlib-cache
/home/runner/.gradle/konan/kotlin-native-prebuilt-linux-x86_64-1.8.20-Beta/klib/platform/linux_x64/org.jetbrains.kotlin.native.platform.posix: /home/runner/.gradle/konan/kotlin-native-prebuilt-linux-x86_64-1.8.20-Beta/klib/cache/linux_x64-gSTATIC/org.jetbrains.kotlin.native.platform.posix-cache
v: cache dir: /home/runner/.gradle/konan/kotlin-native-prebuilt-linux-x86_64-1.8.20-Beta/klib/cache/linux_x64-gSTATIC/org.jetbrains.kotlinx:atomicfu-cinterop-interop/unspecified/42b5aaaa9509966a6cecd32eb892f4ea93198b459e16daafb7d1c91502f6b845
v: CACHING /home/runner/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlinx/atomicfu-linuxx64/0.17.3/ea2603c4343b2f1e779053662a6e2879842af2d9/atomicfu
w: Opt-in requirement marker kotlinx.coroutines.ExperimentalCoroutinesApi is unresolved. Please make sure it's present in the module dependencies
w: Opt-in requirement marker dev.whyoleg.cryptography.provider.CryptographyProviderApi is unresolved. Please make sure it's present in the module dependencies
w: Opt-in requirement marker dev.whyoleg.cryptography.algorithms.InsecureAlgorithm is unresolved. Please make sure it's present in the module dependencies
v: dependencies:
/home/runner/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlinx/atomicfu-linuxx64/0.17.3/dbf7ab263d8ddbeedc0376daf2646be87267276b/atomicfu-cinterop-interop.klib
v: caches used:
/home/runner/.gradle/konan/kotlin-native-prebuilt-linux-x86_64-1.8.20-Beta/klib/common/stdlib: /home/runner/.gradle/konan/kotlin-native-prebuilt-linux-x86_64-1.8.20-Beta/klib/cache/linux_x64-gSTATIC/stdlib-cache
/home/runner/.gradle/konan/kotlin-native-prebuilt-linux-x86_64-1.8.20-Beta/klib/platform/linux_x64/org.jetbrains.kotlin.native.platform.posix: /home/runner/.gradle/konan/kotlin-native-prebuilt-linux-x86_64-1.8.20-Beta/klib/cache/linux_x64-gSTATIC/org.jetbrains.kotlin.native.platform.posix-cache
/home/runner/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlinx/atomicfu-linuxx64/0.17.3/dbf7ab263d8ddbeedc0376daf2646be87267276b/atomicfu-cinterop-interop.klib: /home/runner/.gradle/konan/kotlin-native-prebuilt-linux-x86_64-1.8.20-Beta/klib/cache/linux_x64-gSTATIC/org.jetbrains.kotlinx:atomicfu-cinterop-interop/unspecified/42b5aaaa9509966a6cecd32eb892f4ea93198b459e16daafb7d1c91502f6b845/org.jetbrains.kotlinx:atomicfu-cinterop-interop-cache
v: cache dir: /home/runner/.gradle/konan/kotlin-native-prebuilt-linux-x86_64-1.8.20-Beta/klib/cache/linux_x64-gSTATIC/org.jetbrains.kotlinx:atomicfu/unspecified/ebd8a9343ad47170e86dba19edc443e3800fc95e5cb9ea396362e2a8d506b0a0
jb.igor.chevdar
02/13/2023, 9:04 AMOleg Yukhnevich
02/13/2023, 9:06 AMjb.igor.chevdar
02/13/2023, 11:36 AM~/.gradle
directory; looks like there’s some kind of names clash here, I will investigate.Oleg Yukhnevich
02/13/2023, 11:38 AM