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-37703: Deprecate unresolved refs #821
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #821 +/- ##
=======================================
Coverage 87.76% 87.77%
=======================================
Files 268 268
Lines 34975 35007 +32
Branches 7355 7368 +13
=======================================
+ Hits 30696 30727 +31
+ Misses 3125 3122 -3
- Partials 1154 1158 +4
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. |
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.
Looks good, few minor questions.
"Support for creating unresolved refs will soon be removed. Please contact the " | ||
"middleware team for advice on modifying your code to use resolved refs.", | ||
category=UnresolvedRefWarning, | ||
stacklevel=2, # _find_outside_stacklevel(), |
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.
Remove comment?
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.
Actually, I'm supposed to remove the "2". I used the 2 for testing daf_butler so I could see whether things were coming from but failed to put it back to use the right code to find the outside level -- that explains why my ci_hsc_gen3 testing is full of reports about using ref.py
and I was surprised it wasn't telling me the real calling location outside of butler.
6863f53
to
d94f706
Compare
They did not need to use unresolved refs so easier to fix them and get rid of the warning.
Sometimes the warnings are ignored, and in some places we use a resolved ref.
We now require UUID dataset IDs and registry no longer needs to be the source of truth. We would like to be able to create IDs as part of DatasetRef construction and circular dependencies suggest that it's easier to move the code out of registry.
We want to ensure that when butler issues an unresolved ref warning that it looks like it comes from user code and not butler internals.
Warnings do come from tests -- the test code is testing unresolved refs for a reason. I have not gone through every test to decide if something can be replaced with a resolved ref. I have changed the
DatasetRef
constructor so that it now creates an id if called with just a run.Checklist
doc/changes