Gabriel Feo
08/14/2024, 8:52 PMclasspathStructure
input was found to be the main local-local cache miss in a project. Has anyone encountered this? Any ideas on how to find what the actual difference is between builds?Inaki Villar
08/14/2024, 9:57 PMGabriel Feo
08/15/2024, 1:40 PMInaki Villar
08/15/2024, 6:00 PMGabriel Feo
08/15/2024, 9:32 PMGabriel Feo
08/15/2024, 10:28 PM@Classpath
-annotated ConfigurableFileCollection
input, do you happen to know what the hash after each file is? The one after " / " in the end
Appending input file fingerprints for 'classpathSnapshotProperties.classpathSnapshot' to build cache key: 324da4c69283103d2fe03508e60e6db6 - CLASSPATH{/Users/gabrielfeo2/.gradle/caches/8.8/transforms/12679143162a17ea33fc81707e533d86/transformed/R_jar-snapshot.bin=IGNORED / 80e215ef46218de1a44229cfa725909c, [...]
The exact input property is this.
Re-running with -Dorg.gradle.caching.debug=true
, I found that all the paths reported by Develocity as different on that input, have the same hash after " / ". I also found that other elements (not reported as different) have the same hash (images). But I haven't figured out what the hash stands for yetInaki Villar
08/16/2024, 12:03 AMGabriel Feo
08/16/2024, 2:50 PMInaki Villar
08/16/2024, 4:44 PMGabriel Feo
08/16/2024, 5:26 PMInaki Villar
08/16/2024, 6:18 PMkapt
task, but the input was the same: classpathSnapshotProperties.classpathSnapshot
.
In that instance, the problem was that the modularized project contained different modules named "foo," such as "corefoo," "featurefoo", ":foo" and so on. The build scan comparison identified the "foo" snapshot bin as the source of the differences. After they fixed the naming the differences disappearedGabriel Feo
08/19/2024, 5:49 PMGabriel Feo
08/19/2024, 6:36 PMInaki Villar
08/19/2024, 6:49 PMclasspathSnapshotProperties.classpathSnapshot
will inform the team internally