Skip to content

Conversation

@trask
Copy link
Member

@trask trask commented Dec 9, 2025

No description provided.

@trask trask requested a review from a team as a code owner December 9, 2025 04:32
@trask trask force-pushed the local-public-build-scans branch from 36414ef to 4de1ae8 Compare December 9, 2025 04:49
@laurit
Copy link
Contributor

laurit commented Dec 9, 2025

It might be beneficial to enable anonymous access for develocity and always use it from ci. Then PR builds could also use the build cache.

}

buildScan {
uploadInBackground = !isCI
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested and uploadInBackground didn't make a noticeable difference locally so removed

Comment on lines +90 to +93
buildCache {
remote(HttpBuildCache::class) {
url = uri("$develocityServer/cache/")
isPush = isCI && develocityAccessKey.isNotEmpty()
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the magic to get it to use our develocity server just for the (read-only) build cache 🤞

@trask
Copy link
Member Author

trask commented Dec 9, 2025

It might be beneficial to enable anonymous access for develocity and always use it from ci. Then PR builds could also use the build cache.

good idea, I think I got this working in the PR now

@trask
Copy link
Member Author

trask commented Dec 9, 2025

It might be beneficial to enable anonymous access for develocity and always use it from ci. Then PR builds could also use the build cache.

good idea, I think I got this working in the PR now

wow, great idea, check out the PR build time now!!

@trask trask changed the title Fix local use of gradle --scan Use develocity build cache in PRs and local builds Dec 9, 2025
@trask trask merged commit 82942c2 into open-telemetry:main Dec 9, 2025
85 checks passed
@trask trask deleted the local-public-build-scans branch December 9, 2025 19:14
trask added a commit to trask/opentelemetry-java that referenced this pull request Dec 9, 2025
trask added a commit to trask/opentelemetry-java-contrib that referenced this pull request Dec 9, 2025
trask added a commit to trask/opentelemetry-java-examples that referenced this pull request Dec 9, 2025
trask added a commit to trask/opentelemetry-java-contrib that referenced this pull request Dec 9, 2025
trask added a commit to trask/opentelemetry-java-examples that referenced this pull request Dec 9, 2025
trask added a commit to trask/opentelemetry-java-contrib that referenced this pull request Dec 9, 2025
trask added a commit to trask/opentelemetry-java that referenced this pull request Dec 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants