Repository navigation
Remove unnecessary waits from host package tests - #6231
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Human comments
What was wrong
The Windows host-package job finished last in the previous full CI run. Its ACP suite spent 30 real seconds waiting for a command timeout, and the process-identity test ran three expensive Windows identity lookups sequentially even though its two refusal checks are independent.
What changed
finally.Only two test files change. No production behavior, mocks, test-only production hooks, shard counts, or worker counts change. Existing test cases remain.
How you verified
Local baseline and candidate runs through Turbo reduced the three ACP failure cases from 30.09s to 0.167s. The process-identity test was unchanged at roughly 0.13s on macOS; its benefit is Windows-specific.
Full local package suites passed: ACP 538 passed / 4 existing skips, config 101 passed / 1 existing skip. Lint/typecheck passed (five Turbo tasks), formatting and diff checks passed. Reviewed against CODE_REVIEW and deslop guidance.
Windows comparison 40113506162 passed all four jobs: two baseline and two candidate replicas on four-vCPU runners, with the same nine packages and Turbo concurrency of two. Every run passed 2,265 tests with 24 existing skips.
The whole-command range improves by approximately 11–40s across these samples; components overlap, so their gains are not additive. This measures the host-package command, not total workflow duration. Both variants started with an empty task-cache directory. The benchmark predates only the failure-cleanup refinement; that refinement passed focused tests and lint/typecheck. A simulated readiness failure also failed promptly (1.38s including Turbo) without a pending-request teardown timeout, then was restored byte-for-byte.
Independent review and re-review of the cleanup refinement found no issues. Final PR CI 40113800821 passed all 37 selected jobs, including all 14 selected Windows jobs, on
1fcb0d9950. The final Windows host-package command took 82.0s, and its formerly 30-second timeout case took 396ms. Packaging checks were not selected for these test-only changes. All PR checks are green. Benchmark harness changes live on a separate branch and are excluded from this PR.