-
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
readonly variable warning on Azure pipelines #68671
Comments
|
I can take a look at this this week |
We're waiting on a timeline from Microsoft on the removal. |
Sent a follow up email to Microsoft today: Hello there and greetings from Mozilla! I'd like to follow up on the transition to read only variables (and away from overwriting read only variables) in Azure pipelines. We are now seeing a warning about this in our Azure pipeline output. Do you have any timeline on when the behavior of overwriting readonly variables will be removed? We'd love to have this information so we know how to prioritize our backlog of work. |
Hello all - turning my attention to this this week. I wrote up what I believe the problem is - could someone confirm that this is correct? RUST_CONFIG_ARGS is initially set in src/ci/azure-pipelines/auto.yml for the various platforms we build on. Let's first focus on windows x86_64-msvc-2 src/ci/azure-pipeines/auto.yml
Now let's look at the template used in src/ci/azure-pipeines/steps/run.yml There are a number of scripts called - but let's take a closer look at this one:
It calls the install-clang script - let's take a closer look at it.
Notice how it is overwriting RUST_CONFIGURE_ARGS? This is the reason we are getting this warning about overwriting read only variables (among many others). |
That sounds correct! |
@nellshamrell a quick fix for this would be to set in the job definition something like |
👋 PM from Azure Pipelines here. @nellshamrell and @pietroalbini you have it exactly correct. We intended that matrix variables would become read-only, but I didn't do a good job communicating about that. So sorry that you got caught out by this (and further sorry that we didn't get right people looped in until the change took effect!). |
Overwriting readonly task variable 'RUST_CONFIGURE_ARGS'. This behavior will be disabled in the future. See https://github.com/microsoft/azure-pipelines-yaml/blob/master/design/readonly-variables.md for details.
The text was updated successfully, but these errors were encountered: