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-38601: Fix checkExistingOutputs method to clobber complete outputs #229
Conversation
@@ -423,7 +423,7 @@ def makeWriteButler(cls, args: SimpleNamespace, taskDefs: Optional[Iterable[Task | |||
# collection from its chain collection first. | |||
with butler.transaction(): | |||
butler.registry.setCollectionChain(self.output.name, chainDefinition, flatten=True) | |||
butler.pruneCollection(replaced, purge=True, unstore=True) | |||
butler.removeRuns([replaced], unstore=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm confused. Didn't I already do that in d712735 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, did I forgot to pull it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My fault, indeed, was branching off of old "main".
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #229 +/- ##
==========================================
+ Coverage 82.41% 82.90% +0.49%
==========================================
Files 46 46
Lines 4037 4113 +76
Branches 769 770 +1
==========================================
+ Hits 3327 3410 +83
+ Misses 526 521 -5
+ Partials 184 182 -2
... and 2 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
The logic in the method has been improved to handle the case when clobberOutputs was specified without skipExistingIn. It now correctly removes complete quantum outputs. Added test cases for this behavior.
e649335
to
bbf6fae
Compare
bbf6fae
to
6aa519c
Compare
The logic in the method has been improved to handle the case when
clobberOutputs was specified without skipExistingIn. It now correctly
removes complete quantum outputs. Added test cases for this behavior.
Checklist
doc/changes