-
Notifications
You must be signed in to change notification settings - Fork 283
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
Replace pyke nopyke #4198
Replace pyke nopyke #4198
Conversation
Sorry, for clarity should be targetting the #4170 branch ... will replace ... |
Reopened because pp-mo#69 won't run tests. |
lib/iris/tests/unit/fileformats/nc_load_rules/actions/test__grid_mappings.py
Show resolved
Hide resolved
20a1e00
to
6c7a9da
Compare
Rebased, to see how it goes |
re-merged with auto commit from pre-commit.ci, and added small change to run local pre-commit process ? This seems to have been necessary to satisfy CI pre-commit process after rebasing, as it won't apply automatic Black changes. |
@pp-mo from what I can see it was isort changes that needed to be applied. |
Actually, the failing 'pre-commit' initially showed a merge-check failure. I don't really understand why we seem to be doing this twice : once in the "pre-commit.ci" test, and once in the "black, flake8 and isort". I thought one test had made the other obsolete ? |
In short: no 😄. I actually raised the same question with @bjlittle earlier today. |
I'll take a look at this... the only advantage of doing it locally is that the round-trip time to detecting a failure and fixing it is shorter i.e., on your I'll see what I can do... perhaps there is a compromise here, but I agree it making developer |
085e066
to
22b935f
Compare
Rebased. |
nothing particularly to do with this PR. |
22b935f
to
16959a5
Compare
Ooh. That's nasty.
( and the same for running just that specific test : And I presume, the old code is quite probably doing the same, so the load will randomly return one coord with a factory and not the other. |
8839f13
to
78447ed
Compare
Nearly there. I'm just scanning what is introduced, and correcting some comments. |
lib/iris/tests/unit/fileformats/nc_load_rules/actions/__init__.py
Outdated
Show resolved
Hide resolved
lib/iris/tests/unit/fileformats/nc_load_rules/actions/__init__.py
Outdated
Show resolved
Hide resolved
I suspect that the test currently failing is due to a failure elsewhere. The warning message causing a failure seems to be raised due to garbage collection of an Animation object (probably created during this test
|
lib/iris/tests/unit/fileformats/nc_load_rules/actions/__init__.py
Outdated
Show resolved
Hide resolved
lib/iris/tests/unit/fileformats/nc_load_rules/actions/test__grid_mappings.py
Show resolved
Hide resolved
lib/iris/tests/unit/fileformats/nc_load_rules/actions/test__grid_mappings.py
Outdated
Show resolved
Hide resolved
Shouldn't this line be removed from setup.cfg? Line 126 in af13e14
|
Also, shouldn't Lines 35 to 36 in 9a06485
|
👍 Whoops. I think missed these, because they don't mention Pyke directly. |
Thanks @stephenworsley . |
lib/iris/tests/unit/fileformats/nc_load_rules/actions/test__time_coords.py
Outdated
Show resolved
Hide resolved
lib/iris/tests/unit/fileformats/nc_load_rules/actions/test__time_coords.py
Outdated
Show resolved
Hide resolved
lib/iris/tests/unit/fileformats/nc_load_rules/actions/test__grid_mappings.py
Outdated
Show resolved
Hide resolved
lib/iris/tests/unit/fileformats/nc_load_rules/actions/test__time_coords.py
Outdated
Show resolved
Hide resolved
Some further small changes, as requested. |
0bad17c
to
16be67b
Compare
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.
I think this looks good now, all my comments have been addressed and I'd be happy with merging this now.
* main: (43 commits) [pre-commit.ci] pre-commit autoupdate (SciTools#4244) Updated environment lockfiles (SciTools#4242) [pre-commit.ci] pre-commit autoupdate (SciTools#4239) Documented the --force option on conda env create (SciTools#4240) Updated environment lockfiles (SciTools#4237) pre-commit isort and black --check only for cirrus-ci (SciTools#4235) Only run docs-building sessions with Python 3.8. (SciTools#4210) consolidate cirrus-ci documentation tasks (SciTools#4219) Updated environment lockfiles (SciTools#4223) Replace pyke nopyke (SciTools#4198) drop cirrus-ci minimal tests (SciTools#4218) remove change management tech paper (SciTools#4217) [pre-commit.ci] pre-commit autoupdate (SciTools#4213) Updated environment lockfiles (SciTools#4212) Widen cube printout for long ancil or cell-measure names. (SciTools#4124) convert docs print statements (SciTools#4209) optimise pre-commit (SciTools#4208) drop black and flake8 dependencies (SciTools#4181) pre-commit blacked docs (SciTools#4205) pre-commit update (SciTools#4204) ...
🚀 Pull Request
Encompasses all of the work in #4170, but further changes now complete the removal of pyke, switch all loading to 'new' mechanisms, and simplify all the testing that used to perform new/old comparison testing.
I probably should have squashed the commits from #4170 , but instead I squashed what was formerly here to aid rebase/merge.
Consult Iris pull request check list