Skip to content

Decision: should link checking and Colab checks move from per-repo workflows into shared actions? #194

Description

@quantecon-services

The choice. docs/dev/PLAN.md records a settled decision: "collab.yml and linkcheck.yml remain standalone workflows". Two issues filed on 2026-09-24 propose the opposite, carried over from the deleted FUTURE-DEVELOPMENT.md (#182):

Neither can start until the settled decision is either reopened or confirmed.

Evidence to gather before deciding (both issues' first checklist items):

  • Survey the lecture repos' linkcheck.yml files. How many are there, how far have they drifted, and what does each one exclude?
  • Who runs a Colab check today? Only lecture-python.myst is known. Would others adopt one?
  • How would a shared Colab check report failures caused by Colab's unpinned :latest runtime rather than by the lecture?
  • Reuse: both would file a deduplicated issue the way build-jupyter-cache does. Would that step be extracted and shared?

Outcomes.

Related: #115 is prior art (lychee); #96 is a similar reopening of a settled PLAN decision, the .notebooks repos.

Activity

  1. added
    discuss
    on Sep 24, 2026
  2. mmcky commented on Nov 15, 2026

    @mmcky
    Contributor

    The evidence this issue asked for, gathered on 2026-11-15 against main at c21e481. I read the workflows of the 63 non-archived QuantEcon lecture repositories (every translation included, plus continuous_time_mcs), their run histories and the issues they filed, and seven run logs. Below are the four answers, then what the maintainer decided on 2026-11-16.

    1. The linkcheck.yml files

    13 repositories have one. They are 9 distinct files using 3 tools, and only 7 still run.

    Tool Repositories What it checks Duplicate issues? State
    QuantEcon/action-link-checker (@v1, @v1.2.0) lecture-python-intro, lecture-python-advanced.myst, lecture-python-programming, continuous_time_mcs the latest release archive, weekly No: at most one each, refreshed in place since v1.1.0 (2026-08-03); lecture-python-intro and lecture-python-advanced.myst still have 20 and 5 open lychee reports from before Active
    lycheeverse/lychee-action@v2 with peter-evans/create-issue-from-file lecture-python.myst, lecture-dp, test-actions-lecture-intro (the canary) the release archive, or gh-pages for the canary; weekly Yes, a new issue every run: 21, 18 and 27 are open today Active
    Sphinx's linkcheck builder lecture-dle, lecture-dps, lecture-dynamics, lecture-eqm and lecture-tools-techniques (byte-identical), and lecture-stats a rebuild from the cache artifact, daily No issue, only an artifact on failure All six disabled by GitHub for inactivity

    How they have drifted. There are three tools, and three schedules: daily, Sunday or Monday. The step that downloads the release archive is hand-copied six times, in three variants, and none of them checks the archive's checksum. Every live check runs with failing turned off, so a green run says nothing: the issue is the only signal. The canary's check passes --accept 403,503 without 200, so it reports every working link: QuantEcon/test-actions-lecture-intro#81 lists 905 errors.

    What they exclude. There are 20 entries across four repositories: eight citations (five DOIs, an IEEE article, a ScienceDirect article, a matplotlib permalink) and twelve whole sites, among them stackoverflow.com, reddit.com and chatgpt.com. Only fred.stlouisfed.org (in 3 repositories), keras.io and data.oecd.org (in 2 each) recur. lecture-python.myst also skips its generated genindex, search and prf-prf pages, and accepts 202 from IEEE Xplore. The others exclude nothing.

    A shared link checker already exists: QuantEcon/action-link-checker, created 2025-10-01 and now on v1.2.0. It takes silent codes and ignore-patterns, and files a deduplicated issue: everything #184 lists. Neither #184 nor this issue mentions it. lychee is faster, 0.3 to 1.9 minutes a run against 8 to 13, which hardly matters for a weekly job.

    What it doesn't check: action-link-checker checks only external http(s) links (link_checker.py:16-18). lecture-python.myst and lecture-dp pass lychee --root-dir, which also checks root-relative links such as /_notebooks/*.ipynb and /_pdf, the download links. Moving them to action-link-checker would drop that.

    2. Who runs a Colab check

    Four repositories run one:

    Repository When it runs Reports by
    lecture-python.myst weekly a new issue per failure
    lecture-jax every pull request nothing: an artifact only
    lecture-python-intro every pull request nothing; it also deploys a Netlify preview from the Colab build
    lecture-stats every pull request nothing; it also deploys a Netlify preview

    23 of the 24 lecture configs I read offer a Colab launch button, so readers of nearly every site can open a lecture in Colab.

    But none of the four tests what #185 assumes. Each one first restores cache.yml's _build, .jupyter_cache included, and builds with execute_notebooks: cache. So only the lectures changed since the last cache build execute in Colab. The rest reuse outputs computed in the conda environment:

    Run Executed in Colab Served from the conda-built cache
    lecture-python.myst, weekly, 2026-11-09 24, exactly the lectures merged that week 130
    lecture-jax, two pull requests in November 3 and 2 29 and 30
    lecture-python-intro, two pull requests 0 and 0 56 and 56

    They also execute the MyST sources, not the sphinx-tojupyter notebooks that the launch button opens: the gap #2 describes.

    3. Failures that aren't the lecture's

    lecture-python.myst's check failed 32 of its 51 retained runs. None of the failures I could trace was Colab's runtime:

    The check filed one issue per failure, each titled with its run ID, 33 in all. Two are still open after 14 green weeks.

    The one Colab incompatibility on record went the other way. lecture-stats pins kaleido<1 in its check, because Colab's plotly can't use the kaleido that back_prop.md's !pip install kaleido cell installs. The pin turns the check green, but a reader in Colab still hits the problem. A failure caused by Colab's runtime is a failure for readers too, so it should be labelled, not suppressed.

    Attribution is possible. Colab published 13 dated releases of runtime:latest in the past year, about one a month, each with a release tag and a digest (the image is 20 GB). A check could attribute its failures this way:

    Step What it gives
    Look up latest's digest in a first job, and run on runtime@sha256:… The run knows exactly which image it tested
    Execute the built notebooks without the conda-built cache Every lecture is tested in Colab, as readers run it
    Take the build tools from environment.yml, as lecture-jax already does The 30-week drift can't recur
    On failure, compare the digest and the source SHA with the last passing run "Colab runtime changed (release X → Y)", "lecture change", or both, each with its own label
    File one deduplicated issue per cause, and never make it a required pull request check Noise stays out of the tracker and out of pull requests

    A full run costs what a full cache build does: 122 minutes on lecture-python.myst's GPU runner, 22 for lecture-jax and 12 for lecture-python-intro.

    4. Sharing the deduplicated issue

    Four filing mechanisms are in use:

    Mechanism Finds the open issue by On a repeat
    build-jupyter-cache's failure-issue step its first label comments
    this repository's scripts/create-ci-failure-issue.sh, for its own scheduled workflows its title, within a label comments
    action-link-checker its title, within the broken-links label rewrites the body
    peter-evans/create-issue-from-file nothing: it doesn't look opens a new issue: the 66 open link reports, 25 more left in lecture-python-intro and lecture-python-advanced.myst, and the 33 Colab issues above

    About 35 of the 190 lines in build-jupyter-cache's step are generic. If a second action here ever files an issue, that part can be shared the way scripts/preview-comment.cjs is shared between the preview actions, with no new public action. A single user today doesn't justify extracting it.

    Decided (the maintainer, 2026-11-16)

    Item Decision Why
    #184 Close as not planned QuantEcon/action-link-checker is already the shared link checker
    lecture-python.myst and lecture-dp Keep lychee, and pass its issue step an issue-number, so that one issue is refreshed. The old reports are closed after that It keeps the root-relative link checks, which action-link-checker doesn't make. The change is in those two repositories
    QuantEcon/action-link-checker Stays a standalone action at v1 for now, not moved into this repository It works and keeps one issue per repository. Moving it here would mean rewriting its action.yml to this repository's rules, and moving its four consumers from v1 to @v0
    #185 Keep open, blocked on #2, with its body corrected Four repositories run a Colab check, not one. The useful version runs the built notebooks in Colab's image, which is #2's notebook executor, with the attribution above
    PLAN's "collab.yml and linkcheck.yml stay standalone workflows" Stays, and PLAN records this outcome Both stay workflows in each repository
    The issue-filing step Extract it when a second action needs it Only build-jupyter-cache files an issue today
    The canary's own linkcheck.yml Removed, its 27 reports closed after that merges, and its gh-pages branch deleted It checks a gh-pages branch a year old, and accepts no 200

    PLAN's record of this outcome will close this issue.

    Claude Code (on behalf of mmcky)

  3. added a commit that references this issue on Nov 15, 2026
  4. mmcky commented on Nov 22, 2026

    @mmcky
    Contributor

    Outcome of the lecture-python.myst and lecture-dp row of the 2026-11-16 decision above:

    Claude Code (on behalf of mmcky)

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

    discuss

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions