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
Fix recipe loading tests for esmvalcore before and after version 2.8 #3020
Conversation
@ESMValGroup/technical-lead-development-team anyone's got time to have a look at this pls, it bugs me we have red tests π |
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.
Thanks V! The code looks good to me. I understand that this distinction between v2.7
and v2.8
accounts for all the different tests. Shall we just open an issue to keep in mind to remove this distinction when no longer needed? (Shortly before or after the next release?)
cheers muchly @remi-kazeroni πΊ The problem is the tests will fail if we remove this and we get users that want to use an older version and run the tests after installation - I'd keep it there until we don't support 2.7 anymore (may be a while) - forgot to add, this would creep in only when installing in full development mode, rather than Core as a conda dependency since that will be pinned >=2.8 after the 2.8 release |
Two comments before merging:
if version.parse(core_ver) < version.parse('2.8.0'):
...
|
@schlunma cheers! ah yes - I tried rack my brains what the package was called - I had completely forgotten its name, yeah good point - let me change with that. Regarding point 2 - you guys keep forgetting about the pure development install: one installs ESMValTool from source (Core 2.8 is picked up from tagged/deployed), then they decide to grab the Core gitball at a version 2.7 or lower (because reasons, who knows what bozo would do that?) then install it in dev mode, and then they would want to run the tests (again, coz they're strange people hahah) - fail, that's why this thing here for longer than now |
@schlunma all done now, cheers for the |
Right - I thought we also have that same pin in Regarding the check: Do you have an idea why |
You do a 2.7.2, I won't π€£ The parser seems to be semantic ie a |
That, sir, is very true - but not on my watch π |
Perfect, thanks both!! |
Cheers @schlunma and @remi-kazeroni πΊ |
Description
esmvalcore's
_recipe.py
has become a submodule in its own right inesmvalcore>=2.8
and we should account for that when we test the recipe loading and interaction withesmvalcore
intests/integration/test_recipes_loading.py
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.