TST: Re-enable test_all for devdeps but only when noscipy is not specified (try 3)#17900
TST: Re-enable test_all for devdeps but only when noscipy is not specified (try 3)#17900mhvk merged 2 commits intoastropy:mainfrom
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.
|
This comment was marked as resolved.
This comment was marked as resolved.
|
I don't think oldestdeps failure is related. It does ask the question on whether we have to revert #17057 . Linkcheck failures are also unrelated. |
|
I initially suspected that some additional indirect dependency was forcing numpy to be upgraded on |
|
Can you try running CI again with |
b60ca48 to
fcce310
Compare
|
@neutrinoceros , what does this mean? |
|
I don't know. I assume that it's either a different rust program crashing before |
|
@neutrinoceros that did not seem to help. Any other ideas? |
|
not yet, sorry. What's very frustrating is that I can very easily enable debug outputs by running uv directly with the same command that tox appears to be running: But then I don't reproduce the problem, and get the expected numpy version I'll add this to my list of situations I've seen tox creating more problems than solutions... |
|
Very frustrating indeed. Your PR did not seem to help in this case. Maybe for now, I should change |
|
But maybe I should also remove |
540f54e to
5bcd976
Compare
| test: test | ||
| recdeps: recommended | ||
| recdeps: test_all | ||
| recdeps: all |
There was a problem hiding this comment.
I don't know what recdeps is for. It tries to install test_all anyway, so might as well be alldeps because test_all already includes recommended. But maybe somewhere downstream is using it, so I'll keep it for now.
There was a problem hiding this comment.
Wait, are you saying that our tox envs are considered public API somehow ? This feels daunting.
There was a problem hiding this comment.
Not public per se, but it is not in scope in this PR to break a possible usage somewhere.
There was a problem hiding this comment.
I'm puzzled. How would it be used anywhere else ?
There was a problem hiding this comment.
We don't use it in docs either. So I think it is okay to remove but let's do that in a different PR.
There was a problem hiding this comment.
Actually I change my mind. It is cleaner to remove it here, rather than changing the specs. Thanks for bringing this up!
There was a problem hiding this comment.
My logic was that since we have a set of recommended dependencies, we probably wanted some tests to just run with those. And at least at the time, I thought that sometimes I just want the "standard" stuff like scipy to be tested, but not have to wait to pull everything else in. But in practice, I certainly hadn't remembered it and so haven't used it - probably enough reason to remove it... If kept, though, just use recdeps: recommended.
There was a problem hiding this comment.
I should have made a note on why I added test_all to it because I have zero recollection. I am neutral on keeping it but reverting back to recommended, or just removing it. I don't use tox locally.
5bcd976 to
3c40d45
Compare
mhvk
left a comment
There was a problem hiding this comment.
I guess my mild preference would be to use this PR to restore recdeps to how it was defined originally (i.e., just remove recdeps: test_all, which brings in everything). But I'm also fine with just removing it.
but only when noscipy is not specified. We have to copy over some stuff from test_all in pyproject.toml to tox.ini because tox unable to grab them automatically when there are multiple extras. Because of the tox bug, test_all does nothing for recdeps and alldeps in extras in tox.ini so we remove the misleading directive. In fact, if you install the rest of the stuff in test_all into alldeps via the deps directive, oldestdeps start to fail because it silently upgrades to latest numpy instead of using the minversion of numpy.
3c40d45 to
c0ca8ae
Compare
|
@mhvk , ok, I restored recdeps. |
|
Linkcheck failure unrelated and I cancelled the rest of the weekly cron jobs because they are irrelevant here. |
|
Other 2 failures are all remote data, also unrelated. |
|
OK, thanks! Let's just get this in! |
…ly when noscipy is not specified (try 3)
…900-on-v7.0.x Backport PR #17900 on branch v7.0.x (TST: Re-enable test_all for devdeps but only when noscipy is not specified (try 3))
Description
This pull request is an alternative to #17812 and also to #17837 to fix #15242 . This works around tox-dev/tox#3433 .
Also removes unused recdeps.
xref skyfielders/python-skyfield#898 (comment)