Skip to content

Commit 4b2aa59

Browse files
committed
ci: add logging to _latest S3 update, revert test config
1 parent f9ee2d2 commit 4b2aa59

File tree

2 files changed

+20
-9
lines changed

2 files changed

+20
-9
lines changed

.gitlab/benchmarks/microbenchmarks.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,7 @@ run-benchmarks:
115115
# Cleanup instances after benchmarks
116116
CLEANUP: "true"
117117
# Set to "true" to skip actual benchmarks and use _latest results (for testing the pipeline)
118-
BP_INFRA_TEST: "true"
119-
# TODO: Remove after debugging _latest update failure
120-
CI_COMMIT_REF_NAME: "master"
118+
BP_INFRA_TEST: "false"
121119
before_script:
122120
- !reference [.dd-octo-sts-setup, before_script]
123121
script:

.gitlab/benchmarks/microbenchmarks/infrastructure/instance.yml

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -182,12 +182,25 @@ upload_results:
182182
if ($env:CI_COMMIT_REF_NAME -eq "master") {
183183
$latestPrefix = "$env:CI_PROJECT_NAME/_latest"
184184
Write-Output "Updating latest master results at s3://$s3Bucket/$latestPrefix"
185-
Write-S3Object `
186-
-BucketName $s3Bucket `
187-
-KeyPrefix $latestPrefix `
188-
-Folder $artifactsDir `
189-
-CannedACLName "bucket-owner-full-control" `
190-
-Recurse
185+
Write-Output " Bucket: $s3Bucket"
186+
Write-Output " Prefix: $latestPrefix"
187+
Write-Output " Source: $artifactsDir"
188+
Write-Output " File count: $($files.Count)"
189+
try {
190+
Write-S3Object `
191+
-BucketName $s3Bucket `
192+
-KeyPrefix $latestPrefix `
193+
-Folder $artifactsDir `
194+
-CannedACLName "bucket-owner-full-control" `
195+
-Recurse
196+
Write-Output "_latest update complete!"
197+
}
198+
catch {
199+
Write-Output "ERROR updating _latest: $_"
200+
Write-Output "Exception type: $($_.Exception.GetType().FullName)"
201+
Write-Output "Stack trace: $($_.ScriptStackTrace)"
202+
throw
203+
}
191204
}
192205
} else {
193206
Write-Warning "No files found in $artifactsDir"

0 commit comments

Comments
 (0)