Repository navigation
test: drop duplicate and slow tests so the suite runs about 40% faster - #504
Merged
Merged
Conversation
The --platform-, --lifecycle- and --signal-probes modes tested the harness, not the product, and were the longest step in cli-smoke (about four minutes, three extra server builds and boots). They go, with their globals, checkpoints, probe records and the win32 command resolution only the platform probes used; the script now refuses win32 up front. cleanup() and the EADDRINUSE retry stay. A new --cleanup-check mode keeps the one probe that guarded a real risk on shared machines: a descendant that ignores SIGTERM and outlives its launcher must still be reaped, its port closed and the temp root removed. It needs no build or server and runs in under a second. cleanup() also clears its settle timers, so a run exits when it is done rather than up to 15 seconds later. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> (cherry picked from commit 949151648c6cbc6bf98bbda90457cd010ed18194)
…o unit tests The packed flow re-checked exit codes, --json documents, login resume and seed fallback, discovery rendering, exact CSPs and portal card markup that cli.test.ts, cliLifecycle.test.ts, PatchesApi.test.ts, Pages.test.ts and the portal tests already pin. Those sections go: runDiscoveryFlow, the unsafe-HTML and bad-credential no-mutation checks, the --json ladder, the no-key table, the raw-API foreign share, login resume/pending, seed fallback and seed revocation, the init receipt's key set, the tier 1 CSP string, the portal card checks and the repo-side description edit. Viewer checks keep status, srcdoc and no-script rather than header-by-header pins. What only a real server proves stays: the README workflow, the packed CLI's not_owner refusal, one share by id under --json, env-over-stored precedence with name_taken recovery, delete, the tier 1 loop with retire/restore/rollback, one portal edit pulled down by refresh, and login through the real confirm page to a new key that logout revokes. Discovery stays proven by the tier 1 flow's list calls. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> (cherry picked from commit 1bad57744e9c44b85c21582cb96388172e374497)
Chromium desktop is the supported browser, every spec but one already skipped Firefox, and CI runs Chromium only. The @print test needed a display, X11 and pdftotext, so CI never ran it and it could rot unnoticed; the 2,000-row assertion beside it only counted DOM rows under print media. The Firefox project, both print helpers, the print rows harness and the --grep-invert @print filter go. window.print() in the frame is now checked by hand. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> (cherry picked from commit e52e1f2ffd631174ef5eacb757a18afb366aaf8c)
"sharing publicly preserves an admitted company document" already opens a public patch in a signed-in context and asserts no /api/runtime/stream request and no hello, so the standalone test proved nothing more for an extra instance boot. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> (cherry picked from commit 8eebc028138a515b218a30c73cbd2bd080c920d3)
…ncile tick The test waited out the real 30-second subscriptions.reconcile.interval under a 45-second poll. It now sets that operating limit to one second through PATCHY_LIMITS_JSON, scoped to this test only, and finishes in about 1.5 seconds instead of about 30. subscriptions-recovery.spec.ts keeps the default interval on purpose: it proves writes arrive through NOTIFY, not the periodic reconcile. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> (cherry picked from commit b4f905c5875113a7e738e24375e33d4f887d3a5b)
patchy/csv is pure, yet 25 of its cases ran in Chromium and again through a workerd handler. The cases not already in csv.test.ts move there as in-process tables (parse, records, export and quote errors); the bound cases were already covered. The browser spec keeps three cases through both the page and handler graphs: a parse, an export with formula protection, and a cell-limit error, to prove both graphs bundle the same codec and carry its results and errors. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> (cherry picked from commit eb82cc7f6c4c8f846465fa64cba2db016d5dcb9d)
…ecks The SDK release test installed the served tarball with npm and ran tsc on every offline run (about 4.7 seconds). The packed Preact e2e already installs the same digest-addressed release and type-checks a consumer, so the unique assertions move there: internal entries and transports stay unexported, and Insert, Update and Row compile against a config while the internal transports do not. The offline test keeps the cheap HTTP half: cache headers, no cookie, and a tarball URL and integrity that match the served bytes. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> (cherry picked from commit 6fa43f3b95c3278849e03df887fe70b2455b9fa2)
Only broker admission differs between tier 1 company, tier 1 public and tier 2, yet each ran the whole flow: layout, discard, retries from a view and a buffer, four 20 MiB transfers, the 21 MiB refusal and the boundary. The full flow now runs on tier 1 company; the other two approve one small file each. Every configuration still proves the download stays shell-local. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> (cherry picked from commit 7b2de031493b436015724e681c7501e31d591c2c)
The upload-alias, version/help, no-key and delete-target checks repeated what cliRepo, cliLifecycle and the packed e2e already assert. The login completion, no-key, shared-source and actual-route tables now keep one row per distinct branch, and the tier 2 init row is left to the packed tier 2 e2e. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> (cherry picked from commit 92187ca8378a63018cbad0e260dee2a6271830c3)
…g at the CLI Each import form and path the page graph refuses now builds in-process through pageImports at a few milliseconds a case. The CLI build suite keeps the publish and dev lodash rows, the builder-config alias and the authored-HTML preload, which prove the plugin is wired into the production builders. Nested CSS and server imports were already covered in-process; the NODE_ENV table keeps the unset and env-file rows the CLI's config preloading can break. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> (cherry picked from commit 14e2540a6a4dc6388e0453e80e7f800908f1d581)
… Vite The HTML-inspection matrix spawned refresh and a full Vite publish per case. It is now an in-process table over validateRepoBundle, with the server-directory inference moved beside it. The CLI keeps one tier 0 repo publish that hits a dependency refusal, then too_large, then succeeds, so Vite's output is proven to reach both checks. The instance-mismatch table keeps the flag row Instance.test.ts does not cover; the name-collision refusal's invalid_manifest code moves into executeConfig.test.ts, which already named both primitives. Blank-description rows keep one per shape. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> (cherry picked from commit 556ea26aec03e43f7ff01f04b622c00ed31d0214)
…er command Project.syncDescription and normalizeDescription had no direct tests; every stamp rule and DescriptionText refusal ran through spawned dev starts, refreshes and Vite publishes. An in-process suite now covers newer, equal, older, null and never-synced stamps and each description refusal. Dev keeps one start that pulls plus a joined session that makes no request, publish keeps the leg that sends and records the pulled text, the primitive reminder rules move to primitiveReminders.test.ts and devPreparation.test.ts, and notices surviving a later failure keep the typecheck stage. Tier 2 module discovery and the packed tier 2 dev start are dropped: serverModules.test.ts, devPreparation.test.ts and tier2-smoke's packed install already prove them. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> (cherry picked from commit 4e04254fdf17c5f2944f70342d1f8b21edaf013f)
Which refusals clear a saved publish attempt was one boolean inside the publish command, exercised by eleven spawned CLI cases that covered under half of ADR-0004's list. It is now Api.isDefinitivePublishRefusal, with an in-process table over every code on the list and the status, update and missing-status combinations that must keep the attempt. The CLI keeps a 422 and a 409 in file mode, and not_owner and patch_deleted in repo mode, which also pin "never suggest a new patch" and the unchanged repo identity. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> (cherry picked from commit a50dd9b6776e8dab0eca182e64f1c552d454304a)
…ransport tables Lifecycle verbs keep one explicit-target JSON case each, with repo and cached-file targets and describe's repo rewrite proven once. Refusal, patchTarget, wrong-level flag, wrong_state, share-target and kept-attempt tables drop rows that took the same path, as do the stub-text-only refusal rows. Description spawns keep one invalid text per command now that Project.test.ts owns each refusal. Descriptor extraction keeps its own kind and strict-decode checks, delivered-refusal retries keep three rows, and the table/hook sharing case drops the permanent-error suffix that later cases and queryRegistry.test.ts already cover. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> (cherry picked from commit a165b41255f526d484142bfb594366d2a1204a6a)
The ADR said the packed CLI flow exercises publish recovery; it never replays a lost publish. Recovery is proven against stub instances in the CLI suites and publish-key idempotency in packages/patches. The ADR now states the agreed split: the CLI suites own mapping, documents and recovery; the packed flow proves the installed artifact against a real server, one path per journey. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> (cherry picked from commit 43b23164054c239db866356bacdbbab6339f2359)
… own The 365-day "never reclaims" case is the main sweep test's live and retired patches. The stale-candidate and both-locks races were near-copies of the real-Postgres concurrency suite; the company-side patch-lock waiter, the one thing only the offline copy proved, now lives in that suite. The main sweep test calls sweep directly instead of forking its own hourly schedule, which the server's SweepSchedules test owns. LoadedVersions.test.ts went: the stream lifecycle test opens versions through that layer across retire, restore and delete, and Patches covers disabled. The stream's rolled-back bulk action check moved into the Patches announce test as its outermost-rollback case. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> (cherry picked from commit 6fca63eb7bf0c89e6960629ca3aee6c5a9bc604e)
The store/record/read-back smoke test is implied by every read-back in the suite and by the object-key layout check; the server test owns source-IP provenance. Reassignment during the content write is the real-Postgres concurrency suite's reassign race plus the Patches record-time recheck. The refused-delete retry exercised the same claim-and-complete loop as the DeletionSweep retry test, which stays. A lost store reply and a rolled-back version transaction are one reclamation mechanism behind two fault layers, so they are now one table-driven test. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> (cherry picked from commit 0d32352712cc8834e8c3ae6dae3bd1530a441b1e)
Patches.Openability defaults to "every patch" and nothing in production narrows it, so the tests that swapped in an alternate rule were testing a seam, not a product rule. The real gates they also touched now live in the tests that own them: the Patches source-state test checks that a disabled patch leaves the company list and that disabled and foreign patches have no company inventory; the discovery state test checks the API's mine filter and the exact 404 body for a detail lookup. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> (cherry picked from commit 180b1b60db0f51f204b7cd929f83b63959dd1154)
The service tests own the state matrix, description code points, ownership and name reservation; the HTTP suite now keeps one wire case of each. - Drop the "policy and target refuse" and "members publish, admins have no reach" tests: every assertion is in the owner-refusal, foreign/unknown and tier-zero tests. - Share keeps the both-ways share and its body; refusals are elsewhere. - Wrong states keep one 409, version_unavailable and the recovery deadline. - Descriptions keep metadata precedence, one overflow, one control character, an invalid publish and one reserved name. - Dependants and off sources use one source with a table and a store, still pinning force in a body, a query value and a bare query flag. - The store-only and table-only inventory flows are one manifest with both. - has_primitives keeps the inventory loop (and Content's adopted DDL). - The exact-name race no longer re-tests name reservation on deletion. - Lifecycle body bounds run on the description route only: all four routes share one bounded reader, and the server test proves the share route. - The raw manifest check keeps one shape case; shape rules belong to the api schema tests. - Tier 2 keeps the handler-kind mismatch and one throwing load; Inspection owns timeouts, hangs and imports (about 5 s a run). - Patches visit counting drops the token-revocation and 365-day leftover of the expiry rewrite, and the now-unused revoke fixture. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> (cherry picked from commit 9eac82c1f13cc2b1f5e125d931f2f6f79a93783c)
Five fault-injection tests shared one shape: replace a dependency, check Generation's stage, resource and cause, then check the 503, its code, that it names the source, that it stays under 512 bytes and leaks no provider diagnostics. They are now one table covering company capacity, an unreachable or claimed company database, the connection list, a missing connection snapshot, an unreadable release skill and a template missing its capability marker. The SQL and identity defects test stays separate because those failures are defects, not unavailable sources. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> (cherry picked from commit 676d3144fb3114ecbee3df987dea3adcda0e4dad)
…ard copy - Restore and reactivation warnings each use one off source; Patches owns the retired, deleted, gone and older-version matrix. - Reassignment runs on one deleted patch with two moves and the no-op. - The firstClause table moves to a pure unit test; the socket keeps the title rule, one cut and the blank description. - The description tests drop the Unicode bound and the unchanged repost, and the card view drops its explanatory sentences. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> (cherry picked from commit 3e194a50825598c999a86c1474a508a6e266c5b3)
These cases lived in the server's ApiGuard test, which only checked that the guard leaves /patches paths to page routing. They now sit with the portal's other name bounds: names past the router's 100-character parameter bound, encoded slashes and spellings, the 32-character edge, and HEAD answering 414 with an empty body. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> (cherry picked from commit 2f37a35a12fa0301630c7446f64bf073938a28b8)
…form The chunked overflow case only needs the request to fail. UND_ERR_SOCKET is undici's code, not ours, and varies across Node versions. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> (cherry picked from commit ea3800f291d66dd4339a4067e26944f5f9e2ded9)
The guard lost its portal branch in #282. The classify case only showed that non-API paths are public, which the first classify case already pins, and the live-server block re-asserted the portal's own 414/404/401 answers. The portal page tests own those now; the guard keeps its one check that portal refusals do not spend the exhausted API limit. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> (cherry picked from commit 66d87e5bd219de6abcd2eb8e1918e5e3fcb86d1c)
Round trips of plain wire structs, a required-field check on LimitPeak, a Layer memoisation check on a test-built layer, and a defect passing through catchTags all assert library guarantees. Strict runtime argument decoding stays pinned by Runtime.test (forged connectionId) and RuntimeEvents.test (forged companyId). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> (cherry picked from commit fa91ac3a7f233ab8fc813559373e237ce3f3b02a)
- RuntimeApi: the viewer call limit is RuntimeAdmission's and RuntimeStream's. - RuntimeProduction: deactivation after admission is the same reauthorize path the post-expiry test already refuses. - RuntimeStream: per-patch independence under a blocked lookup is pinned by apps/server StreamLifecycle over real versions, and a company document surviving public sharing by packages/patches Subscriptions. - Subscriptions: a refused first run recovering on reshare is pinned by the patches and QuerySubscriptions suites, and the transient retry by the refusal-rerun test, which now also checks the failed re-run wide event. - RuntimeLog: begin, restart, finish and find are covered by the deadline and failure tests; the failure test now checks a browser call's effective principal and missing invocation id. - Server: concealment and enrollment answers are serving's Pages.test; the server keeps a short wiring check that refusals count no visits and HEAD follows GET admission. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> (cherry picked from commit 48e43def305c4c685b0d300e3e8f31ba6b83ca7c)
… ones The timeout cases waited the real 3 s query deadline and a 2 s action deadline plus cleanup. Query and action deadlines are now 500 ms and cleanup 250 ms, and each test binds its bundle first so workerd's cold start never counts against them. Every assertion stays; the file drops from about 4.7 s to 1.7 s of test time. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> (cherry picked from commit e872c10c89f62a5b2c3bd889a81f8924769ecddb)
Keep each behaviour, cut the repetition: - RuntimeStream: one deliveryFence helper drives all six delivery-fence cases. - Runtime: the integration and mutation deadline tests are one table. - InvocationAdmission: one operation per gated prefix, and a read, a write and server.call for retained tier 1 documents. - CallbackGateway: one row per browser-only file operation. - QueryRollups: one permanent SqlError reason pins drop-without-retry. - RuntimeStreamApi: the streaming-hello checks join the affinity test. - api: two member-default values, one RuntimeReply refusal code, and no check of Schema's default excess-key handling. - limits: three invalid values each pin positive, finite and whole. - DevelopmentExecution: the nested-mutation case runs on the first dev server instead of booting a second one. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> (cherry picked from commit 41711cb91cd9f93928e72d589d842a3d8d101b67)
Tables sent as an array, a table or store without a description, and a blank table or store description are refused by the Manifest schema. The schema test now pins them directly, so PatchesApi.test no longer needs to send each one through a publish. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> (cherry picked from commit 8d5cfc5815a8712cc2e9cccc6a118f088e3a9696)
…diless 404 Serving's Pages.test checks HEAD only on removed /d routes, so the HEAD concealment of a foreign patch address moves into the server's short wiring test rather than leaving with the deleted concealment case. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> (cherry picked from commit e05e163ccc4c494d2ebf2be7a3dff08d8fb22ea7)
Inspection: drop the second spinning-initialization timeout case and the top-level-throw half that the reusable-inspection case already asserts; move callback URL validation, which never inspects anything, to Process.test.ts beside startWorkerd. Supervisor: drop the wall-clock upper bounds that fail under load and keep the lower bounds that carry the watchdog contract; drop the residency busy refusal that repeats the workerd-only case; evict at a two-process limit instead of binding thirteen workerd processes. RuntimePromise: one workerd and engine serve the four pure handler cases. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> (cherry picked from commit 97a5623a60685784b69a7580e7b8b8980934eabd)
The case is about recovery without replay, not the kill type. A 250 ms deadline kills at about 1.25 s instead of paying the six-second stall that Supervisor.test.ts already owns; every recovery assertion stays. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> (cherry picked from commit b8755380c1d220bfd07e9b0961a8b06375467784)
start.ts checks four config groups before Postgres. Keep one missing key per group (DATABASE_URL, PATCHY_CREDENTIAL_KEYS, CLERK_SECRET_KEY) and one invalid company database URL, and drop the subprocesses that repeat a group: the second company URL, the second Clerk key and the public base URL, which Server.test.ts checks in-process. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> (cherry picked from commit 95bd1fda4e19844faed258bc018c27d8abb65ede)
make validates every revision in one loop, so run all seven credential and user rules on the current definition and one on the previous instead of the full matrix on both. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> (cherry picked from commit df344acdaced4b817a4170dcfb879ef3f4c939cc)
Fleet.test.ts started two node processes per local task for every case, so nineteen cases took 107 s although half never run patch code. Claim, pre-bind stop, lease loss, idle, budget, bind rollout, slow cold starts, isolation, wait failures and staged rollback now run over an in-memory inventory whose supervisors fence epochs like supervisor.ts. Fencing, adoption, draining, the quiesce and metering faults, and a small physical budget check stay on LocalTaskProvider. The breaker keeps one real watchdog kill and feeds the other five as synthetic deadline reports through the real collection, persistence and acknowledgement path. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> (cherry picked from commit 450c594cd94712ddc0f6187c9cf576a421ce4e31)
… PGlite-specific Operations: the seven read-only cases share one seeded PGlite through it.layer, with handlers and connection state still fresh per case; only the two schema-drift cases open their own. The INSERT refusal goes, since Execution.test.ts owns read-only enforcement on native Postgres. Dev: keep the dev-only checks (COPY refused with 0A000, timestamptz in UTC, untyped text parameters compared as numeric) in the worker-restart case and drop the rest of the native-fixture case, which repeats the shared runStatement checks in Execution.test.ts. Runtime: read the source through native execution over the block's own database instead of a PGlite worker. Parity's native execution helper moves to src/test so both use it. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> (cherry picked from commit 519eecf4da625a47dd8ae679c36fe1956516a760)
Connection pages drop the signed-out and unenrolled answers, the Origin matrix and the deactivation round trip, which RequireSession and the company page tests own; one forged Origin still proves the wiring and the role-demotion refusal stays. Also drop exact copy and pill markup, the shell navigation block and revision arithmetic that ConnectionStore.test.ts owns. Every escaping and company-scoping assertion stays. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> (cherry picked from commit efd3ddfc04e19890fbcaf968e547bc69be71bdd3)
OrphanSweep runs only in the server over PgCompanyDatabases; patchy dev never builds one, and the PGlite leg paired a PGlite company database with a real platform database that no running system uses. Drop that leg and its Postgres-only guard. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> (cherry picked from commit 7934537eb2e61539633d29f2525b88e2ca9eda4f)
Tables: PGlite runs only the provisioning cases where the dev database can differ (additions, omissions, stores, empty and rollback); the pure diff refusals and the Postgres engine limits run on Postgres alone. TableOperations: the member-assignment contract runs once, since TableOperations has no tier logic; UUIDv7 generation is pure JS, so the PGlite run drops it and the operations contract drops its duplicate regex. Files: the 20 MiB round trip writes to the filesystem content store, not the database, so it runs on the Postgres leg only. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> (cherry picked from commit b0e60830058e9ebd0042f681696b842ec310a8b4)
…d 503 The filesystem store has no pages, so the 1,005-object listing case now runs only for the S3 stores. The 503 case paid for the SDK's retry backoff; 403 and NoSuchBucket already pin that a non-NoSuchKey error is store unavailability. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> (cherry picked from commit a00ddd3a0c3cbf18b7d086840c159749ec6d4a78)
…Effect Every database-backed suite already migrates the full record into the vitest template, and apps/server's migrations test guarantees the real record has no duplicate or skipped id. Keep the incremental step and the rolled-back batch, which pin our use of the unstable Migrator. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> (cherry picked from commit 521b869c409da95bc16b9a023f16b3793d3b892e)
allisonmahmood
force-pushed
the
test/prune-suites
branch
from
October 3, 2026 03:20
c7cf06d to
f52a5ba
Compare
The unknown-code cases checked only 404, which a generic not-found page would also pass. The GET case again checks the page says nothing is waiting for the code, keeping one marker per state. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> (cherry picked from commit 71e64a19ccce91c3d93a73a048b21d2e0b717d83)
…either The wiring test that refusals count no visits dropped the deactivated viewer with the old concealment case. Serving's Pages.test checks that viewer's 403 but never the visit count, so the server test sends it again before comparing counts. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> (cherry picked from commit 6c7b760ab9ee06922689e711c5d08c5924e2dfaf)
Owner
Author
|
Codex review (GPT 6.1 Sol, read-only), in two scopes:
The branch was rebased onto #503 (the migration squash). The one conflict, in |
This was referenced Oct 3, 2026
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.
The test suite had grown expensive without growing more useful. A whole-repo audit (seven area reviews plus an independent Codex pass and a discussion round) found three patterns:
cli-smokespent about 4 minutes testing its own harness (Windows command lookup in a script that refuses Windows, port retries, temp-dir cleanup) before the real end-to-end run.This removes or moves them, keeping every behaviour that only those tests proved.
What changed
--jsonladder, no-key and login-resume blocks are gone. It keeps the real foreign-share refusal and the login → logout → key refused proof.Api.isDefinitivePublishRefusal, tabled over the whole ADR-0004 list) run in-process. A few CLI rows stay to prove each check is wired into the real publish and dev builds.cli-smoke. The three probe modes are replaced by one--cleanup-check: an orphaned process group that ignores SIGTERM is killed, its port closed and its temp root removed. It takes under a second. Along the way,cleanup()no longer sits up to 15 s after PASS (a race timer was never cleared).@printtest are gone (Chromium desktop is the supported browser). The members tier 2 test runs on a 1 s reconcile tick.subscriptions-recoverydeliberately keeps 30 s, because its long interval is what proves writes arrive through NOTIFY. The CSV codec table moved tocsv.test.ts./d/*route, Effect Schema round trips, same-engine duplicates (including offline copies of racespostgres-concurrencyowns), the openability-seam tests, PGlite legs that check nothing PGlite-specific, and Supervisor wall-clock upper bounds that fail under load.Effect (this machine, full offline suite with the gap-tests PR on top): 1,625 → 1,537 tests, 1,494 s → 1,033 s cumulative test time, test-phase wall 173 s → 101 s. The longest file is 101 s instead of 140 s. Locally
packed-cli-e2egoes from 162 s to 109 s, plus the ~4 min of probes CI ran first. This PR alone is 110 files, +5,173 / −10,040.Coverage gaps the audit found are filled in the stacked PR. The migration squash is #503.
Made by Claude Opus 5.5 via Claude Code