Skip to content

Cleanup policy may result in a complete removal of a project #119

Closed as not planned

Description

@martinfleis

Hey,

shapely had an action building the nightly wheels failing for slightly over a month which resulted in no new uploads for more than 30 days. At that point, the cleanup kicked in and removed the wheel as it was older that 30 days, resulting in shapely being completely removed from the index.

I understand we don't want too old stuff there but shall we try to prevent this from happening? I think that it may be wise to ensure that a project that is admitted to the channel is present there, even with a slightly older wheel. Shapely's development is slow and 30 days mean very little in most times, so there would be no difference.

It was reported over in shapely today (shapely/shapely#2202) as it caused unexpected behaviour when trying to follow the docs.

Activity

  1. matthewfeickert commented on Jan 16, 2025

    @matthewfeickert
    Member

    I think that it may be wise to ensure that a project that is admitted to the channel is present there, even with a slightly older wheel.

    @martinfleis Hm. I would take the other view that if a wheel isn't being updated in a month then it isn't a "nightly".

    I understand that this wasn't a high priority fix the build (no judgement there at all), but in general (assuming that the build would be working) would shapely be uploading wheels on a more than once per month basis? I don't see harm in just reuploading the same wheel.

    edit: I'll readd shapely now btw.

    edit to the edit: Ah, I see that you already restored shapely on https://anaconda.org/scientific-python-nightly-wheels/shapely with shapely/shapely#2203 👍 Thanks!

  2. bsipocz commented on Jan 16, 2025

    @bsipocz
    Member

    I agree with @matthewfeickert here as I got bitten by this exact problem above, e.g. the build of the dev testing CI job was passing and I assumed we were testing dev/nightly versions, but unfortunately something was broken upstream and in fact we did test an outdated version, that was even older than the latest release.

    And this maybe in fact a good feedback loop too in case the upstream hasn't even noticed that something is going wrong for a month already.

  3. jorisvandenbossche commented on Jan 16, 2025

    @jorisvandenbossche
    Member

    A small correction here is that this removal of shapely from the index was in fact not related to a failing build, but simply because no commit was done in 30 days over the holiday period (and as Martin mentioned, shapely's development cycle is quite slow, so also in other periods it can happen that no commit is merged to main for some time).

    And because we are not building wheels "nightly" on a fixed schedule but only on commits to main, no nightly wheel got uploaded for that time.
    (now that we made some commits again, there was indeed a CI failure briefly preventing to upload new nightly wheels, but that was quickly resolved)

  4. jorisvandenbossche commented on Jan 16, 2025

    @jorisvandenbossche
    Member

    Ah, sorry, Martin was of course correct nonetheless ..! We do have a weekly scheduled wheel build+upload as well, and that was indeed failing. But because no other PRs were active or merged during that period, we didn't notice the failure through the typical means to see CI is failing. We should maybe set up some notification for when the scheduled action fails.

  5. bsipocz commented on Jan 16, 2025

    @bsipocz
    Member

    We should maybe set up some notification for when the scheduled action fails.

    Yes, unfortunately, github is not great in regard of issuing notifications about failing cron jobs, so you probably need to hack around so the failing job status triggers an issue opening.

  6. martinfleis commented on Jan 16, 2025

    @martinfleis
    MemberAuthor

    Alright, I understand the reasoning behind this and I suppose it makes sense to keep it this way.

  7. stefanv commented on Jan 18, 2025

    @stefanv
    Member

    Yes, unfortunately, github is not great in regard of issuing notifications about failing cron jobs

    I wonder if we should set up a send-email action via a Scientific Python sendgrid account, so that all projects can send notification as needed? We've needed this feature quite a few times now.

  8. matthewfeickert commented on Jan 18, 2025

    @matthewfeickert
    Member

    I wonder if we should set up a send-email action via a Scientific Python sendgrid account, so that all projects can send notification as needed?

    That sounds like an excellent idea! ➕ to this.

  9. bsipocz commented on Jan 18, 2025

    @bsipocz
    Member

    Or maybe an open issue action instead? Then we can cc whomever is in charge of the given package and they will have control whether to receive a GitHub email or just the notification

  10. stefanv commented on Jan 22, 2025

    @stefanv
    Member

    Thinking about who would notify who: will we open an issue when a package disappears from the repository? Or should projects simply do the open-issue-on-failure in their own CI?

    We can provide an example how to do that, if that'd be helpful.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions