Skip to content

docs-ci: Reduce unnecessary linkchecks #116

@victorlin

Description

@victorlin

Description

The purpose of running make linkcheck is to ensure:

  1. Newly added/modified links are valid
  2. Existing links are still valid

There was a huge benefit when adding this check, which surfaced all the invalid links that had been sitting unnoticed. However, I don't think we've gained much from it since then. The check is running on every single code change to a repo with a docs project. It's mostly been false-positives and I can only recall one true positive.

Possible solutions

  1. Run linkcheck on a schedule (e.g. weekly).
    • This removes the immediate feedback on newly added links, but I think it's acceptable for these reasons:
      1. It's unlikely that a PR author will add an invalid link.
      2. Most broken links do not need to immediately be fixed.
      3. For broken links that would benefit from immediate fix, a thorough review should catch these.
  2. Run linkcheck on CI but only when there are code changes in inputs.docs-directory.
    • This should be trivial to implement and maybe less controversial than (1).

priority: low To be resolved after high and moderate priority issues

With #106 resolved, things should be manageable. The benefits are:

  • Avoid causing confusion on some PRs. Errors from transient broken links are unnecessary noise on PRs that have not changed the link itself.
  • A reduction of unnecessary CPU cycles.

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