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-41191: fix mocking bugs involving automatic-output connections #379

Merged
merged 5 commits into from Oct 16, 2023

Conversation

TallJimbo
Copy link
Member

@TallJimbo TallJimbo commented Oct 16, 2023

Checklist

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

Copy link
Contributor

@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, a couple of minor comments.

python/lsst/pipe/base/tests/mocks/_pipeline_task.py Outdated Show resolved Hide resolved
data ID match using the butler expression language (i.e. a string of
the sort passed ass the ``where`` argument to butler query methods),
while the second is the type of exception to raise when the quantum
data ID matches the expression.
Copy link
Contributor

Choose a reason for hiding this comment

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

What is the meaning of None for exception type?

Copy link
Member Author

Choose a reason for hiding this comment

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

Had to remind myself since I just copied this from mock_task_defs, but the answer is that it's just a way to make it easy to invoke the default of ValueError, which is defined down in the MockPipelineTaskConfig. Will document.

@codecov
Copy link

codecov bot commented Oct 16, 2023

Codecov Report

Attention: 25 lines in your changes are missing coverage. Please review.

Comparison is base (dde2687) 82.62% compared to head (d4b1369) 82.46%.

❗ Current head d4b1369 differs from pull request most recent head 61de32b. Consider uploading reports for the commit 61de32b to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #379      +/-   ##
==========================================
- Coverage   82.62%   82.46%   -0.16%     
==========================================
  Files          92       92              
  Lines       10323    10346      +23     
  Branches     1945     1951       +6     
==========================================
+ Hits         8529     8532       +3     
- Misses       1452     1472      +20     
  Partials      342      342              
Files Coverage Δ
...ython/lsst/pipe/base/tests/mocks/_storage_class.py 57.80% <0.00%> (-0.68%) ⬇️
...ython/lsst/pipe/base/tests/mocks/_pipeline_task.py 38.32% <13.63%> (-2.46%) ⬇️

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

This will replace mock_task_defs in the future.
Automatic-output connections (configs, logs, metadata) get _mock
prefixes from the task label, but don't actually use mock storage
classes.
@TallJimbo TallJimbo merged commit e1cb22b into main Oct 16, 2023
12 checks passed
@TallJimbo TallJimbo deleted the tickets/DM-41191 branch October 16, 2023 19: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