Skip to content

test(vscode): widen multiroot E2E diagnostic deadline for slow runners - #32

Merged
fi3ework merged 1 commit into
mainfrom
test/multiroot-e2e-deadline
Aug 25, 2026
Merged

test(vscode): widen multiroot E2E diagnostic deadline for slow runners#32
fi3ework merged 1 commit into
mainfrom
test/multiroot-e2e-deadline

Conversation

@fi3ework

Copy link
Copy Markdown
Member

Why

CI run 32718392387 (attempt 1, E2E (windows-latest)) failed in the Multi-root dynamic ownership suite: hands a document parent → child → parent without reopening it asserted 0 !== 1 after waitForSingleRslintDiagnostic's 30s deadline expired.

Diagnosis: an ownership handoff spawns a fresh lint worker for the new owning folder (resolve core → init → lint → publish). On GitHub's windows runners that cold start exceeded 30s once; the old owner had already cleared the document's diagnostics, so the wait returned 0. Same code passed windows E2E 6× on the PR branch and on rerun (attempt 2) — a timing flake, not a regression.

What

  • waitForSingleRslintDiagnostic deadline: 30s → 60s
  • suite timeout: 60s → 240s (the dynamic-ownership test waits for up to three publications)

Assertion semantics are unchanged. Upstream (web-infra-dev/rslint origin/main) still uses 30s/60s; the deviations are documented inline per the ported-suite rule in packages/vscode/AGENTS.md.

Verified

  • pnpm lint && pnpm test:unit green
  • VSCODE_CLI=1 RSTACK_LINT_E2E_SUITES="Multi-root" pnpm test:e2e lint — both Multi-root suites pass locally

The 'parent → child → parent' ownership-handoff test waits for the new
owning folder's lint worker to cold-start and publish its first
diagnostic. On GitHub's windows runners that cold start has exceeded
upstream's 30s deadline (CI run 32718392387, attempt 1), failing the
suite with 0 diagnostics after the handoff.

Widen waitForSingleRslintDiagnostic's deadline to 60s and the suite
timeout to 240s. Assertion semantics are unchanged; the deviations from
the upstream-ported suite are documented inline per AGENTS.md.
@fi3ework
fi3ework enabled auto-merge (squash) August 25, 2026 03:18
@fi3ework
fi3ework merged commit b6b35e5 into main Aug 25, 2026
3 checks passed
@fi3ework
fi3ework deleted the test/multiroot-e2e-deadline branch August 25, 2026 03:23
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