Repository navigation
Conversation
|
Thanks a lot for the PR, can you explain how this would make our life easier? Unless I missed something, this adds an other automated issue for the wheel uploading job but generally the root cause lies in the wheel building job (I think?). |
|
The idea is to make feedback (via an issue) automatic and immediate rather than manual and delayed. Right now what happens is once a year (ish) or so, nightly wheel building breaks. It goes unnoticed long enough that a month later, the wheel gets deleted; MNE CIs go red, which I notice, and then investigate; I then open an issue. This is an attempt to make it so that issue would be opened immediately upon failure without any delay or action from me (or another user). So for you life stays about the same difficulty, but in theory attention is drawn to a problem sooner rather than later, which seems like a good thing. It makes downstream user life easier if you fix it within a month, and even if you don't, downstream users won't have to manually open issues but will hopefully find the associated automatic one. |
|
... That being said, I'm totally fine with you closing this PR and continuing with the status quo at my end! It's not onerous or anything, this just seemed like an incremental improvement over the current situation to me. |
|
Here is the part I don't quite follow: we already have an automated issue tracking the automatically opened Wheels build failure. It's unfortunate in this case that this has failed intermittently for a while (for a variety of reasons) and then consistently because of Cython regression in 3.2.6 and that noboby noticed or the people that noticed were too busy on how to address it and/or not sure how to address it. Suggestions on how to improve the visibility of this issue or warn more explicitly when the failure is consistent for a few days (say a week) more than welcome: a few rough ideas in #34458 (comment). |
|
Ahh I didn't see that that one was also failing. One thing that this PR does that might help is |
|
Yeah we do have a number of intermittent issue, in particular because for historical reasons we run the tests with different random seeds on different days to try to figure out if some tests are passing by luck of picking a random seed (I find these tests less and less useful personally but 🤷) or sometimes we have non-deterministic failures (glitch in the GHA infra, OpenML datasets, free-threaded non-deterministic failures, etc ...). In this case it's nice to have the same issue to track different issues, but it also quickly turns into a mess if there are too many different failures .... My best idea right now is to tweak the title of the automated issue to say "this has been failing for 7 days, something real is going on, you need to take a look now!". |
|
I agree that not producing a nightly for a month is not great. I'm not sure if having a dedicated issue is useful. I have to admit that I didn't realise that there being no nightly wheel was a side effect of the nightly job failing (for so long), but I"m not sure what it would have changed. The main missing ingredient is IMHO giving the "nightlies are broken" task a high enough priority so that it gets dealt with. That is a difficult thing to do though :( and then throw in complication piling on top of complication (potentially because things were broken for a while) and suddenly a month has passed :-/ One thing I am puzzled by though is that there was no nightly wheel on the scientific-python nightly channel. I had read https://github.com/scientific-python/upload-nightly-action#artifact-cleanup-policy-at-the-scientific-python-nightly-wheels-channel to mean that "we will keep at least the last five versions, and bin everything else that is >30days old". But maybe the correct way to read this is "we will keep at most the last five versions and delete everything that is over 30 days old"? Can you briefly confirm that indeed there was no nightly wheel, just to make sure I didn't misunderstand. If yes, I will go and open an issue to ask if we can change the retention policy. (An old wheel is less useful than a recent one, but probably better than no wheel) |
Correct there was no nightly wheel. The the retention policy seems to be that anything over 30 days is deleted -- see for example also PyTables/PyTables#1338 (just yesterday!). One advantage I guess would be that for projects like PyTables that have less checking infrastructure, they do eventually get notified about the failure by someone. If it was "keep forever" for example, then who knows when it would be noticed or fixed. So there are some advantages to this retention policy in that it prevents people from accidentally maintaining an incorrect assumption that "I am using a recent nightly", which is essentially the goal of the wheel repo IIUC. If the wheel disappears, then it's because it's not so recent anymore at the 30 day point, and expectations and downstream consumption arguably should adjust accordingly. As someone who deals with this friction directly a few times a year (and opens related issues in repos, for example also statsmodels), I actually see it as more of a feature than a bug! |
|
I think there is also a space thing, all the projects are using the same anaconda.org bucket with limited space. Some projects (like us) update a wheels with the same filename 1 so there is not too much of a risk that the scikit-learn usage grows too much, but others like pandas IIRC have some kind of git-based hash which changes on every upload e.g.
For me it's always has been, but looks like this responsibility has not been widely distributed 😉. I am trying to think of ways to improve this (technically and not technically). For example scipy-dev was broken for a while, if I had been available I would have looked at it and reported the cython dev issue earlier and (in an ideal world we don't live in) we wouldn't have to run like headless chickens in fireman mode to deal with the cython 3.2.6 regression 😉.
Yup that's exactly the problem that happens if you leave things linger ... for example now downstream projects are going to have a scikit-learn dev wheel with one month of updates and the likelihood that we break something is higher. I don't think it's extremely likely that we broke something for downstream projects but if we did, there is a chance it happened a a months ago and we may not remember the details as much as if it was one week ago. Footnotes
|
What does this implement/fix? Explain your changes.
Make the automatic issue track more jobs so that
scientific-python-nightly-wheelsfailures are noted in #34458.AI usage disclosure
I used AI assistance for:
Used Claude Fable 5, but I understand and vouch for the code