-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
azure: Convert Windows installations scripts to bash
#64553
azure: Convert Windows installations scripts to bash
#64553
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
echo ##vso[task.prependpath]C:\Program Files (x86)\Inno Setup 5 | ||
curl.exe -o is-install.exe https://rust-lang-ci-mirrors.s3-us-west-1.amazonaws.com/rustc/2017-08-22-is.exe | ||
is-install.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- |
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.
Hm, Is there a reason we're moving this after the echo
statement? It looks like these two might be connected
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.
Ah yeah I couldn't figure out how to get this working with bash
and AFAIK the exit code of the script is the last statement, so the thing which may fail is listed here last and the echo
, which always succeeds, was moved above it.
@bors r+ |
📌 Commit eb6833303f37a190100447a8bb9fd558e91eb31d has been approved by |
Oh, actually, I forgot I left that comment towards the start of my review :) r=me with an answer/fix @bors r- |
@bors: r=Mark-Simulacrum |
📌 Commit eb6833303f37a190100447a8bb9fd558e91eb31d has been approved by |
⌛ Testing commit eb6833303f37a190100447a8bb9fd558e91eb31d with merge 281b666571a153ef0d2dce6688ecc6a16c83e47a... |
Your PR failed (pretty log, raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem. Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
💔 Test failed - checks-azure |
Looks like `script`, which uses `cmd.exe`, doesn't have fail-fast behavior and if a leading command fails the script doesn't actually fail so long as the last command succeeds. We instead want the opposite behavior where if any step fails the whole script fails. I don't really know `cmd.exe` that well, nor powershell, so I've opted to move everything to `bash` which should be a good common denominator amongst all platforms to work with. Additionally I know that `set -e` works to cause scripts to fail fast. Note that some scripts remain as `script` since they don't appear to work in` bash`. I'm not really sure why but I reorganized them slightly to have the "meaty command" run at the end.
eb68333
to
72ea960
Compare
@bors: r=Mark-Simulacrum |
📌 Commit 72ea960 has been approved by |
…ark-Simulacrum azure: Convert Windows installations scripts to `bash` Looks like `script`, which uses `cmd.exe`, doesn't have fail-fast behavior and if a leading command fails the script doesn't actually fail so long as the last command succeeds. We instead want the opposite behavior where if any step fails the whole script fails. I don't really know `cmd.exe` that well, nor powershell, so I've opted to move everything to `bash` which should be a good common denominator amongst all platforms to work with. Additionally I know that `set -e` works to cause scripts to fail fast. Closes #64551
☀️ Test successful - checks-azure |
Looks like
script
, which usescmd.exe
, doesn't have fail-fastbehavior and if a leading command fails the script doesn't actually fail
so long as the last command succeeds. We instead want the opposite
behavior where if any step fails the whole script fails.
I don't really know
cmd.exe
that well, nor powershell, so I've optedto move everything to
bash
which should be a good common denominatoramongst all platforms to work with. Additionally I know that
set -e
works to cause scripts to fail fast.
Closes #64551