Skip to content

Fix benchmark comparison and reporting - #11680

Merged
Bill Schnurr (bschnurr) merged 2 commits into
mainfrom
fix-benchmark-reporting
Aug 26, 2026
Merged

Bill Schnurr (bschnurr) merged 2 commits into
mainfrom
fix-benchmark-reporting

Conversation

@bschnurr

Copy link
Copy Markdown
Member

Summary

  • stop treating the informational uncounted-validation-pass count as a regression-gating environment field
  • move trusted benchmark rendering and PR commenting into a separate job in the dispatched workflow
  • remove the workflow_run consumer, which GitHub does not trigger after the GITHUB_TOKEN workflow dispatch chain
  • preserve the security boundary: benchmark code runs read-only, while the comment job runs separately and validates head, base, and merge provenance

Failures addressed

Run https://github.com/microsoft/pyright/actions/runs/32891326101 measured improvements for all nine packages but failed only because uncounted_validation_runs_per_checker differed (1 != 0). Replaying the artifact with this change produces No performance regressions detected.

The same run uploaded a valid artifact, but GitHub created no workflow_run for .github/workflows/typecheck_benchmark_comment.yml, so PR #11420 received no chart comment.

Validation

  • python -m unittest test_compare_benchmarks test_typecheck_benchmark (45 tests)
  • replayed run 32891326101 artifact: all nine rows pass
  • Prettier and editor diagnostics clean

@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) added the review-auto:changes-requested Automated review: posted blocking findings to address. label Aug 25, 2026
@bschnurr

Copy link
Copy Markdown
Member Author

Follow-up on verification: the sole inline issue was addressed in 6d88d1848 and its thread is resolved. I ran test_compare_benchmarks and test_typecheck_benchmark with the workspace .venv (45 tests passing), plus the frozen offline lockfile check. CodeQL, Style, and Typecheck are green on the updated head; the platform Build/Test jobs are still running.

@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 review-auto:approved Automated review: no blocking findings (approval posted). and removed review-auto:changes-requested Automated review: posted blocking findings to address. labels Aug 26, 2026
@bschnurr
Bill Schnurr (bschnurr) merged commit bf6ec03 into main Aug 26, 2026
11 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.

2 participants