Skip to content

Fix tracking of nightly wheel failure - #34528

Closed
larsoner wants to merge 1 commit into
scikit-learn:mainfrom
larsoner:checkbot
Closed

larsoner wants to merge 1 commit into
scikit-learn:mainfrom
larsoner:checkbot

Conversation

@larsoner

Copy link
Copy Markdown
Contributor

What does this implement/fix? Explain your changes.

Make the automatic issue track more jobs so that scientific-python-nightly-wheels failures are noted in #34458.

AI usage disclosure

I used AI assistance for:

  • Code generation (e.g., when writing an implementation or fixing a bug)

Used Claude Fable 5, but I understand and vouch for the code

@lesteve

lesteve commented Jul 21, 2026

Copy link
Copy Markdown
Member

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?).

@larsoner

larsoner commented Jul 21, 2026 •

Copy link
Copy Markdown
Contributor Author

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.

@larsoner

Copy link
Copy Markdown
Contributor Author

... 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.

@lesteve

lesteve commented Jul 21, 2026 •

Copy link
Copy Markdown
Member

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).

@larsoner

Copy link
Copy Markdown
Contributor Author

Ahh I didn't see that that one was also failing. One thing that this PR does that might help is auto-close: true. That means once it's fixed, it closes the issue. That way, when it starts failing, it opens a new issue. But it seems like that was intentionally rejected in #32493. I'll go ahead and close here since it seems like this won't help visibility in a way that would be helpful!

@larsoner larsoner closed this Jul 21, 2026
@lesteve

lesteve commented Jul 22, 2026 •

Copy link
Copy Markdown
Member

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!".

@betatim

betatim commented Jul 22, 2026

Copy link
Copy Markdown
Member

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)

@larsoner

Copy link
Copy Markdown
Contributor Author

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!

@lesteve

lesteve commented Jul 23, 2026

Copy link
Copy Markdown
Member

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. pandas-3.1.0.dev0+1340.g59a21692b2-cp314-cp314t-<something-something>.whl.

The main missing ingredient is IMHO giving the "nightlies are broken" task a high enough priority so that it gets dealt with

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 😉.

and then throw in complication piling on top of complication (potentially because things were broken for a while) and suddenly a month has passed :-/

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

  1. if the version changes it's a different filename but in scikit-learn we don't change version often enough to actually matter I think. ↩

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants