Closed yuvipanda closed 4 years ago
This is a good idea, and probably should have been done before. Could you add a note to the changelog as a potentially breaking change? At least in my prologue, I run stuff for debugging that is expected to fail (echoing environment variables), and I wouldn't be surprised if others do, too. (I can also add the note myself).
It could be set in the default prologue, so that the minimum amount is hardcoded (of course, if someone wants it off then they can disable in their own prologue. Maybe it's better to have someone explicitely disable, than risk turning it off. I'd recommend to leave it as is.)
Thanks!
Agree, this seems like a sensible change. Likewise agree with the reasoning about putting it in the base templates rather than the prologue
.
Congrats on your first merged pull request in this project! :tada: Thank you for contributing, we are very proud of you! :heart:
I just realized an issue here, some of the scripts use /bin/sh
, and it seems -o pipefail
is a bashism. At least on my Ubuntu it is.
Bash generally keeps executing code line by line even if any of the lines fail. For example, if your path is not set properly,
batchspawner-singleuser
will not be found bywhich
. This should terminate execution. However, withoutset -e
, execution will just continue and fail with a different error.This patch does
set -euo pipefail
for all submission scripts. This causes them to fail on: