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-33488: Add pruneDataset method to QuntumBackedButler (DM-33488 #696

Merged
merged 3 commits into from Jun 16, 2022

Conversation

andy-slac
Copy link
Contributor

@andy-slac andy-slac commented Jun 9, 2022

There are few changes to the pruneDatasets method:

  • run parameter has been removed completely, it was not used in the
    standard Butler implementation.
  • Handling of the execution butler-specific logic is now performed in
    Butler.pruneDataset method, clients are not supposed to know the
    exact type of butler (and can use LimitedButler where possible).
  • QuantumBackedButler.pruneDataset does not support removal of datasets
    from tagged collections (which do not exist in QBB).

Checklist

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

@codecov
Copy link

codecov bot commented Jun 9, 2022

Codecov Report

Merging #696 (93ceea2) into main (93ceea2) will not change coverage.
The diff coverage is n/a.

❗ Current head 93ceea2 differs from pull request most recent head 6424543. Consider uploading reports for the commit 6424543 to get more accurate results

@@           Coverage Diff           @@
##             main     #696   +/-   ##
=======================================
  Coverage   84.44%   84.44%           
=======================================
  Files         243      243           
  Lines       31519    31519           
  Branches     5894     5894           
=======================================
  Hits        26617    26617           
  Misses       3737     3737           
  Partials     1165     1165           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 93ceea2...6424543. Read the comment docs.

Copy link
Member

@TallJimbo TallJimbo 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; one minor line comment, and there's a typo (Quntum) in a commit message.

for ref in refs:
# We only care about removing them from actual output refs,
try:
self._actual_output_refs.remove(ref)
Copy link
Member

Choose a reason for hiding this comment

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

Could just use discard instead of remove, without the try/except.

There are few changes to the `pruneDatasets` method:

- `run` parameter has been removed completely, it was not used in the
  standard Butler implementation.
- Handling of the execution butler-specific logic is now performed in
  `Butler.pruneDataset` method, clients are not supposed to know the
  exact type of butler (and can use LimitedButler where possible).
- `QuantumBackedButler.pruneDataset` does not support removal of datasets
  from tagged collections (which do not exist in QBB).
@andy-slac andy-slac merged commit 2d9fa6f into main Jun 16, 2022
@andy-slac andy-slac deleted the tickets/DM-33488 branch June 16, 2022 17: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