Skip to content

revert(ci): restore two Vitest workers on hosted runners - #10402

Closed
morluto wants to merge 1 commit into
mainfrom
revert/ci-vitest-workers
Closed

morluto wants to merge 1 commit into
mainfrom
revert/ci-vitest-workers

Conversation

@morluto

@morluto morluto commented Nov 13, 2026 •

Copy link
Copy Markdown
Owner

Summary

Reverts #10399. It merged before its test shards ran (admin bypass on the merge ruleset let auto-merge complete immediately). Its first shard then failed.

Problem and expected behavior

Run 43485746121, shard 6/8, at four workers (executed, observed):

  • tests/boundary/javascript/semanticFingerprintAccumulation.test.ts — "retains an admitted source's wide fingerprint list through direct projection" took 39.6s; "…through transferred projection" took 46.1s. The test timeout is 30s.
  • Baseline at two workers (run 43460768388): 22.2s and 22.7s.
  • Fail-fast cancelled the other seven shards, so this is the only four-worker shard measurement.

Correction (after this PR's own CI): the same two cases also timed out here at two workers (35.3 s and 35.6 s, shard 3/8), so they are timing-fragile on slow runners regardless of worker count; #10413 gives them a capacity deadline. Four workers still made them slower (39.6 s and 46.1 s), and a second contention signal appeared: in #10405's run at four workers, Source tests failed when src/domain/desktop/appTaskDraftModel.test.ts timed out at 30 s (16.8 s at two workers in run 43460768388).

The evidence for reverting is therefore weaker than first stated: four workers adds CPU contention for CPU-bound tests, but it is not the sole cause of the shard 6/8 failure, and its effect on shard wall time is still unmeasured because fail-fast cancelled the other seven shards.

Change and scope

Exact revert of 3403338: MAX_TEST_WORKERS returns to min(2, availableParallelism()) everywhere, and the two documentation sentences are restored.

Contribution scope: not applicable.

Contract and boundary impact

  • Semantic owner and earliest changed stage: vitest.config.ts worker budget.

  • Contribution scope fit and linked maintainer decision: not applicable.

  • CLI and MCP/tool-catalog contract: none.

  • Provider, bridge, target-format, or platform compatibility: none.

  • Evidence, artifact, provenance, or reconstruction contract: none.

  • Target selection, authority, upstream behavior, and cleanup details (if applicable): not applicable.

  • Generated metadata, package, or installation impact: none.

  • Read existing files or captured data.

  • Launch or attach to a process.

  • Inject instrumentation or run scripts/code.

  • Change process memory, registers, files, or configuration.

  • Contact network services.

  • Recover protected code or work around protections.

  • Documentation or usability only; no target interaction.

  • Not sure yet; investigation or maintainer guidance needed.

Evidence and regression coverage

  • Tests added or updated: none.
  • Base reproduction or other evidence: shard 6/8 log of run 43485746121, quoted above.
  • User-visible CLI/MCP output (if applicable): not applicable.
  • Remaining proof gaps: whether a lower cap (three workers) or a per-project cap would keep the gain without these timeouts is unmeasured.

Validation performed

  • git revert 3403338ea0 — clean revert; restores the prior files exactly.

Compatibility, safety, and release

  • Breaking changes or migration steps: none.
  • Real Hopper/Ghidra, browser, or OS coverage: not applicable.
  • Package or release metadata impact: none.
  • Security, privacy, process, or containment review: none.

Author readiness

Human owner:

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

Before merge

  • This PR addresses a concrete problem or an agreed enhancement.
  • Material scope and authority questions are resolved, and any required maintainer scope decision covers the final diff.
  • The PR has one focused outcome and the title follows type(scope): outcome.
  • Related issue is linked, or the reason for not linking one is stated above.
  • Tests cover changed observable behavior and meaningful failure paths.
  • Owning docs, contracts, and generated metadata are updated where needed.
  • User-visible CLI/MCP changes include representative output.
  • I checked the final diff for secrets, unrelated cleanup, and unsupported claims.

This reverts commit 3403338 (#10399).

At four workers, two wide-capacity regressions in
tests/boundary/javascript/semanticFingerprintAccumulation.test.ts took
39.6s and 46.1s against the 30s test timeout (about 22s each at two
workers), failing shard 6/8 of run 43485746121.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-13T19:08:47.212289Z 888f85d PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@greptile-apps

greptile-apps Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge.

Summary

Restores MAX_TEST_WORKERS to Math.min(2, availableParallelism()) for local runs and CI.

  • Hosted and local Vitest runs now share a two-worker limit.

Reviews (1) · Last reviewed commit: "revert(ci): restore two Vitest workers o..." · Reviewed by Greptile

@morluto

morluto commented Nov 13, 2026

Copy link
Copy Markdown
Owner Author

Not needed: main keeps four Vitest workers with project-owned deadlines (5bad48e, 46728ca), and main's CI passes (run 43514804100).

@morluto morluto closed this Nov 13, 2026
@morluto morluto added the area: build Build, CI, packaging, and publishing label Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: build Build, CI, packaging, and publishing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant