-
Notifications
You must be signed in to change notification settings - Fork 13k
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
establish immutable source for RUST_CONFIGURE_ARGS #69894
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @pietroalbini (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
This comment has been minimized.
This comment has been minimized.
Sweet! Currently we only run Linux tests on PRs, but I will fork this and run the Windows and Mac tests on it as well. Will update on the results here by EOD or early tomorrow :) |
src/ci/azure-pipelines/auto.yml
Outdated
@@ -85,7 +85,7 @@ jobs: | |||
|
|||
dist-x86_64-apple: | |||
SCRIPT: ./x.py dist | |||
RUST_CONFIGURE_ARGS: --target=aarch64-apple-ios,x86_64-apple-ios --enable-full-tools --enable-sanitizers --enable-profiler --set rust.jemalloc | |||
IINTIAL_RUST_CONFIGURE_ARGS: --target=aarch64-apple-ios,x86_64-apple-ios --enable-full-tools --enable-sanitizers --enable-profiler --set rust.jemalloc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IINTIAL_RUST_CONFIGURE_ARGS: --target=aarch64-apple-ios,x86_64-apple-ios --enable-full-tools --enable-sanitizers --enable-profiler --set rust.jemalloc | |
INITIAL_RUST_CONFIGURE_ARGS: --target=aarch64-apple-ios,x86_64-apple-ios --enable-full-tools --enable-sanitizers --enable-profiler --set rust.jemalloc |
Well that's embarrassing. I'm not near a capable machine right now but will get that fixed. |
Fixed it. |
Testing in #69963 |
Test azure vars Please disregard this pull request - I am opening it only to run all builds on #69894
Test azure vars Please disregard this pull request - I am opening it only to run all builds on #69894
All Windows builds pass! Running on the mac builds and then I think this is good to go! |
Unfortunately, MacOS builds are currently failing for this change https://dev.azure.com/rust-lang/rust/_build/results?buildId=23626&view=logs&j=1c64c3ff-4c37-56fe-a133-b407354bbfbf&t=4e7ef4c5-557b-57f3-58fa-8cf5d2629d9a&l=16 The reason is MacOS ships with Bash 3.163.1. This line: src/ci/scripts/setup-environment.sh if [[ -v INITIAL_RUST_CONFIGURE_ARGS ]]; then Will only work with Bash 4.2 and above (when the ability to define [[ -v FOO ]] was added). |
Ah, dang it, of course. Can anyone suggest a Bash 3-compatible way of testing for the existence of a variable? Everything else I found failed under |
I think I've got one here if [[ -z "${INITIAL_RUST_CONFIGURE_ARGS+x}" ]]; then
INITIAL_RUST_CONFIG=""
echo "No initial Rust Configure Args set"
else
INITIAL_RUST_CONFIG="${INITIAL_RUST_CONFIGURE_ARGS}"
ciCommandSetEnv RUST_CONFIGURE_ARGS "${INITIAL_RUST_CONFIG}"
fi Working on testing it |
Test azure vars Please disregard this pull request - I am opening it only to run all builds on #69894
src/ci/scripts/setup-environment.sh
Outdated
# Since matrix variables are readonly in Azure Pipelines, we take | ||
# INITIAL_RUST_CONFIGURE_ARGS and establish RUST_CONFIGURE_ARGS | ||
# which downstream steps can alter | ||
if [[ -v INITIAL_RUST_CONFIGURE_ARGS ]]; then | ||
ciCommandSetEnv RUST_CONFIGURE_ARGS "${INITIAL_RUST_CONFIGURE_ARGS}" | ||
fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# Since matrix variables are readonly in Azure Pipelines, we take | |
# INITIAL_RUST_CONFIGURE_ARGS and establish RUST_CONFIGURE_ARGS | |
# which downstream steps can alter | |
if [[ -v INITIAL_RUST_CONFIGURE_ARGS ]]; then | |
ciCommandSetEnv RUST_CONFIGURE_ARGS "${INITIAL_RUST_CONFIGURE_ARGS}" | |
fi | |
# Since matrix variables are readonly in Azure Pipelines, we take | |
# INITIAL_RUST_CONFIGURE_ARGS and establish RUST_CONFIGURE_ARGS | |
# which downstream steps can alter | |
# MacOS ships with Bash 3.16, which means we cannot use | |
# if [[ -v FOO ]], as that was introduced in Bash 4.2 | |
if [[ -z "${INITIAL_RUST_CONFIGURE_ARGS+x}" ]]; then | |
INITIAL_RUST_CONFIG="" | |
echo "No initial Rust Configure Args set" | |
else | |
INITIAL_RUST_CONFIG="${INITIAL_RUST_CONFIGURE_ARGS}" | |
ciCommandSetEnv RUST_CONFIGURE_ARGS "${INITIAL_RUST_CONFIG}" | |
fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confirmed through testing that this block works with Linux, Mac, and Windows builds!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shamelessly stealing now!
This is good to merge! |
@bors r+ |
📌 Commit 6db4bb6 has been approved by |
⌛ Testing commit 6db4bb6 with merge 4e44081dc4b4d9560beb1e6e8c6d2aee267a8255... |
@bors retry yielding to r0llup |
☀️ Test successful - checks-azure |
fixes #68671