Skip to content

test(server): widen logger.separation file-content gate 5s → 30s for cloud shard contention - #662

Merged
danshapiro merged 1 commit into
mainfrom
fix/logger-separation-timeout
Aug 18, 2026
Merged

test(server): widen logger.separation file-content gate 5s → 30s for cloud shard contention#662
danshapiro merged 1 commit into
mainfrom
fix/logger-separation-timeout

Conversation

@danshapiro

Copy link
Copy Markdown
Owner

What

The logger.separation integration test bounded the wait for the probe's debug-log line to 5s on non-Windows. Every assertion in the file is about which log filename a launch mode chooses — none are about startup speed. Under full-suite shard contention on a shared Cloud Run vCPU, a cold tsx start exceeded 5s and failed the run (execution freshell-vitest-l68jz, 2026-08-18), while the same file passed alone in cloud (15s, 4/4 shards) and locally (3s).

Fix

Unify the file-content gate at the existing Windows value (30s) with a comment recording why. Passing runs are unaffected — the wait loop returns the moment the pattern appears; the constant only gates failures.

Test plan

  • File runs green locally (5/5, 16.8s) via npm run test:vitest -- run test/integration/server/logger.separation.test.ts --config config/vitest/vitest.server.config.ts.
  • Final verification: full npm run test:cloud at the post-merge HEAD (the whole point of this repair chain).

… cloud shard contention

The gate only bounds how long to wait for the probe's debug-log line to
APPEAR; no assertion depends on startup speed. Under full-suite shard
contention on a shared Cloud Run vCPU a cold tsx start exceeded the old
5s windows (non-win32) default — observed failing the 2026-08-18
freshell-vitest-l68jz execution while the same shard passed when the file
ran alone and locally. Unify with the existing 30s win32 value.
@danshapiro
danshapiro merged commit 854f601 into main Aug 18, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant