-
Notifications
You must be signed in to change notification settings - Fork 425
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
Add tests to ensure that context is properly reset #5083
Conversation
I'll also submit a PR to add a test case (using the |
Awesome! Feel free to push here if you want @mbargull! |
dbe734b
to
5c63e3f
Compare
Sorry for the commit notification spam 🙈 . So, the added test does not fail although it should... My plan was to add that test with an |
conda-forge/stackvana-feedstock#158 does work though :D |
f7deb0a
to
d8538da
Compare
Oh, yeah, it definitely fixes the issues. I just want to make sure we have some kind of regression test (esp. since the code around this is pretty finicky). Now, the issue with the test was that is passed whenever any test has been run before (could have even been the same test for which then only the first invocation failed). AFAICT, |
So we don't need
|
conda.plan
24a8814
to
5e57df1
Compare
5e57df1
to
48d42ce
Compare
Signed-off-by: Marcel Bargull <[email protected]>
48d42ce
to
e02a0f7
Compare
Yes, much simpler and working :).
Done.
Done, and I squashed my debug commit mess and added a
Done. |
Hm:
|
The canary ones are okay to fail and will pass once the PR for |
Took a look: |
Signed-off-by: Marcel Bargull <[email protected]>
The tests should fail again now, but succeed whenever conda/conda#13357 is ready and merged. |
Dependencies of python are altered acc. to add_pip_as_python_dependency. In case that configuration value is changed at runtime (currently only observed in conda-build's tests), SubdirData._cache_ gets invalid. The offline cache on disk already considers the option, such that the changes here make runtime behavior consistent with the offline cache. refs: - conda#13357 (comment) - conda/conda-build#5083 (comment) Signed-off-by: Marcel Bargull <[email protected]>
Awesome. Thanks @mbargull! |
Dependencies of python are altered acc. to add_pip_as_python_dependency. In case that configuration value is changed at runtime (currently only observed in conda-build's tests), SubdirData._cache_ gets invalid. The offline cache on disk already considers the option, such that the changes here make runtime behavior consistent with the offline cache. refs: - conda#13357 (comment) - conda/conda-build#5083 (comment) Signed-off-by: Marcel Bargull <[email protected]>
Dependencies of python are altered acc. to add_pip_as_python_dependency. In case that configuration value is changed at runtime (currently only observed in conda-build's tests), SubdirData._cache_ gets invalid. The offline cache on disk already considers the option, such that the changes here make runtime behavior consistent with the offline cache. refs: - conda#13357 (comment) - conda/conda-build#5083 (comment) Signed-off-by: Marcel Bargull <[email protected]>
Signed-off-by: Marcel Bargull <[email protected]>
Signed-off-by: Marcel Bargull <[email protected]>
Is this still worth adding? |
Yes. |
Description
See conda/conda#13357
Checklist - did you ...
news
directory (using the template) for the next release's release notes?