-
Notifications
You must be signed in to change notification settings - Fork 424
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
Behavior of pin_compatible() is different for different runs? #2707
Comments
FWIW, I caught this while skimming through the output of conda-verify, since it doesn't like >=,< run deps at the moment and kept saying:
... and my expression was: |
May have something to do with conda/conda#6821 (comment) I have not been able to duplicate this issues with conda 4.3.x. |
@nehaljwani The conda-verify issue seems to be with the pre-release versioning rather than the relational operators. I've opened an issue on the issue tracker and hope to get it sorted out soon. |
@nehaljwani yes, that is the simplest answer for right now. |
Does setting PYTHONHASHSEED keep the results consistent? |
@kalefranz Dumb query: where should I set it? |
I guess as an environment variable before invoking conda-build. I don’t think conda-build ever subprocesses to conda. If it does, hopefully it passes the whole environment through. |
As a first test, just set it to some constant value, like |
On setting that value to 1, and repeated runs, I always get the dep: |
Ok. I saw similar nondetermistic behavior when working on conda/conda#6929. The solution there could solve this too. Nondetermisitic behavior like this is pretty rare, which at least hints at the same root cause. |
So, some background... Conda 4.4 contains my own naive implementation of a dag data structure. Naive because I'm an electrical engineer, never having a formal data structures and algorithms class, and basically just wrote it up as I was working on development of So I'm reworking this whole dag data structure class. This time ripping off someone else's code as a starting point. The fix will probably be the last PR that goes into 4.5.0. I don't exactly want to put it in 4.4.x because if I don't get the handling of cyclical graphs quite right to start with, we could end up with some ugly stack traces initially. I don't think it'll take long to work those issues out, but it's my primary concern with the code I'm working with right now. This last PR for 4.5.0 should be ready to go either tomorrow or Monday. |
I could not reproduce @nehaljwani's issue in a docker container, and then realized I was using python 3 instead of python 2 for the conda interpreter. While using conda 4.4.11, I switched to python 2, and with Then I updated conda to 4.5.0rc0. With PYTHONHASHSEED=[1-5], I got |
Excellent, that looks fixed. Thanks for testing, Kale. |
I've tested this too. 4.5.0rc0 solves this. |
Thanks Nehal. I'm going to go ahead and close this. |
Hi there, thank you for your contribution! This issue has been automatically locked because it has not had recent activity after being closed. Please open a new issue if needed. Thanks! |
I have a simple recipe:
I have a simple build matrix:
In a fresh container of docker.io/conda/c3i-linux-64, build this recipe.
One building this package, one the first run, I get:
Now, I run it again. This time I get:
Now, I run it again. This time I get:
Now, I run it again. This time I get same as above.
Now, I run it again. This time I get the same as the second run.
What's happening?
The text was updated successfully, but these errors were encountered: