-
Notifications
You must be signed in to change notification settings - Fork 745
feat: add lean-bisect script for bisecting toolchain regressions #11727
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bd2cb29 to
2d3f57b
Compare
Collaborator
Author
Sample output |
2d3f57b to
7dca6b6
Compare
Collaborator
|
Mathlib CI status (docs):
|
Collaborator
|
Reference manual CI status:
|
7dca6b6 to
5910b21
Compare
This script downloads pre-built CI artifacts for Lean commits from GitHub Actions. It supports: - Downloading artifacts for current HEAD or specified commit (--sha) - Caching in ~/.cache/lean-bisect/artifacts/ - Platform detection (Linux/macOS, x86_64/aarch64) This is extracted from lean-bisect to allow standalone use. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
68db0a3 to
2c939a4
Compare
This script downloads pre-built CI artifacts for Lean commits from GitHub Actions. It supports: - Downloading artifacts for current HEAD or specified commit (--sha) - Caching in ~/.cache/lean-bisect/artifacts/ - Platform detection (Linux/macOS, x86_64/aarch64) This is extracted from lean-bisect to allow standalone use. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This adds a Python script that helps find which commit introduced a behavior change in Lean. It supports multiple modes: - Auto-discovery: Just provide a file and it searches backwards - Nightly bisection: Binary search through nightly builds - Version ranges: Convert v4.X.Y tags to nightly ranges - Commit bisection: Search individual commits with CI artifact caching Key features: - Downloads pre-built CI artifacts when available (~30s vs 2-5min build) - Caches artifacts in ~/.cache/lean-bisect/artifacts/ - Skips commits with failed CI builds automatically - Supports short or full commit SHAs 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
5910b21 to
a609c9a
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
changelog-other
toolchain-available
A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds a Python script that helps find which commit introduced a behavior change in Lean. It supports multiple bisection modes and automatically downloads CI artifacts when available.
Usage
🤖 Prepared with Claude Code