Commit 2026-11-11 23:02 7b1df80a

View on Github →

ci: upload the declarations dump as one directory, with api.jsonl in place of decls.txt (#45710) mathlib-ci#98 adds an API dump, api.jsonl, to dumpReasonableDecls.lean and lets the decls-diff action read directories instead of files. This PR switches mathlib4's CI over to both:

  • build_template.yml: run the declaration dump with the new --out-dir argument, which writes api.jsonl and imports.json into $RUNNER_TEMP/import-graph. (The existing import_graph.dot and pr_number.txt files also go into that directory). The directory is checked for symlinks and other non-regular files, and for missing outputs, and then uploaded as the import-graph artifact before getting removed. The artifact contains the same files as before, except that api.jsonl replaces decls.txt.
  • decls-diff.yml: passes the two downloaded artifacts to the action as reference-dir / new-dir instead of four file paths. Master artifacts are kept for 90 days, so for a while some merge bases will only have decls.txt. The action takes their names from that file. The PR summary comment does not change: the Lean diff is computed from the same names as before. Future new fields in api.jsonl and new files in the artifact will only need a mathlib-ci change, not a change here. Prepared with Claude Code.

Estimated changes