-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Rust builds with rust-toolchain fail with image 20240317.1.0 but previous was fine 20240310.1.0 #9547
Comments
Adding following is workaround to make our builds work again. - powershell: rustup update --force 1.76
displayName: update 1.76 |
Hello @FrancescElies. Glad to hear that you have a workaround. Meanwhile we will try to understand what's the problem. |
rust 1.77 will be released as a part of the runners next week. |
@mikhailkoliada the yaml workaround I posted had version 1.77 because of me doing copy pasta, sorry if that was confusing (just edited that to v1.76). Both images 20240317 and 20240310 have rust 1.76. In our links I added in the bug description we use 1.76, with one image fails with the other one didn't. To be clear this issue is about 1.76 and the latest vm image that was released. |
I suspect something changed how rust stuff is installed in the image I would bet the same issue will be present for v.177, thus not sure awaiting-deployment will help. |
Hello @FrancescElies . Is problem still persist? If yes, can you please provide minimal repro? |
If nothing changed with image 20240317.1.0, then the answer is yes.
I have provided you two links of two different builds in time that build the exact same commit, locally builds fine, so everything seems to point out in the direction of image 20240317.1.0. A minimal repro is a fair request but given that there is not a clear easy way to do that with yaml and private projects this requires a non negligible effort from our side. In all honesty, we are paying customers and I believe I have provided sufficient evidence that something might be wrong with your latest image. SummarizingWe have a workaround and we don't feel the urgency for a fix, it's fine if is not high priority for you either. |
Clarifying our findingsIn the links I provided the build fails with
If you run if you run Please correct me if I see this wrong. |
NOTE
|
After investigation I thinks that is not image related error. You starting gets error just in time when Another moment, upcoming Windows-2022 update including 1.77 version of rust tools, so anyway you should keep workaround before you transfer rust project to newer version. |
I think the problem is that the readme for win2022 images promises rust 1.76 but the image doesn't provide it. When you run Locally if I uninstall 1.76 toolchain, I can reproduce exactly the same error. There is no way for me to prove that the previous image had rust 1.76 because I can't longer access it after last deployment but I would bet that is the case, and the reason it started failing it's because the new one misses the toolchain specified in the readme. |
Hey @FrancescElies! |
According to the
|
@FrancescElies do you still failing into any issues using |
@erik-bershel we have a workaround in place, if I remove it the issue is still there. We already moved to 1.77, current image says it contains 1.77 but when I run
We still need to explicitly install 1.77 because in our project we specify the version we want to use.
When list rust toolchains I would expect to see the following but we don't, are my expectations wrong?
I suspect this was the case for |
@FrancescElies according # Download the latest rustup-init.exe for Windows x64
# See https://rustup.rs/#
$rustupPath = Invoke-DownloadWithRetry "https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-msvc/rustup-init.exe"
# Install Rust by running rustup-init.exe (disabling the confirmation prompt with -y)
& $rustupPath -y --default-toolchain=stable --profile=minimal
if ($LASTEXITCODE -ne 0) {
throw "Rust installation failed with exit code $LASTEXITCODE"
} During the installation process, we download the basic |
Not sure what the issue might be, in the issue description I provided two links to same commit with two different images one passing the other one failing (20240317.1.0) thus I know the problem is not caused because of a change in our code-base. I wish I could choose the runner image version to see if it's because of the image or some external factor, but that's not possible. The only related change I can see between both images is the upgrade of rustup 1.26->1.27. I am not sure how you want to proceed with this one but it seems to me either something has changed on your side or on the rustup side. By any chance could you run @erik-bershel how do you want to proceed with this? |
Yep, in that release there was a new
I'll try to. I'll be there later with the information received. |
In the meantime. I think there is an error in your ───────┬─────────────────────────────────────────────
│ File: rust-toolchain.toml
───────┼─────────────────────────────────────────────
1 │ [toolchain]
2 │ channel = "1.77"
3 │ targets = ["stable-x86_64-pc-windows-msvc"]
───────┴───────────────────────────────────────────── But I think that the
May I ask you to check your build using the next [toolchain]
channel = "1.77"
targets = ["x86_64-pc-windows-msvc"] |
We had this wrong in our rust-toolchain since version 1.64, for whatever reason it exploded now that's why we didn't even consider that, maybe the format changed at some point or we had it wrong all the way since the beginning. Anyways, even if I was convinced the problem was not on our side, as it turns out, it was. @erik-bershel thanks for your patience and help, issue resolved with your hint about Closing. |
Description
Rust builds fail with image 20240317.1.0 ❌ but previous was fine 20240310.1.0 ✅ (on same commit)
The current suspect is image ❌ 20240317.1.0
Previous image seems to work fine ✅20240310.1.0
In the release of 20240317.1.0 the only relevant rust note I see is the upgrade of Rustup from 1.26.0 to 1.27.0
Platforms affected
Runner images affected
Image version and build link
I know you won't be able to access this builds (private) but we have rust builds on windows for the same commit green on Wednesday (20 march) but failing now.
Failing build here
For exactly the same commit green build here
Is it regression?
I think so
Expected behavior
Rust build should work on 20240317.1.0 too
Actual behavior
Last image fails to build rust
Repro steps
Run rust build for the images provided for the same commit
The text was updated successfully, but these errors were encountered: