Skip to content
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

disable python2 travis-ci #3446

Merged
merged 1 commit into from
Oct 4, 2019
Merged

Conversation

bjlittle
Copy link
Member

@bjlittle bjlittle commented Oct 3, 2019

This PR removes Python2 travis-ci testing 🎉

As a part of technical debt, the appropriate changes are now in place within the .travis.yml to commence iris-grib tests.... however, there are 5 errors and 10 failures that require to be addressed.

I'll raise a separate issue to cover this, see #3447.

Comment on lines +104 to +108
# TODO: uncomment and address the 5 failures and 10 errors in iris-grib.
# - if [[ "${TEST_MINIMAL}" != true ]]; then
# conda install --quiet -n ${ENV_NAME} python-eccodes;
# conda install --quiet -n ${ENV_NAME} --no-deps iris-grib;
# fi
Copy link
Member Author

@bjlittle bjlittle Oct 3, 2019

Choose a reason for hiding this comment

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

Pull the pin and fix these iris-grib related issues... but not in this PR.

@pp-mo
Copy link
Member

pp-mo commented Oct 4, 2019

Hi @bjlittle Just to check I've understood this...

To actually re-enable the iris-grib tests, we need to also insert a mention of iris-grib into the requirements/all.txt file,
as " all" is what gets added to $CONDA_REQS_GROUPS within .travis.yml, when it runs without the TEST_MINIMAL flag .

Yes?

@pp-mo
Copy link
Member

pp-mo commented Oct 4, 2019

P.S.

To install iris-grib under Python3 for testing, we will also need to install eccodes-python explicitly via pip, as iris-grib currently does with this conda requirement and this pip install

Yes?

@bjlittle
Copy link
Member Author

bjlittle commented Oct 4, 2019

@pp-mo This is a bit of a mess, and we need to sort this out, but I'd highly recommend that is done outside this PR...

Anyways, in an attempt to clarify the iris-grib dependency actually lives in the requirements/extensions.txt. However, the extensions.txt is not referenced anywhere. It may have been at some point previously, either implicitly baked into the requirements/gen_conda_requirements.py or within the .travis.yml, but certainly not now. Infact, within the extensions.txt there is an empty #conda: directive, which means that the requirements/gen_conda_requirements.py will skip this for conda, but not pip.

This leads me to believe that iris-grib was dealt with in a bespoke way within the .travis.yml, as it is kinda now. The other factor is that if we use conda to install iris-grib then we need to do so with --no-deps otherwise the PR version of iris that travis-ci is meant to be testing is clobbered by the conda-forge version of iris pulled in by iris-grib - and the fun factor there is that the conda-forge version of iris has all the iris.tests and iris.tests.results ripped out - hence all the test fail!

Anyways, I can see a way forwards using either using pip or conda for iris-grib installation within the .travis.yml. This is probably all better highlighted in a concrete PR rather than described in imprecise prose - at least there would be a concrete thing to poke at and ponder over. Happy to take the first step and iterate with you... if you're game?

Otherwise, I'd suggest we leave the whole debate for later outside this PR. Are you trusting enough to believe me that there is nothing to worry about here? 😈

So iris-grib trauma aside, is this PR good to go?

@pp-mo
Copy link
Member

pp-mo commented Oct 4, 2019

@bjlittle thanks for the clarity.

PR good to go?

Yes, given that we all understand that grib testing is still missing, and that's the way we want it !

@pp-mo pp-mo merged commit 35e1540 into SciTools:master Oct 4, 2019
@bjlittle
Copy link
Member Author

bjlittle commented Oct 4, 2019

@pp-mo Awesome, thanks 👍

@bjlittle bjlittle deleted the disable-python2-travis-ci branch October 29, 2019 12:24
trexfeathers pushed a commit to trexfeathers/iris that referenced this pull request Jan 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants