- load the local sample CSVs through COPY staging tables into a migrated DB
- replay packet receptions as observer JSON envelopes, or status telemetry
- local-only Mosquitto config and runbook; dataset stays out of Git
- 157k-row load completes in seconds with --fast
- delete compose.phase4.yml and docker-compose.infra-client.yml (no live path)
- delete unmounted health-check app.js/styles.css and three unreferenced scripts
- drop the retired ML env block and duplicate receipt key
- document OWNER_COOKIE_SECRET and GRAFANA_ADMIN_PASSWORD, fix example CORS
- remove the non-existent mosquitto-exporter scrape job and alerts
- delete the duplicate nginx .mjs location and stale proxy addresses
The readiness fixture created public.ci_init_completed to hold the entrypoint
open past the first health probe. The merged migration bootstrap refuses any
database whose relations do not match the shipped base schema, so the marker
now fails the smoke stack before migrations run. pg_sleep alone already holds
the entrypoint open; the table was never read.
One conflict, in the visibility-convergence fixture: main's row-level prefix
fence (074) landed after this branch forked, alongside the branch's statement
fence (066) and post-move reassertion (134). The fixture now re-applies the
full chain in migration order (066 -> 074 -> 134) and asserts the post-move
row triggers on core.private_node_prefixes. 074 sorts between the branch's
073 and 078 slots, so the two bands compose without renumbering.
* ci: create the owner-auth database in the smoke stack
The backend derives its owner connection from DATABASE_URL with the database
name swapped for meshcore_owner_auth, and dies at startup when that database is
absent. Production creates it out of band (newuser.sh, restore-drill.sh); a
fresh CI volume never did, so 'Build every application image and smoke an
empty-volume stack' failed with 'database meshcore_owner_auth does not exist'.
Mirror production: an init-hook script creates the database and applies the
shipped owner-auth.sql to it. The SQL is mounted outside initdb so it is not
applied to the main database as well.
* test(tagger): build the fixture in the post-move ops namespace
The suite creates its own database and then runs the worker's real poll SQL,
which reads ops.public_visibility_state, ops.packet_visibility_materialization_state,
ops.privacy_rematerialization_queue and ops.tagger_retry since the P1 moves.
The fixture still created those tables in public, so all eight tests failed with
'relation "ops.packet_visibility_materialization_state" does not exist'.
This was masked until now: the smoke stack never got past backend startup, so
this step never ran. packets and message_tags stay unqualified - the worker
resolves those through the connection search_path, as the deployed P1
search_path does.
Verified against a disposable TimescaleDB with the same invocation CI uses:
8 tests, OK.
* ci: read the smoke-stack assertions from the post-move schemas
The empty-volume smoke readback still queried nodes, packets, packet_paths and
packet_hourly_stats by their pre-move public names. 116/123/124/125 moved them to
core and mesh, so the psql step failed with 'relation "packet_hourly_stats" does
not exist' once the stack got far enough to run it.
Use the canonical names; the public spellings are compatibility views at best and
for two of these relations no longer exist.
* test(e2e): warm the MapLibre module graph during setup
maplibre-gl is excluded from optimizeDeps because Vite's pre-bundling
rewrites the worker URL and kills it, so the first cold request pays for
transforming the whole module graph. On the CI runner that is 41-47s for
maplibre-gl-worker.mjs (measured from the retained traces on run
41887037964), which is most of the 60s map-health budget in the map specs:
the map starts ~57s after the document load and the assertion expires just
before the basemap turns healthy.
Playwright starts webServer before globalSetup, so warm the two heaviest
dev-server modules there. The cost moves into setup; assertions stay tight.
Failures are logged and ignored - this is never a gate.
Fixes#190
* test(e2e): log module warm-up response shape
The CI warm-up reported 200/116ms, but the browser still waited 47.8s for the
worker module and the map stayed loading. Log Content-Length and Content-Type
for each warm-up response so we can distinguish the transformed worker from a
fast SPA fallback before changing the fix.
The Workers and Compose job runs the worker suite inside the built image
(`python -m unittest discover -s /app/tests`). The relation-qualification
test resolved the checker as `<repo>/scripts/check_external_consumer_sql.py`
via `Path(__file__).parents[2]`, which inside the container is `/scripts`,
and the image only carries `viewshed-worker/`, so the job died with
`ModuleNotFoundError: check_external_consumer_sql` before any test ran.
The image builds with `context: viewshed-worker`, so a repo-level `scripts/`
file cannot be COPYed in without widening the build context (and the release
workflow). Move the implementation next to the worker (`viewshed-worker/
check_external_consumer_sql.py`), leave a thin shim at the old path so
`backend`'s `test:external-consumers:sql` keeps working from a checkout, and
add the module to the Dockerfile COPY.
The test now resolves the module from the worker root, and a new in-image
test asserts the checker imports from that root, so dropping it from the
image fails with a named test instead of a bare import error.
The readiness script compared the number of schema_migrations rows with the
number of .sql files. The runner supersedes some files (011 -> 044), so the
ledger is legitimately smaller: 67 rows against 71 files on main. The step
therefore failed on the merge commit and took main CI red.
Assert that the highest-sorted migration is recorded instead, and log the
ledger counts so a future failure is visible rather than silent under set -e.
The replay check still proves nothing is pending.
* fix(owner): use authenticated diagnostics for rebaseline decisions
* fix(owner): await reconciliation after committed feed changes
* fix(owner): preserve baseline ACL evidence and expose history repair plans
* docs(privacy): park unattended global convergence design
* fix(ci): wait for final PostgreSQL TCP server before migrations
* docs(review): record Lane L CI proof and credential escalation
---------
Co-authored-by: Hermes <hermes@local>