Skip to content

Benchmark pull request merge commits - #11677

Merged
Bill Schnurr (bschnurr) merged 1 commit into
mainfrom
fix-benchmark-pnpm-version
Aug 25, 2026
Merged

Bill Schnurr (bschnurr) merged 1 commit into
mainfrom
fix-benchmark-pnpm-version

Conversation

@bschnurr

Copy link
Copy Markdown
Member

Summary

  • benchmark GitHub's synthetic PR merge commit so every mergeable open PR inherits current main pnpm metadata
  • pin pnpm 10.12.2 rather than relying on the PR head's package metadata
  • bind head, base, and merge SHAs into artifact provenance and validate all three before commenting
  • quote the dynamic run name so the PR number is displayed

Failure 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 main build metadata ([email protected], lockfile v9) while preserving the PR changes.

Validation

  • python -m unittest test_compare_benchmarks (26 tests)
  • Prettier on all changed workflows and benchmark README
  • editor diagnostics clean
  • verified PR Optimize type equality fast paths #11420 merge-ref parents and pnpm metadata

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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, and merge_sha, and run the benchmark workflow on merge_sha instead of the PR head repository/ref.
  • Pin pnpm via PNPM_VERSION in 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.

@rchiodo

Copy link
Copy Markdown
Collaborator

🔒 Automated review in progress — Rich Chiodo (@rchiodo) is auto-reviewing this PR.

@rchiodo

Copy link
Copy Markdown
Collaborator

Verification: The relevant tests could not be fully run in the isolated environment; this review is not fully verified.

@rchiodo Rich Chiodo (rchiodo) left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved via Review Center.

@rchiodo Rich Chiodo (rchiodo) added the review-auto:approved Automated review: no blocking findings (approval posted). label Aug 25, 2026
@bschnurr
Bill Schnurr (bschnurr) merged commit 3a1e14d into main Aug 25, 2026
12 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review-auto:approved Automated review: no blocking findings (approval posted).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants