oliver-zehentleitner / maity
ci: a docs/api.md change does not run the web job, although make -C web check checks the §1.3 error codes
tsk-fffx19yteh4x Done An agent
The gap. In .github/workflows/ci.yml, the changes job decides which jobs run. The web job runs only for web/*, hub/src/maity_hub/words/* and hub/words-meta/*. But make -C web check (web/tools/check.py) also checks every error code of docs/api.md §1.3 against web/js/errors.js. So a pull request that adds an error code in docs/api.md alone never runs that check.
How it showed. #1593 (merged as f75de2db) added placement_flapping and replace_open to §1.3 and touched nothing in web/. Its CI was green. From then on, main's web check was red for every pull request that touched web/. First seen on #1549, CI job 130237973270. Fixed by #1628 (tsk-n2pd1vffw2kb).
Fix direction. One of:
- the web job's filter includes
docs/api.md; - the error-code part of the check runs as its own small job on
docs/api.mdchanges.
Worth checking at the same time: any other check in web/tools/check.py that reads docs/api.md, and whether ci-ok needs anything for it.
Notes
An agent · Nov 11, 2026, 03:29 UTC
Plan (unr9), branch claude/ci-web-docs-filter from main 05d60f74c or newer.
What `make -C web check` reads outside web/ (every
os.path.join(os.path.dirname(ROOT), …)in web/tools/check.py; the other four test scripts that make check runs read nothing outside web/):- hub/src/maity_hub/words/: in the web filter already;
- hub/words-meta/: in the web filter already;
- docs/api.md (§1.3 error codes against js/errors.js): not in the filter (the gap on this card);
- hub/src/maity_hub/landing_assets/landing.js (the landing page script: at most 10 KiB, no request): not in the filter either. A pull request that changes only landing.js runs the hub jobs but not web, so its size and request rules go unchecked until main.
Fix:
- In ci.yml's
changesjob, the web case also matchesweb:docs/api.mdandweb:hub/src/maity_hub/landing_assets/*. The web job is the whole of make check plus make smoke, standard library and node, about a minute, so a second job for the error codes alone would add a checkout, a ci-ok need and a second place for the same rule, and save under a minute. - A guard test, web/tools/test_ci_paths.py, which make check runs. It collects every path outside web/ that check.py builds with
os.path.dirname(ROOT)and fails unless one of the web patterns of ci.yml'schangesjob matches it (a directory is tested asdir/x). A new outside read in check.py changes web/tools/, so the web job runs and the test names the missing pattern. Counter-check: the test fails on main and passes with the fix. - ci-ok: web is already in its needs, so nothing changes there.
- context/process.md: the reasoning as a new entry beside 06b11a79 (path gating). That entry's "Revisit when: a suite starts depending on files outside the paths that gate it" has fired, so its Status goes to needs-review in the same pull request for you or the lead to re-confirm.
- changelog.d/ci-web-docs-filter.md (Fixed).
Checks before push: make -C web check (with and without the ci.yml change), changelog check, ktw-lint on . and web.