-
Notifications
You must be signed in to change notification settings - Fork 6
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
Avoid overwriting valid catalogs. #464
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #464 +/- ##
==========================================
+ Coverage 94.55% 94.59% +0.04%
==========================================
Files 28 28
Lines 1615 1627 +12
==========================================
+ Hits 1527 1539 +12
Misses 88 88 ☔ View full report in Codecov by Sentry. |
Strong refusal without options, since it's easier and safer to move the catalog out of the way.
6647085
to
107a822
Compare
Should this be using the |
The main reason is performance: |
oh if it's that slow than I think non strict is probably fine :) |
0b3e702
to
b713e9c
Compare
Strong refusal without options, since it's easier and safer to move the catalog out of the way.
Change Description
Before beginning a catalog import or generating a margin cache, check whether the output artifact already contains a valid catalog, and if so, stop by raising a
ValueError
.Closes #459 .
Solution Description
Code Quality
Bug Fix Checklist
Tested this end-to-end on epyc, and verified it, and added unit tests to verify argument validation.