Repository navigation
Move 32bit CI to weekly - #15018
Move 32bit CI to weekly#15018
Conversation
|
Thank you for your contribution to Astropy! 🌌 This checklist is meant to remind the package maintainers who will review this pull request of some common things to look for.
|
|
👋 Thank you for your draft pull request! Do you know that you can use |
|
We also have to put the double test somewhere. It is currently piggybacking on the old 32-bit job. And with this PR, we'll also have to remove the old 32-bit job. And since the old job is a required job, I'll have to update branch protection rule after merge. |
262660f to
d5e1124
Compare
| uname -a | ||
| getconf LONG_BIT |
There was a problem hiding this comment.
These only exist to so we can confirm that some of the jobs are 32 bit.
There was a problem hiding this comment.
Your comment above is a little incomplete, so I am trying to understand more. Do you mean that getconf LONG_BIT would just crash if it is not a true 32-bit machine? Or is it suppose to print something out to the log?
There was a problem hiding this comment.
This prints out how many bits a floating point is by default in the architecture. It should return 32, which it does.
There was a problem hiding this comment.
2023-07-07T16:50:23.8975207Z run: uname -a
getconf LONG_BIT
python3 -m venv --system-site-packages tests
source tests/bin/activate
ASTROPY_USE_SYSTEM_ALL=1 pip3 install -e .[test]
python3 -m pytest
I don't see any number printed out here.
There was a problem hiding this comment.
uname -a
getconf LONG_BIT
Outputs are right here:
- https://github.com/astropy/astropy/actions/runs/5488698114/jobs/10001903172?pr=15018#step:3:1000
- https://github.com/astropy/astropy/actions/runs/5488698114/jobs/10001903172?pr=15018#step:3:1001
There was a problem hiding this comment.
Anyway, we can make it print out LONG_BIT=32 instead of just 32? It is really hard to find.
| !cov: pytest --pyargs astropy {toxinidir}/docs {env:MPLFLAGS} {posargs} | ||
| cov: pytest --pyargs astropy {toxinidir}/docs {env:MPLFLAGS} --cov astropy --cov-config={toxinidir}/pyproject.toml --cov-report xml:{toxinidir}/coverage.xml {posargs} | ||
|
|
||
| double: python -c 'import sys; from astropy import test; test(); sys.exit(test())' | ||
| double: pytest --pyargs astropy {toxinidir}/docs {env:MPLFLAGS} {posargs} |
There was a problem hiding this comment.
@saimn and @astrofrog will this work for the double tests? It just runs all of the tests twice in the same tox environment.
|
The double test should not also be the parallel test, because the parallel test actually isolates tests into subprocesses whereas the double test is checking for changes in the global state which won't happen if the tests run in subprocesses. |
e025f71 to
4268234
Compare
|
It appears that there are no numpy 1.22 packages for these architectures for A similar workflow failed for me for |
|
I think what @larrybradley was trying to say is that we cannot test any of those exotic archs no more if we drop numpy 1.21 now, unless there is a way to ask them to provide numpy 1.22 or later. |
|
@WilliamJamieson Those jobs are using |
47996a8 to
8558a28
Compare
See my update, 8558a28, simply switching to the rolling ubuntu release solves this issue: |
| with: | ||
| arch: ${{ matrix.arch }} | ||
| distro: ubuntu_latest | ||
| distro: ubuntu_rolling |
There was a problem hiding this comment.
Is rolling too unstable? Will we see breakage that we cannot do anything about?
There was a problem hiding this comment.
Its the only one available by our workflow which has numpy 1.22+ pre-built.
There was a problem hiding this comment.
So theoretically, we can bump it down to latest again when the distro people catch up?
There was a problem hiding this comment.
Not like we have a choice here... but we might have to rethink if this proves to be too unstable. Unless @olebole has a better idea?
There was a problem hiding this comment.
We can use the base_image option and pick a docker image from docker hub that works. I think the debian bookworm image should work.
There was a problem hiding this comment.
Note rolling is not the unstable devel release. rolling is the latest release of Ubuntu 23.04 lunar. Its the rolling pulled from Dockerhub: https://hub.docker.com/_/ubuntu
984a2e2 to
1b1925b
Compare
arm7 is the arch of some of the 32bit native raspberry pi computers. So it should be a good test for continued 32 bit support
1b1925b to
5f55eed
Compare
|
|
||
| run: | | ||
| uname -a | ||
| echo "LONG_BIT="$(getconf LONG_BIT) |
There was a problem hiding this comment.
|
I updated the branch protection rules. |
Description
I believe arm7 is the arch of some of the 32bit native raspberry pi computers. So it should be a good test for continued 32 bit support. This pull request adds it and a test for 32bit support to the weekly cron.
closes #15007