-
Notifications
You must be signed in to change notification settings - Fork 14
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-45556: Switch command-line tools to new query interface #1045
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1045 +/- ##
==========================================
- Coverage 89.39% 89.37% -0.02%
==========================================
Files 360 360
Lines 45683 45750 +67
Branches 9369 9390 +21
==========================================
+ Hits 40837 40888 +51
- Misses 3520 3531 +11
- Partials 1326 1331 +5 ☔ View full report in Codecov by Sentry. |
a254a59
to
d479ffc
Compare
d83e624
to
6c9a3e4
Compare
if not refs: | ||
raise RuntimeError(f"No inputs found for dataset {dataset_type_name} in {input_collection}.") | ||
with butler._query() as query: | ||
results = query.datasets(dataset_type_name, collections=input_collection) |
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.
The default for find-first has changed, so this is a behavior change. But I think it's an unambiguous improvement, because in the past, if the query had returned multiple results for the same data ID, the certify
call later would have choked on them.
This allows it to be printed using repr()
Previously the exception that ended up with click was ExitStatus which was an empty string. This made it impossible to work out why a test failed. Now run tests in a mode where the exception is converted to ClickException which does now give feedback on test failure.
This is also needed because the pruneDatasets command line test tries to mock out the getDatasets method but doesn't try to mock out the constructor. This meant that the queryCollections code was triggering immediately but there are no collections to query. Deferring allowed the mocks to work.
It is no longer possible to use components.
The new system does not support no_check.
Otherwise they come from a set in random order each time.
Checklist
doc/changes
configs/old_dimensions