Slackbot
02/15/2023, 7:55 PMVampire
02/15/2023, 8:43 PMJan Duzinkiewicz
02/15/2023, 8:53 PMVampire
02/16/2023, 2:17 AMVampire
02/16/2023, 2:18 AM-Dorg.gradle.caching.debug=true
can help, when set to true, individual input property hashes and the build cache key for each task are logged on the consoleJan Duzinkiewicz
02/16/2023, 3:10 AMJan Duzinkiewicz
02/16/2023, 3:11 AMJan Duzinkiewicz
02/16/2023, 3:14 AMJan Duzinkiewicz
02/16/2023, 3:18 AMno
02/16/2023, 9:18 AMFrançois Guillot
02/16/2023, 10:25 AM/performance/build-cache
page of such build scan using composite builds for convention plugins?
Due to a Gradle chicken-egg issue, it is possible that those early evaluated builds don’t share the build cache setup you declare on your root build.
Do you see a warning here about multiple build cache configuration ?
Can you also maybe check with the Export API the values of the BuildCacheConfiguration
events ?
sth like /build-export/v2/build/<<YOUR BUILD SCAN ID>>/events?eventTypes=BuildCacheConfiguration
François Guillot
02/16/2023, 10:26 AMEug
02/16/2023, 3:23 PMJan Duzinkiewicz
02/16/2023, 4:40 PMDo you see a warning here about multiple build cache configuration ?I do… but I’ve also seen the remote cache being reused by CI nodes
Jan Duzinkiewicz
02/16/2023, 4:47 PMCan you check theyeah, that’s my SOP - create a “unique build by adding an android buildconfig field with a unique value at a “root” of the dependency graph. start a build in CI, start a build locally once CI finishes, check remote cache hits and do a comparison/performance/build-cache
If the comparison shows a lot of tasks with differences in implementation1. for agp 7.2 builds the tasks that are different all seem to fall into “jetifier transform” which is understandable. 2. for “bisect” all builds I’ve done to see that the issue started occuring when we moved to agp 7.3.1 (still using binary plugins)… it’s like 3. for “composite convention plugin builds”… it did show normalization issues? (need to dig those out… I did a lot of comparisons yesterday)… reverting to binary plugins did’t help. Here’s the weirdest thing - “reverting to binary plugins and removing dokka plugin (it was shown as a build-dependencies diff)… > that gets me to remove cache hits (🎉 )… but also build comparisons show no common tasks between builds (which is clearly false) lmk if you want screenshots/more details on any of those cases
Jan Duzinkiewicz
02/16/2023, 4:51 PMJan Duzinkiewicz
02/16/2023, 4:53 PMIf I remember correctly AGP 7.4 requires Java 11 nowJava 11 has been a requirement since AGP 7.x? one thing I’m not sure is if Java 17 is a requirement or just a recommendation for AGP 8.x (the release notes just say it’s bundles now, and 8.1 lint checks will ship with 17, but I’m on 8.0) - if someone could confirm, that would help me plan/communicate jump to java 17 with my team
Eug
02/16/2023, 4:54 PMEug
02/16/2023, 4:55 PMEug
02/16/2023, 4:55 PMJan Duzinkiewicz
02/16/2023, 4:57 PMJan Duzinkiewicz
02/16/2023, 4:59 PMno
02/16/2023, 5:00 PMJan Duzinkiewicz
02/16/2023, 5:01 PMJan Duzinkiewicz
02/16/2023, 5:02 PMJan Duzinkiewicz
02/16/2023, 5:03 PMno
02/16/2023, 5:03 PM/performance/build-cache
page?Jan Duzinkiewicz
02/16/2023, 5:04 PMcan you share a screenshot of thefor which build?page?/performance/build-cache
no
02/16/2023, 5:04 PMno
02/16/2023, 5:04 PMJan Duzinkiewicz
02/16/2023, 5:05 PMJan Duzinkiewicz
02/16/2023, 5:07 PMno
02/16/2023, 5:08 PMJan Duzinkiewicz
02/16/2023, 5:10 PMJan Duzinkiewicz
02/16/2023, 5:16 PMJan Duzinkiewicz
02/16/2023, 8:58 PMJan Duzinkiewicz
02/16/2023, 9:10 PM