-
Notifications
You must be signed in to change notification settings - Fork 134
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 commas between args to passenv in tox.ini #813
Conversation
The presence of commas is enforced in tox 4.0.6 Closes Qiskit#812
Pull Request Test Coverage Report for Build 4149952451
💛 - Coveralls |
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.
LGTM
One thing I would like to ping @mtreinish before merging this is our policy for using Tox 4: https://github.com/Qiskit/rustworkx/blob/main/.github/workflows/main.yml#L87 Right now we use Tox 3. Clearly this change passes the CI on Tox 3. But I wonder if we should profit from this to upgrade to use Tox 4 |
Is |
Can you revert #761 and bump Tox to 4.0 in CI? Then we can check that it works with the latest version which most people will start installing |
Yes, I can do that. I got the latest, |
CI failed. I wonder what |
The Ubuntu retworkx build is failing, I am going to investigate why it worked with Tox 3 but not 4 |
I 'm digging through the logs |
Looks like testing fails. But there is a lack of detail. Can't see the python stack trace. |
We'll likely need deeper changes to the tox configuration to enable it to work with tox >4.0.0. Tox 4 made a number of breaking changes, including critically how the build process works. I capped it to tox<4.0.0 at the time to give tox a chance to stabilize after their big breaking release before circling back to update the configuration. So far I don't think they've really slowed down making releases looking at https://pypi.org/project/tox/#history but I agree we should remove the cap since people are getting tripped up on this. The relevant section in the upgrade guide around where I expect the issues are: https://tox.wiki/en/latest/upgrading.html#packaging-environments |
Looking at the failure in particular it seems to be with the |
Yes, but if I'm not mistaken we don't mention anywhere that you need tox 3. It's only in the CI config files. And the instructions we give are explicitly incorrect |
It was an oversight, the tox pin wasn't meant to be there long term, but it was intended to be a short term workaround to unblock CI. But it's ended up persisting longer than I expected and the level of compatibility between tox 3 and tox 4 has decreased even further since the earlier releases in the tox 4.x series. There isn't a good way to specify a tox version cap automatically since tox triggers the package build and installs the requirements and test requirements for us. If we put |
Co-authored-by: Matthew Treinish <mtreinish@kortar.org>
Co-authored-by: Matthew Treinish <mtreinish@kortar.org>
CI failure is apparently unrelated to this test.
Closing after #851 got merged |
The presence of commas is enforced in tox 4.0.6
Closes #812