You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Decision: should link checking and Colab checks move from per-repo workflows into shared actions? #194
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.
Yes, for either or both: update the PLAN.md line, then build under a "published-site checks" project. ENH: standalone execution check of built notebooks #2 (standalone execution of built notebooks) is its natural third member.
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.
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:
Two more, on 2026-07-27 and 2026-08-03, can't be traced now: their logs have expired.
Two failures sampled from the pull request checks came from stale redirect warnings in the _build the cache had restored.
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.
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
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.
Activity
mmcky commentedon Nov 15, 2026
The evidence this issue asked for, gathered on 2026-11-15 against
mainat c21e481. I read the workflows of the 63 non-archived QuantEcon lecture repositories (every translation included, pluscontinuous_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.ymlfiles13 repositories have one. They are 9 distinct files using 3 tools, and only 7 still run.
QuantEcon/action-link-checker(@v1,@v1.2.0)lycheeverse/lychee-action@v2withpeter-evans/create-issue-from-filegh-pagesfor the canary; weeklylinkcheckbuilderHow 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,503without 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.ioanddata.oecd.org(in 2 each) recur. lecture-python.myst also skips its generatedgenindex,searchandprf-prfpages, 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 andignore-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/*.ipynband/_pdf, the download links. Moving them to action-link-checker would drop that.2. Who runs a Colab check
Four repositories run one:
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_cacheincluded, and builds withexecute_notebooks: cache. So only the lectures changed since the last cache build execute in Colab. The rest reuse outputs computed in the conda environment:They also execute the MyST sources, not the
sphinx-tojupyternotebooks 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:
environment.yml, and-Wmade the resulting Sphinx warnings fatal. [collab] Sync build-tool pins with environment.yml to fix weekly execution check lecture-python.myst#916 records that "no notebook actually fails to execute", and Sync Colab workflow deps with environment.yml lecture-python.myst#869 says the same before it._buildthe cache had restored.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<1in its check, because Colab's plotly can't use the kaleido thatback_prop.md's!pip install kaleidocell 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:latestin 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:latest's digest in a first job, and run onruntime@sha256:…environment.yml, as lecture-jax already doesA 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:
build-jupyter-cache's failure-issue stepscripts/create-ci-failure-issue.sh, for its own scheduled workflowsaction-link-checkerbroken-linkslabelpeter-evans/create-issue-from-fileAbout 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 wayscripts/preview-comment.cjsis 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)
QuantEcon/action-link-checkeris already the shared link checkerissue-number, so that one issue is refreshed. The old reports are closed after thatQuantEcon/action-link-checkerv1for now, not moved into this repositoryaction.ymlto this repository's rules, and moving its four consumers fromv1to@v0collab.ymlandlinkcheck.ymlstay standalone workflows"build-jupyter-cachefiles an issue todaylinkcheck.ymlgh-pagesbranch deletedgh-pagesbranch a year old, and accepts no 200PLAN's record of this outcome will close this issue.
Claude Code (on behalf of mmcky)
docs(plan): state the #194 outcome as it stands today
docs(plan): record #194's outcome: link checks stay per repository, #185
Refresh one Link Checker Report instead of opening a new one each run (…
Refresh one Link Checker Report instead of opening a new one each run (…
mmcky commentedon Nov 22, 2026
Outcome of the lecture-python.myst and lecture-dp row of the 2026-11-16 decision above:
a58a061) and Refresh one Link Checker Report instead of opening a new one each run lecture-python.myst#1143 (squashed as13a05a1) merged on 2026-11-22 UTC (2026-11-23 AEDT). Eachlinkcheck.ymlnow finds the newest open "Link Checker Report" and updates it in place, so each repository keeps one report: Link Checker Report lecture-dp#72 and Link Checker Report lecture-python.myst#1130. With none open, it files a new one as before.QuantEcon/action-link-checker: Broken Links Found in Documentation lecture-python-intro#810 and Broken Links Found in Documentation lecture-python-advanced.myst#369.QuantEcon/action-link-checker. The move waits until action-link-checker checks root-relative links such as/_notebooks/*.ipynb, which lychee's--root-dircovers in these two repositories today, and offers central configuration with fewer false positives.Claude Code (on behalf of mmcky)