Slackbot
07/14/2023, 12:58 PMFrederik Lohner
07/14/2023, 1:06 PMFrederik Lohner
07/14/2023, 1:06 PMChris Lee
07/14/2023, 1:16 PMCesar Morigaki
07/14/2023, 1:17 PMHave you enabled capturing task inputs for the builds? It should let you compare differencesis this different from showing the cache key of each input? GE tells me that
kotlinJavaToolchainProvider
input cache key is different but I don't know why it isCesar Morigaki
07/14/2023, 1:19 PMChris Lee
07/14/2023, 1:19 PMCesar Morigaki
07/14/2023, 1:21 PMChris Lee
07/14/2023, 1:23 PM./gradlew javaToolChains
and ./gradlew --version
Frederik Lohner
07/14/2023, 1:24 PMThis property may also be set by the "scan.capture-task-input-files" system property. If this is set to any value other than "false", the capture will be enabled. If this is set to "false", the capture will be disabled. If the capture is enabled or disabled via system property, calling this method has no effect. That is, the system property takes precedence over the value set via this method.
Cesar Morigaki
07/14/2023, 4:06 PMCesar Morigaki
07/14/2023, 4:08 PMperhaps compareSameand./gradlew javaToolChains
./gradlew --version
Chris Lee
07/14/2023, 4:09 PMCesar Morigaki
07/14/2023, 4:20 PMAzul Zulu 11.0.18+10-LTS (amd64)
⢠Mine: Azul Zulu 11.0.19+7-LTS (aarch64)
but until yesterday was Azul Zulu 11.0.18+10-LTS (aarch64)
⢠Other Dev1: Azul Zulu 11.0.16.1+1-LTS (aarch64)
⢠Other Dev2: Azul Zulu 11.0.17+8-LTS (aarch64)
-- also w/ cache hitChris Lee
07/14/2023, 4:22 PM# force standard provisioning of JDKs for toolchain tasks (separate from JVM that Gradle uses)
org.gradle.java.installations.auto-detect=false
âŚeven if that helps its a band-aid, need to understand what goes into that cache key and how to normalize it.Chris Lee
07/14/2023, 5:05 PMIf you want information about the build cache key and individual input property hashes, use `-Dorg.gradle.caching.debug=true`:https://docs.gradle.org/current/userguide/build_cache_debugging.html#helpful_data_for_diagnosing_a_cache_miss
Cesar Morigaki
07/14/2023, 5:14 PMorg.gradle.java.installations.auto-detect=false
but it didn't make difference.
I'm using the caching.debug flag too. The information is similar that the GE shows đChris Lee
07/14/2023, 5:16 PMCesar Morigaki
07/14/2023, 5:17 PMAppending input value fingerprint for 'kotlinJavaToolchainProvider' to build cache key: b618efd0c7d4899a20f3aabf3a4125e9
Chris Lee
07/14/2023, 5:18 PMCesar Morigaki
07/14/2023, 5:18 PMChris Lee
07/14/2023, 5:20 PMFrederik Lohner
07/14/2023, 5:31 PMFrederik Lohner
07/14/2023, 5:32 PMChris Lee
07/14/2023, 5:33 PMA âvalue propertyâ is a task input property that is not a file or set of files. Task inputs comparison displays any value inputs whose value changed between the two builds (i.e. unchanged value inputs are not shown). Build scans capture a hash of the value for comparison, not the value itself, so therefore do not show the actual values of the value input in either builds.
Cesar Morigaki
07/14/2023, 5:38 PMChris Lee
07/14/2023, 5:43 PMChris Lee
07/14/2023, 5:45 PMjavaVersion
(type: JavaVersion
), which is an enumeration of the major java version.Chris Lee
07/14/2023, 5:51 PMCesar Morigaki
07/14/2023, 6:01 PMIs this the toolchain provider in question?We're checking this other class but you're right about the javaVersion
Cesar what does the configuration of that Gradle task look like? (utilitykotlin-util:kaptKotlin)We use a convention plugin that ⢠applies kotlin ⢠sets the toolchain ⢠sets a few test dependencies (junit.core, kotlin.junit) ⢠set some common code coverage configuration
Chris Lee
07/14/2023, 6:03 PMDefaultKotlinJavaToolchain
, no additional inputs there. Odd.
Is it possible that setting the toolchain has some sort of conditional logic on it?Chris Lee
07/14/2023, 6:08 PMKaptTask
?Cesar Morigaki
07/14/2023, 8:22 PMcompileKotlin
Cesar Morigaki
07/24/2023, 1:13 PM