Repository navigation
Description
The gap
None of the required checks run the test suite or the typechecker. Today's check is the co-author-trailer gate, appx builds the Windows package, semgrep scans, assess is firstlook. So a PR can be CI-green with failing tests, and tonight that was nearly consequential twice:
- models: name GPT-5.6, Grok 4.5 and ClinePass slugs instead of showing raw ids #893 and feat(cline): read the Cline CLI's sessions layout in the cline provider #891 landed with all checks green; their 150 and 57 tests only ran because the reviewer ran them locally before merging.
- fix(cline-cli): decline the rollup when per-message calls were all deduped #896's regression test (and the parallel fix(cline-cli): gate the rollup fallback on metrics presence, not emitted calls #895) would have caught the cline-cli: rollup fallback double-counts a session whose per-message calls were all deduped #894 double-count in CI on the original feat(cline): read the Cline CLI's sessions layout in the cline provider #891 push, had anything executed vitest.
Review discipline covers this while the reviewer pool is two or three people who know to run the suite, but it does not scale past us, and it silently punishes outside contributors whose local environment differs.
Proposal
A test job in ci.yml on pull_request + push: main:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v4
with: { node-version: 22, cache: npm }
- run: npm ci
- run: npx tsc --noEmit
- run: npx vitest run --exclude tests/cache-refresh-lock.test.ts --exclude tests/cache-refresh-lock-process.test.ts
- run: npx vitest run tests/cache-refresh-lock.test.ts --pool=forks --poolOptions.forks.singleFork=trueTwo knowns shape the shape:
tests/cache-refresh-lock.test.tsis parallelism-sensitive: several cases fail under a fully parallel run and pass in isolation (reproduced repeatedly on macOS/APFS on unmodified main; count varies run to run). Running that file serially in its own step keeps it enforced without making every PR roll dice. If it flakes even serially on ubuntu runners, quarantine it behindcontinue-on-error: truewith an issue, rather than dropping it.- The copilot fixture cases in
tests/parser.test.tsfail on some environments on their first parse (expected +0 to be 200). If the ubuntu runner reproduces that, the fixture needs fixing first; the job should land green, not aspirationally red.
Suggest landing it as non-required for a week to observe flake rate, then flipping it to required.
Happy to implement whichever variant you prefer; this wants a maintainer call on required-vs-observing and on the flake-quarantine policy before code.
Activity
ci: run tsc and the vitest suite on pull requests
iamtoruk commentedon Aug 10, 2026
Done: .github/workflows/tests.yml runs the typecheck and the vitest suite on every pull request and push to main (landed with the CI hardening wave), and #950 wired the workflow to the npm test / test:locks scripts from #948 so the CI invocation and the contributor command can no longer drift. The three parallelism-sensitive lock suites run serially as a quarantined reporting step, tracked separately in #904.