Skip to content

Linkchecker blocks merging when certificate on external site is expired #1998

Closed

Description

@konstin

Issue Description

We currently can't merge any changes because the certificate of someone's private blog expired: https://github.com/pypa/packaging.python.org/actions/runs/21515206224/job/61995726370. As the linkchecker checks all sites for each PR, it has a lot of opportunities to fail in way unrelated to the PR it's checking. For example, the PR the linked workflow it's failing on is trying to handle another failure caused by a sourceforge policy change: #1997.

Could we move the link checker to not be a required check, or move it to a daily cron CI job? I can file a PR to do the change.

Code of Conduct

  • I am aware that participants in this repository must follow the PSF Code of Conduct.

Activity

  1. woodruffw commented on Jan 30, 2026

    @woodruffw
    Contributor

    Yeah, fully agreed. IMO we can disable the link check on PRs but keep it as a periodic cron for maintenance purposes.

  2. woodruffw commented on Jan 30, 2026

    @woodruffw
    Contributor

    I've temporarily added that domain as part of #1997 as well.

  3. ncoghlan commented on Mar 5, 2026

    @ncoghlan
    Contributor

    I recently hit a different problem with the linkchecker, where merging a half dozen changes in a row slowed down the merge queue because the linkchecker got rate limited by GitHub itself (lots of our links go back to GitHub repos).

    The reason we haven't set the linkchecker up to only run in cron previously is because we actually do want to ensure that any links added or modified by a PR are valid before we merge them.

    Ideally it would be possible to run the link check in a branch-aware mode, where it only checked links on lines that had been modified in the branch (and then have a cron job running to pick up when external links have gone stale and either remove them or find replacements for them).

  4. webknjaz commented on Mar 26, 2026

    @webknjaz
    Member

    I think disabling certain domains is fine. But also, in modern Sphinx, there's some auth mechanisms that may allow us to get better rate limits for sites like GitHub.

  5. woodruffw commented on Apr 13, 2026

    @woodruffw
    Contributor

    #2032 will hopefully ameliorate this. We'll still have failures when a link actually breaks, though, which may need to be reevaluated over time.

  6. added a commit that references this issue on Apr 20, 2026
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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions