Skip to content
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

Added set -ex to the jobscript rendering, removed if statements. Fixe… #168

Merged
merged 1 commit into from
Oct 5, 2023

Conversation

bschroeter
Copy link
Collaborator

Added set -ex to the header of the rendered jobscript. -x is used in place of explicit error messages as per the removed if statements, as it outputs all commands as they are being called so that we can see the exact line that the script fails.

In resolving this, the tests appear to be a bit flakey, relying on specific whitespace and line endings. I think this will be resolved as we move to Jinja2 templating (#142)

Fixes #158.

@bschroeter bschroeter requested a review from ccarouge October 5, 2023 01:17
@bschroeter bschroeter linked an issue Oct 5, 2023 that may be closed by this pull request
@codecov
Copy link

codecov bot commented Oct 5, 2023

Codecov Report

❗ No coverage uploaded for pull request base (main@162f554). Click here to learn what that means.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #168   +/-   ##
=======================================
  Coverage        ?   88.77%           
=======================================
  Files           ?       27           
  Lines           ?     1630           
  Branches        ?        0           
=======================================
  Hits            ?     1447           
  Misses          ?      183           
  Partials        ?        0           

@ccarouge ccarouge merged commit 883e2a8 into main Oct 5, 2023
@ccarouge ccarouge deleted the 158-better-error-handling-in-pbs-job-script branch October 5, 2023 04:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Better error handling in PBS job script
2 participants