Uh oh!
There was an error while loading. Please reload this page.
azure: Convert Windows installations scripts to bash - #64553
Conversation
rust-highfive
commented
Sep 17, 2019
(rust_highfive has picked a reviewer for you, use r? to override) |
There was a problem hiding this comment.
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.
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.
Mark-Simulacrum
commented
Sep 17, 2019
@bors r+ |
bors
commented
Sep 17, 2019
📌 Commit eb6833303f37a190100447a8bb9fd558e91eb31d has been approved by |
Mark-Simulacrum
commented
Sep 17, 2019
Oh, actually, I forgot I left that comment towards the start of my review :) r=me with an answer/fix @bors r- |
alexcrichton
commented
Sep 17, 2019
@bors: r=Mark-Simulacrum |
bors
commented
Sep 17, 2019
📌 Commit eb6833303f37a190100447a8bb9fd558e91eb31d has been approved by |
bors
commented
Sep 18, 2019
⌛ Testing commit eb6833303f37a190100447a8bb9fd558e91eb31d with merge 281b666571a153ef0d2dce6688ecc6a16c83e47a... |
rust-highfive
commented
Sep 18, 2019
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 |
bors
commented
Sep 18, 2019
💔 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
72ea960Comparealexcrichton
commented
Sep 19, 2019
@bors: r=Mark-Simulacrum |
bors
commented
Sep 19, 2019
📌 Commit 72ea960 has been approved by |
bors
commented
Sep 20, 2019
…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
bors
commented
Sep 20, 2019
☀️ 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.exethat well, nor powershell, so I've optedto move everything to
bashwhich should be a good common denominatoramongst all platforms to work with. Additionally I know that
set -eworks to cause scripts to fail fast.
Closes#64551