-
Notifications
You must be signed in to change notification settings - Fork 39
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
tox-conda failing on call #164
Comments
It seems to me that tox-current-env and tox-conda cannot be used together, has it worked before? |
@AntoineD It has. Everything seemed to be working a month ago. Beyond changes to the relevant tox packages (which I've tested against), it isn't clear to me what has changed. |
What is the purpose of using |
My use-case is my tox configuration acts as a universal testing configuration for both CI and local development. I have a base environment that is built with a GitHub CI action, so it's wasteful/long to recreate an environment when I have already initialized the one calling tox with the proper packages. That said, my tox configuration has my testing ensemble (env_vars, pytest calls, etc.), so I would like to use it, rather than have to synchronize my GitHub workflows and tox configurations all the time. I imagine I could get by with a Makefile for testing, but before resorting to that, I wanted to see if there was anything that could be done to resolve this bug. |
I'm not sure to get the point of using Using a tox env for developing seems to be the purpose of the tox option For the long env creation duration on the CI, have you tried to use caching? |
(I realize this is quickly moving beyond the scope of tox-conda and I appreciate your help!) I've only been using
Never have. Will refer to the docs! |
Could you point me to a commit that used to work, and to the part of your CI config where |
Last failing CI config with tox-current-env (a few days ago): https://github.com/Ouranosinc/xscen/blob/f32b7139f71f1fc2bbd75df5703bc93da2b771d6/.github/workflows/main.yml Failing step trace back on CI: https://github.com/Ouranosinc/xscen/actions/runs/4283619254/jobs/7459447397 Working CI config with tox-current-env (~a month ago): https://github.com/Ouranosinc/xscen/blob/404d3e21000ab8a706ca04d2ba598b7eae9eb58a/.github/workflows/main.yml Working trace back on CI: https://github.com/Ouranosinc/xscen/actions/runs/4147083062/jobs/7173540012 |
Thank you. In the testing job, I see the option |
Sure, thanks again! So the testing matrix creates three separate instances of conda environments, all initialized with the This same Roughly, the breakdown looks like this:
Does this help explain things a bit? |
Hi,
I'm trying to debug a failing CI build that is based on tox + tox-conda. It appears that tox-conda fails at the virtualenv creation step, but the trace back does not say why. I have tried using the conda and the pip versions, as well as combinations of the last two versions, of each tox-based dependency (tox, tox-conda, tox-current-env).
Call:
Traceback:
(For more context, see: Ouranosinc/xscen#157)
The text was updated successfully, but these errors were encountered: