Conversation
…ache Project accessors enabled, but root project name not explicitly set for 'buildSrc'. Checking out the project in different folders will impact the generated code and implicitly the buildscript classpath, breaking caching.
|
Performance metrics 🚀
|
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| b7fa26f | 440.10 ms | 533.98 ms | 93.88 ms |
| 6b4dd70 | 399.62 ms | 479.08 ms | 79.47 ms |
| 3d8bd2b | 379.45 ms | 450.36 ms | 70.90 ms |
| 4e29063 | 376.38 ms | 390.98 ms | 14.60 ms |
| 86f0096 | 368.63 ms | 446.92 ms | 78.29 ms |
| 0bd723b | 412.52 ms | 496.65 ms | 84.13 ms |
| d6d2b2e | 463.14 ms | 545.56 ms | 82.42 ms |
| 4e29063 | 384.14 ms | 447.74 ms | 63.60 ms |
| 4e260b3 | 378.73 ms | 454.18 ms | 75.45 ms |
| c7e2fbc | 398.35 ms | 468.52 ms | 70.17 ms |
App size
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| b7fa26f | 1.70 MiB | 2.27 MiB | 583.82 KiB |
| 6b4dd70 | 1.70 MiB | 2.27 MiB | 583.82 KiB |
| 3d8bd2b | 1.72 MiB | 2.29 MiB | 577.53 KiB |
| 4e29063 | 1.72 MiB | 2.29 MiB | 578.38 KiB |
| 86f0096 | 1.72 MiB | 2.29 MiB | 576.50 KiB |
| 0bd723b | 1.72 MiB | 2.29 MiB | 578.09 KiB |
| d6d2b2e | 1.72 MiB | 2.27 MiB | 555.05 KiB |
| 4e29063 | 1.72 MiB | 2.29 MiB | 578.38 KiB |
| 4e260b3 | 1.72 MiB | 2.27 MiB | 554.95 KiB |
| c7e2fbc | 1.72 MiB | 2.29 MiB | 576.40 KiB |
I still see the git submodule checkout in the logs, e.g. https://github.com/getsentry/sentry-java/actions/runs/8170306185/job/22336200668?pr=3245#step:5:37 Dunno if we should have an env-variable indicating that we shouldn't execute that git submodule block on CI? |
It looks like it takes no time: |

📜 Description
Enable recursive checkout of github submodules, moving this higher up in the cache, instead of performing the checkout as part of the build. This basically speeds-up the submodule checkout in settings.gradle, as it will no-op.
EnableRemoved in favor ofgradlecache for setup-java.gradle/actions/setup-gradlecaching.Move from
gradle/gradle-build-actionto the newergradle/actions/setup-gradle, which offers improved caching (both dependencies and build cache), see the repo for more detailsEnable
gradle-home-cache-cleanupfor every workflow#skip-changelog
💡 Motivation and Context
Faster builds!
💚 How did you test it?
📝 Checklist
sendDefaultPIIis enabled.🔮 Next steps