Repository navigation
test(ci): verify the packed tier 2 journey - #453
Conversation
Astra reviewReviewed StandardsNo merge-blocking method or YAGNI findings. The journey reuses the existing packed runner's release setup and process cleanup rather than introducing another runner. The change stays within acceptance coverage, CI wiring and documentation. SpecNo merge-blocking intent findings against #413 and #384. The journey covers packed tier 2 initialization, all handler kinds, both dev mounts, publication, two-viewer subscriptions, lost-reply mutation retry, shared tables and stores, handles, staged uploads, a member column, CSV import/export and tier changes both ways. The fresh-agent CRM journey and tier-picking check are explicitly deferred until the stack merges in the scope clarification on #413. Their absence here is not a missing requirement for this PR. Verification: Summary: Standards 0 blockers, no worst issue; Spec 0 blockers, no worst issue. |
Opus reviewOne blocking finding, and it is a repo setting rather than code. The diff itself is sound. 1.
|
| Ticket item | Verdict | Where |
|---|---|---|
init --tier 2 from the packed release |
Asserted: tier, installed, pnpm typecheck of the starter. It runs through the harness's digest-addressed tarball and a clean offline npm install, not workspace sources |
packed-tier2-e2e.mjs:29-42,105-106 |
| A handler of each kind | Asserted: query, mutation and action all run in dev and hosted, and publish reports exactly action/mutation/query |
:190-211,220-226 |
dev with both mounts |
Asserted: distinct origins, distinct viewers, the member list equals the two mount identities, and the colleague mount sees the owner's write | :181-203 |
| Publish | Asserted: tier 2 plus sha256 and byte count for both artifacts | :218-230 |
| Subscribed page across two viewers | Asserted in dev and hosted through useQuery text with no reload. Two isolated contexts in one Chromium, which is equivalent for cookies and sessions |
:203,244,293,309,333,363 |
Mutation retry() after a lost reply |
Asserted, and it can fail: the reply is dropped only after a real committed 200, unknown_outcome carries retry, both requests share one string key, the retry returns the dropped row, and the list shows exactly one "Lost reply" row |
:259-303 |
| Shared table and shared store | Asserted: dev fixtures and hosted source data read back with exact contents, plus a shared-store handle download | :204-210,245-256 |
| Handle and staged upload | Asserted: stage, adopt in an action, handle download, file contents compared | :211-212,306-307 |
| Member column | Touched. Only valid member ids are written (created.owner === viewer, tier 1 me.user.id). Nothing checks the spec's invalid_row refusal of a non-candidate, so a t.member() that behaved like t.text() would still pass. Not blocking, because the primitives ticket owns that check, but one tier 1 insert with a bogus owner expecting invalid_row would make this row real |
:153,243,331 |
| CSV import and export | Asserted: a quoted comma survives parse, and the downloaded notes.csv must match the bytes exactly |
:308-314 |
| Tier change both ways | Asserted: 2→1 keeps rows and allows direct writes; 1→2 shows "Reload to keep saving", gives the stale tier 1 document server_required, and the reloaded tier 2 page writes |
:316-365 |
Checked and clean
- Product code. The diff touches only
ci.yml,package.json,docs/DEVELOPMENT.md,scripts/packed-cli-e2e.mjs(the--tier2branch) and the newscripts/packed-tier2-e2e.mjs. The ticket's rule holds. - Flakiness. No wall-clock sleeps. Every wait is on an observable result. Ports come from
reserveLoopbackPort. Thepatch devdaemon is registered inpatchDevCleanupbefore it starts, and the browser server goes throughregisterSpawnedChild, so both are covered by the existing cleanup and signal paths. The temp root is the harness's own. The five-minute race latches SIGTERM, which gives exit 143. - Method. It reuses the packed harness (packing, the real server, Postgres, seeding, cleanup) behind
--tier2instead of copying it, which is the right call. Thechromium.launchServerblock and the offline-route context duplicaterunTier1Flow(packed-cli-e2e.mjs:3487-3503) and could become one helper. Not blocking. - CI run.
tier2-smokepassed on 258d4f4 in 4m36s; the journey step took 3m24s and logged every stage throughPASS. The 15-minute job timeout leaves plenty of headroom.
Reviewed with Claude Opus 5.5 in Claude Code.
Review responseFixed member-column coverage in 0e03b16: the packed journey inserts a non-member id and requires Whole-stack CI-stability fixSeparate commit c803676 is a CI-stability fix for the whole stack, replacing the previous Node 22 escalation:
Verification on c803676
Remaining dispositions
Code and CI are ready. Allison's required-check action remains outstanding. No merge performed. |
edfda35 to
bbd4a9c
Compare
CI-stability fix for the whole stack: give subprocess-only CLI suites a file-local 30-second budget instead of accumulating per-case exceptions. Preserve pure in-process defaults, assertions, longer scenario budgets, and production timeouts.
c803676 to
4395b87
Compare
What changed
Tier 2 needs an end-to-end check that its assembled features work from the packed release, not only in package tests.
Adds a packed journey covering init, all handler kinds, both dev mounts, publish, two-viewer subscriptions, lost-reply mutation retry, shared tables and stores, handles, staged uploads, members, CSV, and tier changes both ways. It runs in a separate
tier2-smokeCI job and is documented indocs/DEVELOPMENT.md. No product fixes or skipped expectations.Stacked on
tier2/412-log-view. This PR targets that branch and contains only the packed-e2e work for #413, against spec #384. The reference CRM journey and tier-picking check remain manual checks onmainafter the stack merges, as recorded on #413. No example CRM ships, and this PR does not close the issue.How it was verified
Release impact
Implemented with GPT-6 Astra in the omp harness.