-
Notifications
You must be signed in to change notification settings - Fork 189
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
DirectScheduler
: remove the -e
option for bash invocation
#5264
DirectScheduler
: remove the -e
option for bash invocation
#5264
Conversation
The scheduler implementation was submitting the submit script using bash with the `-e` option. This flags toggles the behavior that bash will exit the script as soon as any of the commands in the script return a non-zero exit code. This is in contrast with most (if not all) other implementations that will continue running the script. This is for a good reason, because often there are critical lines in the rest of the script that need to be executed for cleanup. For example, with the current state, if the main executable returns with a non-zero exit code, the script would exit, and any lines that were added through the `append_text` of either the `Computer` or the `Code` will be skipped. Therefore, we remove the `-e` flag, which technically changes the behavior, but it is very unlikely that any clients were relying on particular parts of the submit script to not be executed in case of an error.
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.
Cheers!
Codecov Report
@@ Coverage Diff @@
## develop #5264 +/- ##
========================================
Coverage 81.42% 81.42%
========================================
Files 529 529
Lines 37002 37002
========================================
Hits 30127 30127
Misses 6875 6875
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
The scheduler implementation was submitting the submit script using bash with the `-e` option. This flags toggles the behavior that bash will exit the script as soon as any of the commands in the script return a non-zero exit code. This is in contrast with most (if not all) other implementations that will continue running the script. This is for a good reason, because often there are critical lines in the rest of the script that need to be executed for cleanup. For example, with the current state, if the main executable returns with a non-zero exit code, the script would exit, and any lines that were added through the `append_text` of either the `Computer` or the `Code` will be skipped. Therefore, we remove the `-e` flag, which technically changes the behavior, but it is very unlikely that any clients were relying on particular parts of the submit script to not be executed in case of an error. Cherry-pick: 29915bd
@sphuber Just fyi, I cherry-picked this into If we still plan to push out a 1.6.6 release, we should definitely include this. |
Fixes #5229
The scheduler implementation was submitting the submit script using bash
with the
-e
option. This flags toggles the behavior that bash willexit the script as soon as any of the commands in the script return a
non-zero exit code.
This is in contrast with most (if not all) other implementations that
will continue running the script. This is for a good reason, because
often there are critical lines in the rest of the script that need to be
executed for cleanup. For example, with the current state, if the main
executable returns with a non-zero exit code, the script would exit, and
any lines that were added through the
append_text
of either theComputer
or theCode
will be skipped.Therefore, we remove the
-e
flag, which technically changes thebehavior, but it is very unlikely that any clients were relying on
particular parts of the submit script to not be executed in case of an
error.