ci: add benchmark regression check for PRs#119
Merged
aldoborrero merged 2 commits intomainfrom Apr 14, 2026
Merged
Conversation
0aa32c8 to
1eae325
Compare
1eae325 to
2eba649
Compare
Run bench-incremental on both the base branch and the PR head within the same CI runner so wall-clock comparisons are fair. A Python comparison script flags two classes of regression: 1. Derivation-count increase (deterministic, any delta is a failure). 2. Wall-clock time increase above a configurable threshold (default 20%). Results are posted as a PR comment and the check hard-fails on regression. Also wires ruff-check and ruff-format into treefmt so Python files are linted as part of `nix fmt`.
Add --stderr-tail flag (default 500) to control how many bytes of stderr are kept in error messages. CI passes 4000 so local store build failures produce actionable diagnostics instead of truncated cascading-dependency messages.
2eba649 to
2e3ef89
Compare
Benchmark Regression Check
Baseline: |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Run bench-incremental on both the base branch and the PR head within the same CI runner so wall-clock comparisons are fair. A Python comparison script flags two classes of regression:
Results are posted as a PR comment and the check hard-fails on regression.
Also wires ruff-check and ruff-format into treefmt so Python files are linted as part of
nix fmt.