-
Notifications
You must be signed in to change notification settings - Fork 24
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
conda 4.4 compatibility #96
base: master
Are you sure you want to change the base?
Conversation
28c747e
to
403b2c7
Compare
So the failing test here caused me to find a problem in conda 4.4.8. Have a PR to fix it now. |
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 for this. Looks very sensible.
Test failed with conda 4.4.8-py35_0
. Any chance of 4.4.9 being released soon @kalefranz?
Gosh I thought i had this fixed on conda 4.4.9. Guess it's going to take another go. |
So, in |
So the quick, but brittle, fix here is to just use the |
BTW, for future reference, we do plan on eliminating |
I'm a little confused why the keys are |
Also, I haven't looked at what happened with |
I don't know why the build number thing just popped up all the sudden. I'm guessing it's complaining though because build_number needs to be an integer and not a string. |
Ah, your last comment didn't load for me while posting. |
It looked as though |
Ah, other test file. Maybe that comes from https://github.com/conda-tools/conda-build-all/blob/v1.1.3/conda_build_all/tests/unit/dummy_index.py#L49 ? |
So, if a |
build_number has been enforced as an integer for quite some time. https://github.com/conda/conda/blob/4.3.0/conda/models/index_record.py It feels like something recently changed with the test data in this repo. I’ll investigate. |
But in |
Yeah I agree that’s what it’s looking like |
Just pushed a change that makes that test build number an |
Guess there's something going on with 4.4 and |
I've isolated the remaining test failure here to be coming from conda-build 3.x. When I locally install conda-build 2.1.x, the test passes. |
32c3cce
to
874720a
Compare
🎉 Tests are finally passing. |
.travis.yml
Outdated
@@ -38,7 +38,7 @@ install: | |||
|
|||
# Now do the things we need to do to install it. | |||
- conda install -c conda-forge --file requirements.txt nose mock python=${PYTHON} ${EXTRA_DEPS} --yes --quiet | |||
- if [[ -n ${CONDA_ORIGIN} ]]; then conda install -yq -c ${CONDA_ORIGIN} conda conda-build; fi | |||
- if [[ -n ${CONDA_ORIGIN} ]]; then conda install -yq -c ${CONDA_ORIGIN} conda conda-build=2.1; fi |
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.
FWIW there has been some work to drop |
I actually thought there wasn’t compatibility yet with conda-build 3. So maybe there’s just one interaction between conda 4.4, conda-build 3, and conda-build-all. Test failure is at #97 |
I'm completely happy to merge the code-changes, but don't really want to loose the cb3 testing if possible. Is there anything I can do to help get your changes in combination with the original cb3 test? |
@@ -5,7 +5,41 @@ | |||
|
|||
CONDA_VERSION_MAJOR_MINOR = tuple(int(x) for x in CONDA_VERSION.split('.')[:2]) | |||
|
|||
if (4, 3) <= CONDA_VERSION_MAJOR_MINOR < (4, 4): | |||
if (4, 4) <= CONDA_VERSION_MAJOR_MINOR < (4, 5): |
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.
Is this equivalent to: if CONDA_VERSION_MAJOR_MINOR == (4,4)
?
Ping @kalefranz. I think this is pretty much good to go, I'm just looking to avoid removing the cb3 testing if possible. |
There was one test failure that pinning to conda-build 2.1 fixed. https://travis-ci.org/conda-tools/conda-build-all/jobs/341129488#L803 So I guess we have some interaction between the new matchspec in conda, new conda-build, and conda-build-all here. I so far haven't been able to track down what it is. |
The only change here for conda 4.4 is a small tweak in logging initialization. I just got my first issue reported that I believe to be a result of thrashing between conda 4.3 and 4.4: conda/conda#6804. Conda 4.4 has been out for over a month now, and it's been pretty stable since the initial release (was in canary for months). Probably time to get the conda-forge upgrade pushed through for conda-forge users.