Details
-
Type:
Story
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: ctrl_mpexec, daf_butler, obs_base, pipe_base, verify
-
Labels:
-
Story Points:4
-
Epic Link:
-
Team:Data Release Production
-
Urgent?:No
Description
The addition of a NOT NULL constraint on DM-21840 is a schema change (albeit a very small one) that needs to merged alongside a migration script. But we can fix the tests that it will break in advance to avoid further complicating that big merge, and that's what this ticket is for.
Attachments
Issue Links
- relates to
-
DM-21840 Disallow NULL/None for implied dimension values in data IDs
- In Progress
Krzysztof Findeisen, mind reviewing this set of small changes to butler tests and test utility code, and some downstream tests that use the latter?
The bottom line is that DM-21840 is soon going to add some NOT NULL constraints for implied dimensions, and that breaks test code that has thus far gotten away with e.g. declaring visit data IDs without any filters. I think you'll agree that having the test code this dependent on the dimensions schema is not ideal, at least for testing code that doesn't depend on the data IDs it's given (of course, some might), but I also don't see any real alternatives (short of making the test utility code much more reliant on mocks), and at least the fixes are small.
Changes are spread across multiple packages. I identified these packages as needing fixes by running Jenkins on DM-21840 and seeing what broke; I then just rebased the test fixes to this ticket.