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

Change 'salish' submit job command to 'bash' #80

Merged
merged 7 commits into from
Nov 23, 2024
Merged

Conversation

douglatornell
Copy link
Member

@douglatornell douglatornell commented Oct 31, 2024

re: issue #78

  • Change the submit command from qsub to bash
  • Drop the PBS directives section of the run script
  • Add redirection to the echo and mpirun commands in the run script because their output is no longer automatically captured

Updated the submit job command for 'salish' from 'qsub' to 'bash'.
Adjusted multiple test cases to reflect this change.
@douglatornell douglatornell added this to the v24.2 milestone Oct 31, 2024
@douglatornell douglatornell linked an issue Oct 31, 2024 that may be closed by this pull request
3 tasks
Copy link

codecov bot commented Oct 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.37%. Comparing base (5d7bf5c) to head (bc9c6a7).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #80   +/-   ##
=======================================
  Coverage   95.36%   95.37%           
=======================================
  Files          10       10           
  Lines        1316     1362   +46     
  Branches       73       77    +4     
=======================================
+ Hits         1255     1299   +44     
- Misses         57       58    +1     
- Partials        4        5    +1     
Flag Coverage Δ
unittests 95.37% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


🚨 Try these New Features:

`salish` no longer uses a scheduler. So, its run execution script no longer
needs either `#SBATCH` or `#PBS` directives sections.

Also refactored `test_salish` to use `monkeypatch.setattr` instead of `patch`.
Replaced `with patch` context managers with `monkeypatch.setattr` in all
TestModules test cases to improve code readability and consistency.

Added new test for "salish" system to ensure future-proofing and full coverage
of available systems.
This commit adds redirection of stdout and stderr to files within
`${RESULTS_DIR}` for the `salish` system, ensuring logging of output and error
streams. New tests were added to verify the functionality for both the
`--deflate` and non-deflate cases. Necessary changes were made in the
`_execute()` function and corresponding test cases to support this redirection.
Moved the _execute() call out of the script string construction for
compatibility with Python 3.11. This change assigns the _execute call result
to a variable before joining it into the final script.
Updated the job submission command for the 'salish' system from 'qsub' to
'bash'. Added logic to handle job submissions specifically for 'bash' and
adjusted unit tests accordingly to ensure compatibility and functionality.
@douglatornell douglatornell merged commit ec1529a into main Nov 23, 2024
10 checks passed
@douglatornell douglatornell deleted the salish-bash-submit branch November 23, 2024 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Change to submit runs on salish using bash instead of qsub
1 participant