Skip to content

Add cross-type-checker benchmark regression tracking - #11574

Merged
Bill Schnurr (bschnurr) merged 29 commits into
microsoft:mainfrom
bschnurr:typecheck-benchmark
Aug 22, 2026
Merged

Bill Schnurr (bschnurr) merged 29 commits into
microsoft:mainfrom
bschnurr:typecheck-benchmark

Conversation

@bschnurr

@bschnurr Bill Schnurr (bschnurr) commented Jul 29, 2026 •

Copy link
Copy Markdown
Member

Summary

  • add a pinned 9-package corpus for repeatable Pyright performance measurements
  • record checked-in GitHub-hosted Linux x64/Python 3.14.6 baseline results and compare PR candidates against them
  • add PR and weekly workflows, manual triggers, trusted PR comments, retained JSON results, and a multi-checker HTML report

All nine packages have successful baseline measurements. NumPy is measured over its production-source scope; SciPy was removed from the gated corpus after exceeding the 600-second hosted-runner timeout.

Validation

  • python3 -m unittest test_compare_benchmarks.py test_typecheck_benchmark.py (23 tests)
  • baseline self-comparison
  • Prettier
  • Python compilation
  • git diff --check

Bill Schnurr (bschnurr) and others added 2 commits July 29, 2026 09:40
Adapt the lolpack type checker benchmark for the local Pyright production build and add the initial package configuration.

Co-authored-by: Copilot <[email protected]>
@rchiodo

Rich Chiodo (rchiodo) commented Jul 29, 2026 •

Copy link
Copy Markdown
Collaborator

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

Comment thread build/benchmark/install_envs.json Resolved
@rchiodo Rich Chiodo (rchiodo) added the review-auto:changes-requested Automated review: posted blocking findings to address. label Jul 29, 2026
Comment thread build/benchmark/install_envs.json Resolved
Remove the pandas test-directory exclusions and invalidate the old reduced-scope pandas measurement until a hosted full-scope run establishes the replacement baseline.
Require an authorized /benchmark comment to run the PR benchmark, add local comparison against pip-installed Pyright, and document both workflows.
Set SKIP_LERNA_BOOTSTRAP for PR and weekly benchmark pnpm installs so the root postinstall does not run nested npm installs.
@bschnurr

Copy link
Copy Markdown
Member Author

/benchmark

Run hosted Pyright benchmarks with a 5 GiB V8 old-space limit and record NODE_OPTIONS as part of the comparison environment contract.
Raise the PR invocation timeout to 30 minutes and report newly successful candidates when their prior baseline was unavailable.
Make strict comparison reject failed or missing candidate checker results even when the baseline was unavailable.
@bschnurr Bill Schnurr (bschnurr) added the run-typecheck-benchmark Run the type checker performance benchmark label Aug 19, 2026
Add the final newline required by the repository Prettier check.
@bschnurr

Copy link
Copy Markdown
Member Author

/benchmark

Use preinstalled Ubuntu build tools, prefer the restored pnpm cache, and cap JavaScript dependency installation at ten minutes.
@bschnurr

Copy link
Copy Markdown
Member Author

/benchmark

@bschnurr

Copy link
Copy Markdown
Member Author

/benchmark

@bschnurr Bill Schnurr (bschnurr) added run-typecheck-benchmark Run the type checker performance benchmark and removed run-typecheck-benchmark Run the type checker performance benchmark labels Aug 20, 2026
@bschnurr Bill Schnurr (bschnurr) added run-typecheck-benchmark Run the type checker performance benchmark and removed run-typecheck-benchmark Run the type checker performance benchmark labels Aug 20, 2026
@bschnurr Bill Schnurr (bschnurr) added run-typecheck-benchmark Run the type checker performance benchmark and removed run-typecheck-benchmark Run the type checker performance benchmark labels Aug 20, 2026
@bschnurr Bill Schnurr (bschnurr) added run-typecheck-benchmark Run the type checker performance benchmark and removed run-typecheck-benchmark Run the type checker performance benchmark labels Aug 20, 2026
@bschnurr

Copy link
Copy Markdown
Member Author

/benchmark

@bschnurr
Bill Schnurr (bschnurr) merged commit 93a6550 into microsoft:main Aug 22, 2026
8 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review-auto:changes-requested Automated review: posted blocking findings to address. run-typecheck-benchmark Run the type checker performance benchmark

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants