Repository navigation
Benchmark pull request merge commits - #11677
Conversation
There was a problem hiding this comment.
Pull request overview
Updates the hosted PR type-checker benchmark pipeline to run against GitHub’s synthetic PR merge commit (so mergeable PR benchmarks inherit current main pnpm metadata), and strengthens artifact provenance so the trusted commenter/renderer path validates head/base/merge SHAs consistently.
Changes:
- Dispatch PR benchmarks with
head_sha,base_sha, andmerge_sha, and run the benchmark workflow onmerge_shainstead of the PR head repository/ref. - Pin pnpm via
PNPM_VERSIONin the PR benchmark workflow and ensure the dynamic workflow run name is quoted so the PR number renders correctly. - Extend artifact naming and the trusted comment workflow’s parsing/validation to include the merge SHA.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| build/benchmark/test_compare_benchmarks.py | Extends benchmark workflow contract tests to assert quoted run-name, pinned pnpm, merge SHA dispatch, and merge-provenanced artifacts/validation. |
| build/benchmark/README.md | Updates documentation to describe benchmarking the synthetic merge commit and validating head/base/merge provenance. |
| .github/workflows/typecheck_benchmark_trigger.yml | Adds merge commit requirement and dispatches PR benchmark with merge SHA (and no longer passes head repository). |
| .github/workflows/typecheck_benchmark_pr.yml | Checks out the synthetic merge SHA, pins pnpm version explicitly, quotes run-name, and includes merge SHA in artifact provenance. |
| .github/workflows/typecheck_benchmark_comment.yml | Parses merge SHA from dispatched artifact names and validates PR merge commit SHA before commenting. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
🔒 Automated review in progress — Rich Chiodo (@rchiodo) is auto-reviewing this PR. |
|
Verification: The relevant tests could not be fully run in the isolated environment; this review is not fully verified. |
Rich Chiodo (rchiodo)
left a comment
There was a problem hiding this comment.
Approved via Review Center.
Summary
mainpnpm metadataFailure addressed
The dispatched benchmark for PR #11420 checked out its pre-pnpm raw head and failed in
pnpm/action-setup:https://github.com/microsoft/pyright/actions/runs/32779866239/job/97599332118
Its synthetic merge commit contains current
mainbuild metadata ([email protected], lockfile v9) while preserving the PR changes.Validation
python -m unittest test_compare_benchmarks(26 tests)