lean4-htt/script
Kim Morrison d7e57b66d5
feat: support revised nightly releases (nightly-YYYY-MM-DD-revK) (#12461)
This PR adds support for manually re-releasing nightlies when a build
issue or critical fix requires it. When a `workflow_dispatch` triggers
the nightly release job and a `nightly-YYYY-MM-DD` tag already exists,
the CI now creates `nightly-YYYY-MM-DD-rev1` (then `-rev2`, etc.)
instead of silently skipping.

### Lake `ToolchainVer`

- Extend `ToolchainVer.nightly` with an optional `rev : Option Nat`
field
- Parse `-revK` suffixes from nightly tags in `ofString`
- Ordering: `nightly-YYYY-MM-DD` < `nightly-YYYY-MM-DD-rev1` < `-rev2` <
`nightly-YYYY-MM-DD+1`
- Round-trip: `toString (ofString s) == s` for both variants

### CI workflow

- "Set Nightly" step probes existing tags on `workflow_dispatch` to find
next available `-revK`
- Scheduled nightlies retain existing behavior (skip if commit already
tagged)
- Changelog grep updated from `nightly-[-0-9]*` to `nightly-[^ ,)]*` to
match `-revK` suffixes

### `lean-bisect`

- Updated `NIGHTLY_PATTERN` regex, sort key, error messages, and help
text

### Companion PRs

- https://github.com/leanprover-community/mathlib4/pull/35220: update
`nightly_bump_and_merge.yml` tag grep and `nightly_detect_failure.yml`
warning message
-
https://github.com/leanprover-community/leanprover-community.github.io/pull/787:
update `tags_and_branches.md` documentation

🤖 Prepared with Claude Code

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 00:41:04 +00:00
..
lib chore: fix spelling mistakes in non-Lean files (#5430) 2024-09-23 21:11:20 +00:00
apply.lean fix: deallocation for closures in non default configurations (#11217) 2025-11-17 16:27:20 +00:00
benchReelabRss.lean test: re-enable re-elab benchmarks and add watchdog re-elab benchmark (#11284) 2025-11-20 22:53:08 +00:00
benchReelabWatchdogRss.lean test: re-enable re-elab benchmarks and add watchdog re-elab benchmark (#11284) 2025-11-20 22:53:08 +00:00
build_artifact.py feat: add build_artifact.py for downloading CI artifacts (#11735) 2025-12-19 04:09:23 +00:00
collideProfiles.lean feat: trace.profiler export to Firefox Profiler (#3801) 2024-04-15 12:13:14 +00:00
diff_changelogs.py chore(script): fix nightlies... finally? 2018-03-26 16:17:42 +02:00
fmt chore: reformat all cmake files (#12218) 2026-01-28 18:23:08 +00:00
gen_constants_cpp.py chore: fix more typos in comments 2023-10-08 14:37:34 -07:00
gen_tokens_cpp.py chore: fix more typos in comments 2023-10-08 14:37:34 -07:00
issues_summary.sh feat: script to summarize issues (#3952) 2024-04-24 06:11:07 +00:00
lakefile.toml feat: add lake shake command (#11921) 2026-01-19 11:11:13 +00:00
lean-bisect feat: support revised nightly releases (nightly-YYYY-MM-DD-revK) (#12461) 2026-02-13 00:41:04 +00:00
lean-bisect-test.lean feat: add lean-bisect script for bisecting toolchain regressions (#11727) 2025-12-21 20:04:47 +00:00
lean-toolchain feat: scripts/Modulize.lean (#10460) 2025-09-24 11:40:17 +00:00
mathlib-bench feat: move lean-pr-testing-NNNN branches to a fork (#8933) 2025-06-24 03:30:43 +00:00
merge_remote.py feat: updates to release process for v4.23.0 (#10383) 2025-09-14 23:52:19 +00:00
Modulize.lean chore: modulize: work around unknown initial command (#12080) 2026-01-21 20:25:13 +00:00
patch.sh fix(script/patch): apply changes 2019-08-09 08:52:49 -07:00
prepare-llvm-linux.sh chore: CI: fix Linux release jobs (#11424) 2025-11-28 16:27:32 +00:00
prepare-llvm-macos.sh fix: set LLVM sysroot consistently (#6574) 2025-01-08 12:56:27 +00:00
prepare-llvm-mingw.sh chore: remove old LEAN_AUTO_THREAD_FINALIZATION workaround (#8885) 2025-06-20 08:52:17 +00:00
push_repo_release_tag.py feat: further release automation (#9092) 2025-06-30 05:44:10 +00:00
rebase-stage0.sh chore: add ./script/rebase-stage0.sh (#3984) 2024-05-02 12:26:25 +00:00
reformat.lean chore: fix script/reformat.lean 2022-11-28 15:47:17 +01:00
release_checklist.py doc: document release notes process and add guard check (#12158) 2026-01-26 07:16:01 +00:00
release_notes.py chore: update script/release_notes.py for changelog-tactics (#10436) 2025-09-18 07:22:53 +00:00
release_repos.yml chore: add plausible as verso dependency in release_repos.yml (#12155) 2026-01-26 06:55:45 +00:00
release_steps.py fix: remove obsolete docs directory handling for cslib in release_steps.py (#11649) 2025-12-14 05:15:38 +00:00