argonne-lcf / balsam

High throughput workflows and automation for HPC
77 stars 21 forks source link

CLI options added #351

Closed cms21 closed 1 year ago

cms21 commented 1 year ago

This PR aims to address issues #309, #341, #258 and #322. It includes:

balsam app rm --all --site=my-site

balsam job modify --tag species=H20 -s RESTART_READY

balsam site rm -f my-site-directory

balsam queue ls -v

balsam queue ls --id 12345

balsam queue ls -n 5

The default behavior of CL commands remain unchanged, except for balsam queue ls. If there are no active batch jobs, balsam queue ls now will return by default the records of the last 3 Batch Jobs.

codecov-commenter commented 1 year ago

Codecov Report

Patch coverage: 12.62% and project coverage change: -0.29 :warning:

Comparison is base (692d2d9) 61.26% compared to head (6112efe) 60.98%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #351 +/- ## ========================================== - Coverage 61.26% 60.98% -0.29% ========================================== Files 157 157 Lines 9541 9598 +57 Branches 1233 1254 +21 ========================================== + Hits 5845 5853 +8 - Misses 3437 3486 +49 Partials 259 259 ``` | [Impacted Files](https://app.codecov.io/gh/argonne-lcf/balsam/pull/351?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None) | Coverage Δ | | |---|---|---| | [balsam/cmdline/app.py](https://app.codecov.io/gh/argonne-lcf/balsam/pull/351?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-YmFsc2FtL2NtZGxpbmUvYXBwLnB5) | `22.38% <7.69%> (-12.62%)` | :arrow_down: | | [balsam/cmdline/scheduler.py](https://app.codecov.io/gh/argonne-lcf/balsam/pull/351?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-YmFsc2FtL2NtZGxpbmUvc2NoZWR1bGVyLnB5) | `31.11% <11.42%> (-1.36%)` | :arrow_down: | | [balsam/cmdline/site.py](https://app.codecov.io/gh/argonne-lcf/balsam/pull/351?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-YmFsc2FtL2NtZGxpbmUvc2l0ZS5weQ==) | `30.00% <16.00%> (-1.75%)` | :arrow_down: | | [balsam/cmdline/job.py](https://app.codecov.io/gh/argonne-lcf/balsam/pull/351?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-YmFsc2FtL2NtZGxpbmUvam9iLnB5) | `29.53% <50.00%> (+0.05%)` | :arrow_up: | ... and [1 file with indirect coverage changes](https://app.codecov.io/gh/argonne-lcf/balsam/pull/351/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.