Repository navigation
chore(dev): faster checks agents can trust, and a pnpm dev that needs no accounts - #475
Merged
Merged
Conversation
allisonmahmood
force-pushed
the
dx/fast-trustworthy-checks
branch
from
October 2, 2026 14:46
c976f33 to
230469a
Compare
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
… tests Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…ng and browser suites Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…d run Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…e browser suite Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
… use Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…as since #429 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…tput Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…Postgres settings Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…test runs in CI Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…nother Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
… to the root pnpm 11.28 links a skipped optional platform package, such as lightningcss-darwin-x64, to the workspace root. The CLI suites' offline registry followed that link and tarred the whole checkout, which fails when another suite writes into it mid-archive. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…ingress does `pipe` left the browser's stream open and silent when the server died mid-stream, so the host-restart test waited for a reconnect that could never start. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
`Fixtures.ownRouter` (from #473) inferred its requirements as `unknown`, which the test typecheck reports in every suite that uses it. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Same content; Effect 4.0.0 orders the OpenAPI components differently. The new drift test caught it. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
allisonmahmood
force-pushed
the
dx/fast-trustworthy-checks
branch
from
October 2, 2026 15:31
24e60e5 to
53c062e
Compare
allisonmahmood
added a commit
that referenced
this pull request
Oct 2, 2026
`main` went red right after #475: the newly required `browser` job's "host restart reconnects the loaded document" test timed out waiting for the page to reconnect. The cause is a startup race in the test harness. `@effect/platform-node` binds a server's port while its layer builds and attaches the request handler only later, in `serve`. During `instance.restart()`, the harness proxy forwarded the page's next stream request as soon as the new process accepted connections. The request landed in that gap, got no handler, and hung forever, so the page never reconnected. Under parallel load this reproduced 2 to 4 times in 24 runs. The proxy now answers 502 while a restart is between stopping the old host and the new one announcing it is listening, which happens after `serve` attaches the handler. That is what an ingress routing only to healthy targets does. The page's normal backoff then retries against a ready host. Verified: 0 failures in 48 loaded runs of the test, and the full `pnpm test:browser` passes 53/53. Production is barely exposed to this race, because a load balancer only routes to targets that pass a health check, and that check needs the handler. Made by Claude Opus 5.5 via Claude Code; reviewed by GPT 6.1 Sol via codex. Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
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.
Building Patchy Cloud was slower and less trustworthy than it should be, for us and for agents.
pnpm testtook 8 minutes locally and 12.6 in CI, almost all of it one file. Tests were never typechecked, and 256 errors were hiding there.mainwent red twice this week from a flaky fleet test. A fresh clone couldn't startpnpm devwithout Clerk keys. And an agent had to read a 1,585-line DEVELOPMENT.md before starting anything.This makes the checks fast enough to run constantly and honest enough to believe, puts them behind one command, and lets anyone run the whole loop with no accounts.
Faster
cli.test.ts(732 of the 759 seconds in CI's test job) is split into eight files along itsdescribeblocks, so vitest runs them in parallel.pnpm typecheckcompiles each package once, through its build, instead of building and then checking again.Honest
tsconfig.test.jsontypechecks every test and harness file, keeping Effect's correctness rules and dropping its style rules. Fixing the 256 errors turned up three real test bugs: the dev-resources handlers ran withadminundefined, a RuntimeApi test never sent the header it claimed to check, and an ESLint test hook did nothing. test(runtime): typed file-route tests never send the file name #474 tracks a fourth: typed file-route tests never send the file name.patchy devstarts get budgets that survive a loaded run.lightningcss-darwin-x64) to the workspace root, and the CLI suites' offline registry was tarring the whole checkout because of it. That failed whenever another suite wrote into the repo mid-archive. The registry now accepts a package only when its name matches.apps/server/src/migrations.ts, for the server, the dev runner and the test template, with a test that ids are unique and gap-free. New tests fail whendocs/API.mdor the global skill's lock hash goes stale. The API.md test already caught chore(deps): move to stable Effect 4.0.0 #473 leaving it unrendered (same content, new order), so it is re-rendered here.flakylabel, and DEVELOPMENT says to check it before treating a red check as yours.One command
pnpm checkruns format, lint, typecheck and the offline tests.pnpm verifyadds every acceptance suite CI runs except live Clerk, and--changedskips them for docs-only or runner-only changes. These replacetest:all.browserjob, everything except the one native-print test, which needs a display. The suite had never run in CI, and five problems surfaced, all fixed:server.callwithaccess_denied);Math.randomto the worst case reproduces CI's failure exactly; the test now steps the page clock;pipe, so a host that died mid-stream left the browser's stream open and silent forever. A SIGKILL restart reproduces CI's failure. The proxy now usespipeline, which resets the stream as real ingress would;@printtest now, so the rest runs in CI.browseris not a required check.Local loop
pnpm devsigns people in as dev personas, and--clerkopts into Clerk. Existing instances keep Clerk. Plain instances now listen on loopback only.pnpm dev shot <person> <path>writes a full-page PNG of what that person sees, patch frames included, and prints the status and any browser errors.pnpm dev upadopts a running plain instance instead of refusing.Docs and skills
pnpm test, 16-core machinepnpm teststep in CIpnpm typecheckin CIpnpm typecheck, warm, localpnpm dev, coldHow it was verified
pnpm checkpasses andpnpm test:browserpasses 53/53. Two more 53/53 runs were just before the rebase onto Effect 4.0.0.pnpm verifyran every suite.pnpm devwith personas, thenpnpm patchy publish, withcurlshowing 401 anonymous and 200 as[email protected].pnpm dev --clerkrefuses on a personas instance.pnpm dev upadopts the plain instance and keeps its data.pnpm dev shot jordan /brightline/new-businesscaptures the tier 2 board with no errors.Release impact
Follow-ups: making
browsera required check is a ruleset change for you.Review
GPT 6.1 Sol (codex) reviewed three times.
verify --changedskipped suites that share the runner's Postgres settings;@printtag hid unrelated browser checks.Made by Claude Opus 5.5 via Claude Code; reviewed by GPT 6.1 Sol via codex.