Skip to content

Commit 8ecf61d

Browse files
committed
Add --availability-wait-timeout when --fail-if-not-fully-cacheable is used
This change adds the `--availability-wait-timeout` option to the build scan summary tool invocation with a value of '60' when the `--fail-if-not-fully-cacheable` option is used. This should increase the likelihood of experiment build scans being ingested in order to retrieve the required data from the Develocity API to determine cacheability.
1 parent 60d4e07 commit 8ecf61d

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

Diff for: build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ val isDevelopmentRelease = !hasProperty("finalRelease")
6161
val releaseVersion = releaseVersion()
6262
val releaseNotes = releaseNotes()
6363
val distributionVersion = distributionVersion()
64-
val buildScanSummaryVersion = "1.0.1-2024.1"
64+
val buildScanSummaryVersion = "1.0.1-2024.1" //todo update once new version is released
6565

6666
allprojects {
6767
version = releaseVersion.get()

Diff for: components/scripts/lib/build-scan-online.sh

+4
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ fetch_build_scan_data() {
9595
args+=("--brief-logging")
9696
fi
9797

98+
if [[ "${fail_if_not_fully_cacheable}" == "on" ]]; then
99+
args+=("--build-scan-availability-wait-timeout" "60")
100+
fi
101+
98102
for run_num in "${!build_scan_urls[@]}"; do
99103
args+=( "${run_num},${build_scan_urls[run_num]}" )
100104
done

Diff for: release/changes.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
> [!IMPORTANT]
22
> The distributions of the Develocity Build Validation Scripts prefixed with `gradle-enterprise` are deprecated and will be removed in a future release. Migrate to the distributions prefixed with `develocity` instead.
33
4+
- [NEW] Wait up to 60 seconds for experiment build scans to become available when `--fail-if-not-fully-cacheable` is used
45
- [FIX] Successful exit code returned when performance characteristics are unknown and `--fail-if-not-fully-cacheable` is used

0 commit comments

Comments
 (0)