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

DM-39661: Add support for ExecutionResources #246

Merged
merged 7 commits into from Jun 23, 2023
Merged

DM-39661: Add support for ExecutionResources #246

merged 7 commits into from Jun 23, 2023

Conversation

timj
Copy link
Member

@timj timj commented Jun 15, 2023

Requires lsst/pipe_base#344

Add --cores-per-quantum and --memory-per-quantum options.

Checklist

  • ran Jenkins
  • added a release note for user-visible changes to doc/changes

@codecov
Copy link

codecov bot commented Jun 15, 2023

Codecov Report

Patch coverage: 97.05% and project coverage change: -0.20 ⚠️

Comparison is base (f863616) 85.51% compared to head (c50d8bd) 85.32%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #246      +/-   ##
==========================================
- Coverage   85.51%   85.32%   -0.20%     
==========================================
  Files          47       47              
  Lines        4224     4251      +27     
  Branches      726      732       +6     
==========================================
+ Hits         3612     3627      +15     
- Misses        458      469      +11     
- Partials      154      155       +1     
Impacted Files Coverage Δ
python/lsst/ctrl/mpexec/cli/opt/optionGroups.py 100.00% <ø> (ø)
python/lsst/ctrl/mpexec/cli/script/run.py 45.45% <ø> (ø)
python/lsst/ctrl/mpexec/cli/script/run_qbb.py 42.85% <ø> (ø)
python/lsst/ctrl/mpexec/cmdLineFwk.py 59.56% <80.00%> (-2.77%) ⬇️
python/lsst/ctrl/mpexec/cli/cmd/commands.py 66.66% <100.00%> (+0.44%) ⬆️
python/lsst/ctrl/mpexec/cli/opt/options.py 87.32% <100.00%> (+0.36%) ⬆️
...thon/lsst/ctrl/mpexec/separablePipelineExecutor.py 94.23% <100.00%> (+0.11%) ⬆️
...ython/lsst/ctrl/mpexec/simple_pipeline_executor.py 91.22% <100.00%> (+0.15%) ⬆️
python/lsst/ctrl/mpexec/singleQuantumExecutor.py 67.53% <100.00%> (+0.17%) ⬆️
tests/test_cmdLineFwk.py 98.35% <100.00%> (+0.05%) ⬆️

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

@timj timj changed the title DM-39661: Use new name for ButlerQuantumContext DM-39661: Add support for ExecutionResources Jun 16, 2023
@timj timj force-pushed the tickets/DM-39661 branch 2 times, most recently from effe28f to 4b2eee5 Compare June 21, 2023 15:33
@timj timj marked this pull request as ready for review June 21, 2023 17:17
Copy link
Collaborator

@andy-slac andy-slac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

python/lsst/ctrl/mpexec/cli/script/run.py Outdated Show resolved Hide resolved
python/lsst/ctrl/mpexec/cli/opt/options.py Outdated Show resolved Hide resolved
@timj timj force-pushed the tickets/DM-39661 branch 3 times, most recently from 7b1da04 to f0b7212 Compare June 23, 2023 04:24
timj added 7 commits June 22, 2023 21:26
Passed to the ButlerQuantumContext constructor at execution
time.
This simplifies the code here. Retain the tests even though
they are now mostly testing the ExecutionResources constructor
is compatible with the command-line and duplicating tests
in pipe_base.

This change means that a failure to parse the memory unit
is no longer ignored.
@timj timj merged commit 2915df5 into main Jun 23, 2023
10 of 11 checks passed
@timj timj deleted the tickets/DM-39661 branch June 23, 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.

None yet

2 participants