Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make ALIBUILD_*_HASH variables available in build container #1275

Merged
merged 1 commit into from
Dec 4, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions ci/build-loop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -227,14 +227,13 @@ fi
build_identifier=${NO_ASSUME_CONSISTENT_EXTERNALS:+${PR_NUMBER//-/_}}
: "${build_identifier:=${CHECK_NAME//\//_}}"

# o2checkcode needs the ALIBUILD_{HEAD,BASE}_HASH variables.
# o2checkcode and O2DPG checks need the ALIBUILD_{HEAD,BASE}_HASH variables.
# We need "--no-auto-cleanup" so that build logs for dependencies are kept, too.
# For instance, when building O2FullCI, we want to keep the o2checkcode log, as
# report-pr-errors looks for errors in it.
# --docker-extra-args=... uses an equals sign as its arg can start with "--",
# --which would confuse argparse if passed as a separate argument.
if ALIBUILD_HEAD_HASH=$PR_HASH ALIBUILD_BASE_HASH=$base_hash \
clean_env long_timeout aliBuild build "$PACKAGE" \
if clean_env long_timeout aliBuild build "$PACKAGE" \
-j "${JOBS:-$(nproc)}" -z "$build_identifier" \
--defaults "$ALIBUILD_DEFAULTS" \
${REMOTE_STORE:+--remote-store "$REMOTE_STORE"} \
Expand All @@ -244,6 +243,8 @@ if ALIBUILD_HEAD_HASH=$PR_HASH ALIBUILD_BASE_HASH=$base_hash \
-e ALIBOT_PR_BRANCH="$PR_BRANCH" \
-e "ALIBUILD_O2_TESTS=$ALIBUILD_O2_TESTS" \
-e "ALIBUILD_O2PHYSICS_TESTS=$ALIBUILD_O2PHYSICS_TESTS" \
-e "ALIBUILD_HEAD_HASH=$PR_HASH" \
-e "ALIBUILD_BASE_HASH=$base_hash" \
${jalien_token_cert:+-e "JALIEN_TOKEN_CERT=$jalien_token_cert"} \
${jalien_token_key:+-e "JALIEN_TOKEN_KEY=$jalien_token_key"} \
${use_docker:+-e GIT_CONFIG_COUNT=1} \
Expand Down