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

fix(IDX): don't use interpolation in x86-darwin workflow env #3656

Merged
merged 2 commits into from
Jan 28, 2025

Conversation

nmattia
Copy link
Contributor

@nmattia nmattia commented Jan 28, 2025

This ensures that the environment variables as set with env: do not use e.g. ${ CI_RUN_ID }. The values are set as-is, without actual (bash-style) interpolation.

This caused the --remap-path-prefix not to kick in (potentially ruining cache hits) and caused some build failures (where one cargo crate did re-evaluate the env var string which did interpolate the variable in the build, pointing the "build dir" to an incorrect location ("/var/tmp/12345/" instead of "/var/tmp/${CI_RUN_DIR}", ${CI_RUN_DIR} verbatim) and failing the build.

This ensures that the environment variables as set with `env:` do not
use e.g. `${ CI_RUN_ID }`. The values are set as-is, without actual
(bash-style) interpolation.

This caused the `--remap-path-prefix` not to kick in (potentially
ruining cache hits) and caused some build failures (where one cargo
crate did re-evaluate the env var string which _did_ interpolate the
variable in the build, pointing the "build dir" to an incorrect location
(`"/var/tmp/12345/"` instead of `"/var/tmp/${CI_RUN_DIR}"`,
`${CI_RUN_DIR}` verbatime) and failing the build.
@github-actions github-actions bot added the fix label Jan 28, 2025
@nmattia nmattia added the CI_MACOS_INTEL Run Bazel Test macOS Intel CI job which runs only on push to master label Jan 28, 2025
@nmattia nmattia marked this pull request as ready for review January 28, 2025 15:44
@nmattia nmattia requested a review from a team as a code owner January 28, 2025 15:44
@github-actions github-actions bot added the @idx label Jan 28, 2025
@nmattia nmattia added this pull request to the merge queue Jan 28, 2025
Merged via the queue into master with commit aa12bb1 Jan 28, 2025
28 checks passed
@nmattia nmattia deleted the nm-intel-env-vars branch January 28, 2025 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI_MACOS_INTEL Run Bazel Test macOS Intel CI job which runs only on push to master fix @idx
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants