Skip to content

Commit 064499e

Browse files
authored
ci: fail when we cannot get the computed library version (#15326)
## Description This is failing in CI sometimes, where we cannot get the artifact (unclear why), but it is causing issues for the s3 publish job instead of the compute job being the one which fails. ## Testing <!-- Describe your testing strategy or note what tests are included --> ## Risks <!-- Note any risks associated with this change, or "None" if no risks --> ## Additional Notes <!-- Any other information that would be helpful for reviewers -->
1 parent 9739b2f commit 064499e

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.gitlab/download-library-version-from-gh-actions.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,9 @@ while [ $(date +%s) -lt $end_time ]; do
1818
sleep 30
1919
done
2020

21+
if [ ! -f "library-version/version.txt" ]; then
22+
echo "Failed to download library version artifact from GitHub Actions"
23+
exit 1
24+
fi
25+
2126
echo "Library Version: $(cat library-version/version.txt)"

.gitlab/package.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ compute_library_version:
66
DDOCTOSTS_ID_TOKEN:
77
aud: dd-octo-sts
88
script: |
9+
set -eo pipefail
10+
911
if [ -z ${GH_TOKEN} ]
1012
then
1113
# Use dd-octo-sts to get GitHub token

0 commit comments

Comments
 (0)