Skip to content

Conversation

@bouweandela
Copy link
Member

@bouweandela bouweandela commented Oct 25, 2022

Description

Closes #1655. Continuing from #1656.

It would be nice to unpin cf-units, to make working with recent iris versions easier.


Before you get started

Checklist

It is the responsibility of the author to make sure the pull request is ready to review. The icons indicate whether the item will be subject to the 🛠 Technical or 🧪 Scientific review.


To help with the number pull requests:

@bouweandela bouweandela added the installation Installation problem label Oct 25, 2022
@bouweandela
Copy link
Member Author

bouweandela commented Oct 25, 2022

There is one remaining test failure, but it looks like it is caused by caching intermediate results on CircleCI. The cache key contains the date and branch, so this this should solve itself by tomorrow. Running an extra check with a different branch name here: https://app.circleci.com/pipelines/github/ESMValGroup/ESMValCore?branch=unpin-cf-units-fix-cache

@bouweandela
Copy link
Member Author

Still failing, will have another look on Thursday..

@zklaus
Copy link

zklaus commented Oct 27, 2022

I think the issue is that https://github.com/ESMValGroup/ESMValTool_sample_data doesn't contain any data with calendar standard, but only with the equivalent calendar gregorian, that has been deprecated in CF. Consequently, the change in the first commit in this PR means that the test is asking for a non-existent category.

Solutions might be to add standard data to the sample data or to add an alias for the existing gregorian data via cube_dict["standard"] += cube_dict["gregorian"] or similar here.

@valeriupredoi
Copy link
Contributor

whoa that's a hefty one! Cheers, gents! @bouweandela could you pls fire up the GA tests too before merging (and unfire them up once things pass) 🍺

@bouweandela
Copy link
Member Author

I think the issue is that https://github.com/ESMValGroup/ESMValTool_sample_data doesn't contain any data with calendar standard, but only with the equivalent calendar gregorian, that has been deprecated in CF. Consequently, the change in the first commit in this PR means that the test is asking for a non-existent category.

@zklaus Thanks for the pointer! Any idea why tests that are using a fresh installation are passing just fine with the same data?

@bouweandela
Copy link
Member Author

why tests that are using a fresh installation are passing just fine with the same data?

To answer my own question: the tests work fine with newer versions of cf-units, but fail with 3.0.1 which is still used in the test that start from the docker container. I'll try to fix things so the tests pass with both versions.

@codecov
Copy link

codecov bot commented Nov 15, 2022

Codecov Report

Merging #1770 (98d1995) into main (7b91ec8) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #1770   +/-   ##
=======================================
  Coverage   91.51%   91.51%           
=======================================
  Files         202      202           
  Lines       10908    10908           
=======================================
  Hits         9982     9982           
  Misses        926      926           
Impacted Files Coverage Δ
esmvalcore/cmor/check.py 97.76% <ø> (ø)
esmvalcore/preprocessor/_multimodel.py 96.15% <ø> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@bouweandela bouweandela marked this pull request as ready for review November 15, 2022 09:17
@valeriupredoi
Copy link
Contributor

whoa that's a hefty one! Cheers, gents! @bouweandela could you pls fire up the GA tests too before merging (and unfire them up once things pass) beer

@bouweandela could you pls merge main here, then fire up the GA tests, then fire them off if all goes to plan? Let me know, I can do that too, am not just passing orders 😁

@bouweandela
Copy link
Member Author

@valeriupredoi All tests passed

Copy link
Contributor

@valeriupredoi valeriupredoi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks a lot @bouweandela 🍺 You sure you don't want to pin the lower end to >3.1 - that'd be harmless and we'd be on the safe way too?

@bouweandela
Copy link
Member Author

You sure you don't want to pin the lower end to >3.1 - that'd be harmless and we'd be on the safe way too?

@zklaus carefully wrote all the tests so they work with both versions, so I just continued with that idea. The nice thing about that is that if someone does git pull main, things will just keep working without them having to install new software. The downside is of course that it makes the code slightly more complicated.

@bouweandela
Copy link
Member Author

@ESMValGroup/technical-lead-development-team Could someone please have a final look at this and merge?

@sloosvel
Copy link
Contributor

Just to be annoying and nitpicky, I did a search on gregorian and the docstrings in _unify_time_coordinate (in the multimodel module) still mention it. Maybe it could be updated.

@bouweandela
Copy link
Member Author

Thanks for checking @sloosvel, I just changed it.

@bouweandela
Copy link
Member Author

OK, now the tests are failing due to ESMValGroup/ESMValTool#2924

@bouweandela
Copy link
Member Author

It would be best to merge #1805 before this pull request.

@sloosvel
Copy link
Contributor

Sine #1805 is merged, I will merge this

@sloosvel sloosvel merged commit a6f8c08 into main Nov 18, 2022
@sloosvel sloosvel deleted the unpin-cf-units branch November 18, 2022 11:08
@schlunma schlunma mentioned this pull request Dec 2, 2022
8 tasks
@valeriupredoi valeriupredoi restored the unpin-cf-units branch December 2, 2022 13:11
@valeriupredoi valeriupredoi deleted the unpin-cf-units branch December 2, 2022 13:38
@valeriupredoi valeriupredoi restored the unpin-cf-units branch December 9, 2022 12:49
@valeriupredoi valeriupredoi deleted the unpin-cf-units branch December 9, 2022 13:15
bouweandela added a commit that referenced this pull request Dec 9, 2022
Co-authored-by: Bouwe Andela <b.andela@esciencecenter.nl>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

installation Installation problem

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Test failure due to change in cf-units

5 participants