Commit 2026-03-26 18:37 8af86740
View on Github āfeat(scripts): add nightly-testing-checklist tool (#37196)
This PR adds lake exe nightly-testing-checklist, a tool for monitoring and repairing the nightly-testing branches at Batteries and Mathlib.
It checks toolchain freshness, upstream dependency versions (e.g. Batteries rev in Mathlib's lake-manifest.json), and CI status ā displaying failing jobs and Lean error messages inline. It can automatically fix "has already been declared" errors by using Lean's parser to identify and remove duplicate declarations, and bumps stale toolchains and dependencies.
Flags:
--watch: wait for in-progress CI runs to complete (wakes on first job failure)--fix: commit and push fixes (default is dry-run: generate.patchfiles)--no-clone: report only, don't clone repos to/tmp--no-build: clone and update deps, but don't build or fix errors Thefind_command_range.leanhelper usesLean.Parser.parseHeader+Lean.Parser.parseCommandto walk top-level commands and find byte ranges, including preceding attributes and doc comments. š¤ Prepared with Claude Code