Repository navigation
Improve contributor setup and avoid macOS CI memory thrashing - #11975
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
🔒 Automated review in progress — Rich Chiodo (@rchiodo) is auto-reviewing this PR. |
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
Result: Verification detailsVerification: Automated verification is best effort. The PR author remains responsible for testing. Summary: Offline dependency preparation succeeded in the Linux container. All 198 targeted Jest tests and two existing YAML-reading workflow guards passed, as did targeted ESLint and formatting checks. Additional checks confirmed that Math is injected, default TypeScript checking remains enabled, and the real pnpm test script forwards the single-worker override. Initial Git discovery failed because the container lacks Git metadata; no tests failed. Hosted macOS memory improvements remain unverified, and current HEAD contains no diagnostic-reporting scripts matching the PR description. Test runs: 5 passed, 1 failed, 1 not run
|
Rich Chiodo (rchiodo)
left a comment
There was a problem hiding this comment.
Approved via Review Center.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This comment has been minimized.
This comment has been minimized.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This comment has been minimized.
This comment has been minimized.
|
Result: Verification detailsVerification: Automated verification is best effort. The PR author remains responsible for testing. Summary: Offline dependency installation succeeded, but the targeted Jest run timed out after 240 seconds and destroyed the sandbox. Workflow reporter fixtures passed for successful results, failures, escaping, missing JSON, and bounded output; the combined harness then failed on an incorrect container-memory assumption. Configuration and Bash-syntax checks passed, while two existing workflow guards subsequently failed because the replacement sandbox lacked the declared YAML dependency. No PR-caused failure was established, but Jest results and hosted macOS performance remain unverified. **Reviewer dependency follow-up (nonblocking):** Suggest a separate PR adding `jest ^30.2.0`, `ts-jest ^29.4.7`, `typescript ~6.0.3`, `yaml ^2.9.0` to the official reviewer dependency declarations, using `package.json`, `package.json; packages/pyright-internal/package.json` as the dependency/version evidence. Do not automatically create that PR. This is reviewer environment maintenance, not a required change to the reviewed PR. Test runs: 2 passed, 3 failed, 2 not run
❌
|
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅ |
|
Reviewed commit: Result: 🔴 Verification detailsVerification: Automated verification is best effort. The PR author remains responsible for testing. Summary: [unavailable] Container verification could not start and local execution was not authorized for this PR HEAD: Could not cache pnpm@11.21.0: stderr: NVM blocked package-manager execution because a delegated command could not be trusted. Command: npm File: C:\Users\rchiodo\AppData\Local\Author Software\nvm\installs\v24.19.0\node_modules\npm\bin\npm-cli.js Reason: delegated script trust key unavailable Action: If you trust this change, run `nvm firewall trust module npm`. `nvm reshim` alone will not keep this module trusted after the next self-update. If this change was unexpected, contact your administrator and review NVM event logs. Event code: NVM4306 Test runs: none recorded. |
Summary
Mathinto the Jest sandbox to avoid cross-context fingerprinting overhead without disabling TypeScript checking.This separates the documentation and CI fixes from #11970. No typeshed or dependency changes are included.
Performance evidence
The original single-worker trial used 3 M1 virtual CPUs and 7 GiB RAM. Both historical runs passed 3,659 tests across 99 suites with identical test code/dependencies:
The eight-minute result was not reproduced on the final PR revision. More recent runs passed 3,704 tests across 99 suites:
59d826806, 1 worker, 50% heap capaf18d4408, 1 worker, no percentage heap capThese are separate hosted runs, not controlled or repeated measurements. They do not establish a guaranteed eight-minute runtime or prove that the heap cap caused the slowdown. Large post-suite delays remain; their cause is not established.
The current workflow does not publish runner-resource or
vm_statswap-counter annotations. Its/usr/bin/timeoutput is retained in the uploaded log; a reported0 swapsthere is not equivalent to measured zero macOS swap-in/out traffic.Validation
af18d4408: Typecheck, Style, macOS/Linux/Windows tests, Build, and Required.git diff --check, and two existing executable YAML-reading workflow guards passed.Math, no heap override, and retained log artifacts.