Repository navigation
Add pnpm test: run every test file, report all failures - #124
Merged
Merged
Conversation
scripts/run-tests.mjs discovers test/*.test.{ts,mjs}, hostd/test/*.test.mjs
and ui/test/*.test.tsx, runs them in parallel with a concurrency limit and a
per-file timeout, and prints every failure's output and a summary at the end
instead of stopping at the first failure. Files can be selected by substring
or excluded; --list prints the set. The per-area test:* scripts are unchanged.
Add a Tests workflow that typechecks, builds and runs the full suite on Linux
(excluding the macOS-only updater test and the expect-driven PTY test).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
alosec
force-pushed
the
riker/test-runner
branch
from
November 16, 2026 10:36
bb7ef6f to
0214816
Compare
alosec
marked this pull request as ready for review
November 16, 2026 10:36
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
pnpm test→scripts/run-tests.mjs: discovers everytest/*.test.{ts,mjs},hostd/test/*.test.mjsandui/test/*.test.tsxfile (209 today), runs them in parallel (default concurrencymin(8, cores-1),-j/TEST_CONCURRENCY), with a per-file timeout (default 180s, kills the whole process group). Every file runs; failures' output and a summary are printed at the end and the exit code is nonzero if anything failed.pnpm test slack voice),--exclude <substring>,--list,--verbose,--help..tsfiles run withtsx(tsx --testwhen they usenode:test),.mjswithnode --test. Files in a package with its owntsconfig.json(ui/) get--tsconfigso JSX compiles —ui/test/web-ui-steering-render.test.tsxwas not run by any script before and passes this way.test:*scripts andvalidate:localare unchanged.pnpm teston Node 22/Linux, excludingmacos-resident-updater(needs PlistBuddy) andtui-pty(expect-driven, fails headless). Previously CI only ran public-safety and the package-manager contract.Results
Local (macOS, Node 26): 204/209 on main before; remaining failures are pre-existing and fail serially too:
tui-pty(headless),teams-configandhostd/test/scheduled-wakes(pass on Linux/Node 22 CI, fail locally on Node 26),voice-contract(fixed by #125).zulip-addressing-routingis flaky in isolation (~2/5 runs fail on main).Full run is ~85s on CI vs. the serial chain.
🤖 Generated with Claude Code