Repository navigation
Description
Gap
The Tests workflow (.github/workflows/test.yml) and the e2e workflows only run packages/codev vitest (unit / integration / cli). The only other package exercised in CI is the dashboard, and dashboard-e2e.yml runs Playwright e2e only — not its vitest unit suite.
As of #961, packages/core was added to the unit job (it had no suite before). That leaves two unit suites with no CI coverage at all:
| Package | Suite | Runs in CI? |
|---|---|---|
packages/codev |
vitest (unit + vitest.e2e.config.ts + vitest.cli.config.ts) |
✅ test.yml, e2e.yml |
packages/core |
vitest run |
✅ test.yml (added in #961) |
packages/dashboard |
vitest unit (__tests__/*.test.ts(x)) |
❌ local only |
packages/dashboard |
Playwright e2e | ✅ dashboard-e2e.yml |
packages/vscode |
test:unit (vitest run, ~222 tests) + vscode-test |
❌ local only |
Why it matters
These suites cover real behavior — e.g. the dashboard Terminal.reconnect.test.tsx and the vscode terminal-adapter.test.ts close-loop. A regression in either passes CI today. #961 touched both of those suites; the edits only ran on the builder's machine, never in CI.
Proposed work
Add CI steps (jobs or steps in test.yml) that run:
packages/vscode→pnpm test:unit(vitest)packages/dashboard→ its vitest unit suite (separate from the Playwright e2e job)
Worth deciding while doing it:
- Whether to fold them into the existing
unitjob or give each its own job (parallelism vs. setup cost). - Whether to apply coverage thresholds (codev has one; core deliberately does not).
- Whether the forks-pool teardown-crash workaround codev uses (pipefail + tee + grep) is needed for these suites or if a plain
vitest runexit code suffices. - One pre-existing failing dashboard unit test surfaced during core: extract transport-agnostic reconnect policy; adopt in vscode + dashboard terminals + tunnel client #961 and must be fixed or quarantined before the dashboard suite can gate CI:
__tests__/scrollController.test.ts > ScrollController > onScroll handler > warns on unexpected scroll-to-top(fails on a clean tree, unrelated to core: extract transport-agnostic reconnect policy; adopt in vscode + dashboard terminals + tunnel client #961).
Context
Discovered during #961 (extract transport-agnostic reconnect policy), which added the packages/core unit step and made the single-package CI coverage visible.
Activity
[PIR #961] Update thread: dev-approval refinements (#967, #971)
[PIR #875] Review: reference #967 for pre-existing dashboard test
amrmelsayed commentedon Jun 3, 2026
On it! Working on this with the PIR protocol (plan + dev-approval gates before PR).
[PIR #967] Plan draft
[PIR #967] Plan draft
[PIR #967] Run vscode + dashboard vitest unit suites in CI
[PIR #967] Thread: implement phase
[PIR #967] Review + retrospective