-
Notifications
You must be signed in to change notification settings - Fork 90
Enable CondaForgeYAMLCleanup migrator for v1 recipes
#3765
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
Conversation
Enable `CondaForgeYAMLCleanup` migrator for v1 recipes. Since it works on `conda-forge.yml` only, it does not require any changes. So the most of the changes are related to extending the test.
Fix an exception when the tested v1 recipe has no `license_file` key: E TypeError: 'NoneType' object is not subscriptable
|
@beckermr, the v0/v1 testing code is becoming horrible. Would you mind me if I tried converting all v0 tests to use the same tempdir approach as v1 — i.e. passed top-level tempdir rather than the I imagine it's going to be a lot of work, but it should make everything cleaner. Perhaps going in the other direction (i.e. making v1 tests use |
|
If you do that, could you also migrate to |
Codecov ReportAttention: Patch coverage is
❌ Your project check has failed because the head coverage (94.03%) is below the target coverage (95.00%). You can increase the head coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #3765 +/- ##
==========================================
- Coverage 77.34% 75.85% -1.49%
==========================================
Files 134 134
Lines 14851 14855 +4
==========================================
- Hits 11487 11269 -218
- Misses 3364 3586 +222 ☔ View full report in Codecov by Sentry. |
Sure can do. Does that mean it's fine for me to proceed, or should I wait for more ACKs? |
|
Yes the testing code is fiddly in general, so improvements are welcome. |
beckermr
left a 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.
You need to add 1 to the allowed schema version for the migrator as well IIRC.
|
Ah, sorry, removed it while debugging the tests, and forgot to put it back. Which means now I'm going to have to debug why the tests pass… |
|
Heh, turned out we weren't checking schema version in |
|
Shall we merge this one @mgorny? |
|
Yes, please. |
|
That said, It would probably be also worth looking into mocking some network interactions in the test suite too. |
|
I added network retries to that one to ensure it passes. We can up those maybe. I do not think that one can be mocked. |
Right. I suppose we could try mocking the whole logic that grabs the hash, but perhaps that'd go too far. |
|
I am so sorry! I squashed which will make for a bad conflict on your other PR. 🤦 |
Description:
Enable
CondaForgeYAMLCleanupmigrator for v1 recipes. Since it works onconda-forge.ymlonly, it does not require any changes. So the most of the changes are related to extending the test.Checklist:
Cross-refs, links to issues, etc: