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 4.0 compatibility #14139
Tox 4.0 compatibility #14139
Conversation
OK, now the failure is at least consistent with the other repo that is reported at tox-dev/tox#2612 |
Doesn't look like it is the |
Unfortunately, we cannot just pin tox, since it comes in via https://github.com/OpenAstronomy/github-actions-workflows/blob/main/.github/workflows/tox.yml |
Grumpy side comment: I wonder where this idea came from that it is good to upgrade |
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.
I am pretty sure there is a better option than this by using https://github.com/OpenAstronomy/github-actions-workflows/#toxdeps
I can take a swing tomorrow if nobody else beats me.
We aren't really "upgrading" it we are installing it. The upgrade is really for the other user provided packages. |
I mean now this is about getting it to run with tox 4, if you can pin it to 3 to get the ci running again, great! |
Trying out the pinning at #14142 |
just chiming in to say the JWST pipeline had a similar issue spacetelescope/jwst#7384 since |
7078182
to
aa1e5fb
Compare
This PR should remove the pin her ehttps://github.com/maxnoe/astropy/blob/remove_pypi_filter/.github/workflows/ci_workflows.yml#L53, because otherwise you're not testing against tox 4 :-) |
The remaining failures now are the 32 bit parallel test which fails due to xdist not getting the same tests in each worker process (which I suspect somehow is a tox issue since it passes on tox < 4) and the allowed failures, where there is a scipy issue about a missing optional dependency |
Re: 32-bit job -- On our side here, it is not unreasonable to keep the tox pin for that one job because it is going to die soon anyway. However, potential incompatibility with pytest-xdist might still be real but isn't something we can fix here. |
Likely this is probably related to some env-var missing, or random seeding, would be great if someone could look into finding out what 😊 |
Yes, that's likely just a newly pulled in dependency in scipy-dev that needs to be added. In #14123 I am still getting a 'utf-8' decode error in the Windows job; that's the only place I found where the |
Hold your horses... Let numpy release first and make sure nothing breaks with it. That is more important. Thanks! |
Is numpy 1.24 involved here? It is already released btw. |
Yes, we want to make sure CI is green with the new release first without having to also worry about tox upgrade. Thanks for your patience. |
Will need another rebase to get the numpy 1.24 fix from #14193 in; this should also run with tox 4.0.15 then to resolve tox-dev/tox#2747. |
71d929f
to
68f8c52
Compare
The dev dependency tests fail with an error related to downloading a scipy test image and the link check docs build fails also, but I cannot really make out why. |
This comment was marked as resolved.
This comment was marked as resolved.
OK CI should be green now in main. Please rebase. Thanks! |
6b480b5
to
dfdfac3
Compare
dfdfac3
to
e786d6c
Compare
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.
Wonderful that this now works!
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.
Looks great now; +1 for opening an issue on PYTHONHASHSEED
, and also to keep track of progress on
astrofrog/tox-pypi-filter#8
The tests are running, just not in parallel due to fixtures and parametrized Tests using sets with string values, which order depends on the sees and then the pytest xdist test collection fails. |
e786d6c
to
4224963
Compare
Ok, with that the only change in tox.ini is the change from spaces to commas and the removal of pypi filter |
I've just re-run the CI to check against the current tox 4.3.1, and could not see any no tox-related failures. |
OK, I have not seen any concerns against removing |
same Weekly cron failure on main; thanks for the fix! |
I think this patch is incomplete. Two CircleCI jobs that don't run on PR branches now fail, see: |
Maybe should have rebased again... or simply missed Line 61 in b1e6ff8
as it is only running on main ? The failed jobs are running tox-3.28.0.
|
Good catch, @dhomeier . Thanks! |
Description
This pull request is to address compatibility issues with tox 4.0.x released on 2022-12-07.
Fixes #14143
Checklist for package maintainer(s)
This checklist is meant to remind the package maintainer(s) who will review this pull request of some common things to look for. This list is not exhaustive.
Extra CI
label. Codestyle issues can be fixed by the bot.no-changelog-entry-needed
label. If this is a manual backport, use theskip-changelog-checks
label unless special changelog handling is necessary.astropy-bot
check might be missing; do not let the green checkmark fool you.backport-X.Y.x
label(s) before merge.