Cache and automatically run type checker benchmarks - #11684
Open
Bill Schnurr (bschnurr) wants to merge 8 commits into
Open
Bill Schnurr (bschnurr) wants to merge 8 commits into
Bill Schnurr (bschnurr) wants to merge 8 commits into
Conversation
Resolve PR revisions from trusted GitHub metadata before executing benchmark code. Retain and update checked-in baseline results with commit provenance, and add a notebook for benchmark history visualization and dashboard export.
Run candidate benchmarks in an unprivileged pull_request workflow and move trusted base caching, reporting, and baseline persistence to workflow_run. Authorize measured runs through maintainer-triggered reruns and update tests and documentation.
Bill Schnurr (bschnurr)
enabled auto-merge (squash)
August 28, 2026 20:20
Export PNG previews alongside SVG dashboard charts and improve the single-baseline layout until additional hosted runs accumulate.
Run the repository's pinned Prettier formatter after notebook dashboard generation and commit the formatted HTML output.
Collaborator
|
🔒 Automated review in progress — Rich Chiodo (@rchiodo) is auto-reviewing this PR. |
Collaborator
|
Result: Verification detailsVerification: Isolated verification observed failures that were not classified as caused by this PR: Module-style benchmark test invocation, Benchmark unittest suite. Summary: Five new comparator/profile tests passed. The 52-test benchmark suite ran 50 tests successfully, but two workflow tests errored because the container lacks Node.js. Verification is therefore partial; no PR-caused assertion failure was observed. Test runs: 1 passed, 2 failed
❌
|
Benchmark relevant main commits into the exact-SHA cache and retain a downloadable artifact. Stop committing generated baselines to pull request branches and verify the synthetic merge commit uses the validated base. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Run the hosted benchmark automatically for pull requests that modify analyzer sources while retaining the maintainer command for other changes. Verify the automatic condition again in the trusted report workflow. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Use the authorized workflow rerun attempt as the manual benchmark signal instead of a shared pull request label. This prevents an older report cleanup from revoking a newer overlapping request. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.
Summary
packages/pyright-internal/src/analyzer/./benchmarkas a maintainer-only rerun trigger for other pull requests.maincommit used as its first parent.mainand retain each raw result as a 90-day artifact.What is compared
The candidate is GitHub's synthetic merge commit, which combines the PR's current head with its current
mainbase. The baseline is that same exactmainbase commit:The trusted report workflow verifies that
Bis the merge commit's first parent. If the PR head or base changes before reporting validates the revisions, the report stops and a new run is required.Cache and security
mainbenchmarkGITHUB_SHA, save an exact-SHA/profile cache entry, and upload the result.Benchmark history
The checked-in bootstrap results under
build/benchmark/baselines/include source commit metadata.build/benchmark/benchmark_history.ipynbcan graph those results and export the static dashboard underdocs/benchmark-results/. Automatic main results are retained through the Actions cache and 90-day artifacts rather than source commits.Validation
python -m unittest discover -s build/benchmark -p "test_*.py"(52 tests)