-
Notifications
You must be signed in to change notification settings - Fork 44
Adapt tests to new version of cf-units #1656
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
|
This is a start to address recent test failures for the core similar to those in the tool that arise from the changes in cf-units. I need help with two things: How to convert the |
|
Why do you want to get rid of |
|
The removal of unittest was motivated by the fact that the |
|
Ah I see. I think you could just define the fixture outside of the class and then use it inside the class like you would normally do. In addition you could add a |
|
Alright, I'm stepping off here. Release managers, feel free to continue with this branch or to start your own fixes. |
|
Is this worth another release candidate? |
|
I would say so, yes. But it's your call. I am also not fully aware of other changes that may have happened since the last release candidate, but generally speaking, the release is expected to be identical to the last release candidate. |
And what is is that is left to be finished in here? It's quite surprising to see these kind of answers considering the kind of comments that I usually have to hear about my own "unfinished work". |
|
I think this needs to be included in the RC rather than straight into the release since all this calendars business is a source of major pain in the rear and can lead to some unwanted changes in the actual diagnostics' results. @zklaus would you have some time to polish this a bit more? If not I can take over from here, no problemo 🍺 |
|
No worries, I got a new branch to work on this. I will close this one. |
|
For the upcoming relaese and to avoid a lot of last minute work, would it be an option to just pin cf-units to the version that we know works and that @sloosvel already ran all the tests with? |
|
@bouweandela I think that's a very good idea indeed! |
|
That could be an option, though note that the corresponding fix in ESMValTool is already in (ESMValGroup/ESMValTool#2707) and that this only changes the tests. But it is better to pin anyway since there is a chance that this changes the calendar in some intermediate file that could throw off some diagnostic. The fixes here are written to support both versions. |
It's the responsibility of the release managers to take care of the nightly tests. They have been broken for a week now, so I did the digging for the cause and how to fix it. I'm sorry if this came across as anything but helpful. |
I know, but I had to finish running recipes for a release candidate that could have been avoided. In any case, everyone in favour of pinning then? |
|
@sloosvel am pinning it as we speak 🍺 |
|
about the tests - we should think of a stricter policy while we're working on a RC or stable release, something like "thou shall not pass" if the tests fail |
|
@valeriupredoi, I am not sure what you mean, but perhaps that's a new issue/discussion? |
what I mean is to have a clause in the push to pypi that all GA tests have passed - ok maybe too strict - have the tests open an issue automatically if one test fails, and maybe turn that feature on only during release periods so we don't overkill? |
I like that, there is probably a github action for that |
|
@bouweandela there's a github action even for when you forget to turn on that github action 🤣 |
Description
This is a bugfix to address recent test failures due to a change in cf-units.
Closes #1655
Link to documentation:
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: