Repository navigation
ci: run the real-Postgres integration suite in CI - #3988
Conversation
The real-Postgres proofs ran only by hand, so a regression in them failed no gate. Checks now runs the suite in a Backend integration job against tale-db built from the commit's own services/db and the object store the CLI pins, on the platform image's Node, with ITEST_REQUIRE_ALL_LANES=1. It calls the script directly, so no verdict is a turbo replay, and its summary lists the failed checks. An Integration scope job decides who owes the proof: every push to main, merge group and release candidate, and a pull request that touches the backend, its libraries, either database's migrations, the database image, the pin, the dependencies or this workflow. Both jobs join the candidate gate. The CLI's suites now hash every workflow they read, and the docs stop calling these proofs hand-run.
The Integration scope filter missed three files the suite imports (services/platform/sla-targets.ts and two @tale/ui i18n modules) and the notification catalogs it reads under services/platform/messages/. A platform guard now walks the harness's module graph and its `new URL(..., import.meta.url)` reads and fails on any the filter misses; checks.yml becomes a hashed input of the platform's tests. Backend integration now runs, and fails, when the scope job did not succeed, so a failed paths filter can never read as a skipped check. The contract test pins the containers to the image the job builds and the pinned object store, and the filter to its non-import entries. The job comment gives the measured duration, names the vendor-bound lanes, and describes the single tale-db container correctly; RELEASING.md and the backend README say a vendor outage is re-run, not waived.
A deliberate regression of the watchdog's stuck-first order: the Backend integration check must fail on the checkRagWatchdogBatch lane. Revert this commit once the red run is recorded.
|
Both CI proposals now have an actual healthy hosted run. Independent comparison at #3988 Root is carrying over this PR’s remaining documentation/skill/comment sweep and Verified first #3989 healthy run: 36698940184, backend job109834369207, actual tested tree identical to head |
This reverts commit a407682. Backend integration failed on it as intended (Checks run 36701485061, checkRagWatchdogBatch: stuck=running, want failed).
… red A deliberate regression of the watchdog's stuck-first order: the Backend integration check must fail on the checkRagWatchdogBatch lane. Revert this commit once the red run is recorded.
Checks run 36711567271 (job 109879495032) failed Backend integration on af4d394 with 1186 of 1191 checks, the rag watchdog lane among them, which is the proof the gate goes red on a broken lane.
Summary
The real-Postgres proofs (
backend:integration) ran only by hand, so a regression in them failed no gate. This adds a Backend integration job to Checks. It runs the whole suite withITEST_REQUIRE_ALL_LANES=1(#3981) against two things:tale-db, built from the commit's ownservices/db;It also updates every doc that called the suite hand-run.
Part of TALE-382, on top of #3981 (every lane must run and pass) and #3980 (the comment-burst lane's product fix), both on
mainand merged into this branch.Proof
e2087fd001191/1191 checks passed across 204/204 lanesa407682a61186/1191 checks passed across 204/204 lanes;checkRagWatchdogBatchfails witha stale running row is failed in one tick behind 201 settled failures queued before it — stuck=running (want failed)and its held-row-lock check, and the three status-hint checks that wait on the watchdog fail with it (Unit'swatchdogs.test.tsSQL pin fails too)e0d884dcbgit revertof that regression1191/1191 checks passed across 204/204 lanes, with #3980 on the baseaf4d394b11186/1191 checks passed across 204/204 lanes; the rag watchdog lane fails (a stale running row is failed in one tick behind 201 settled failures)99594a655git revertof it; the head to mergeIn the green run on a hosted runner, the job took 5m21s and the harness about three minutes. It ran against:
The job
Integration scope (
dorny/paths-filter, already pinned inbuild.yml) decides who owes the proof:main, merge group and release candidate;lib/, the notification catalogs (messages/),sla-targets.ts, the platform'spackage.jsonorDockerfile;services/db/**,packages/shared/**,@tale/ui's manifest or itssrc/i18n/**, orconfigs/platform/**;tools/cli/src/lib/compose/types.ts;package.jsonorbun.lock;checks.ymlorsetup-turbo.The platform guard
tests/guards/integration-scope.guard.test.tswalks the harness's module graph, including itsnew URL(…, import.meta.url)reads, and fails on any file the list misses.checks.ymlis now a hashed input of the platform's tests.On other PRs the check reads skipped. If the scope job itself fails, Backend integration runs anyway and fails at its first step, so a broken paths filter never reads as "not owed".
Backend integration has a 40-minute budget, and the harness step alone has 30 minutes. It:
services/db/Dockerfilefrom the checked-out commit and loads it astale-db:itest. It reads Build'sdblayer cache and never writes it.THIRD_PARTY_IMAGES['object-store'], which it reads from the CLI source at run time, withITEST_S3_*set.ffmpegand the Node that the platform Dockerfile'snode-binstage names.bun run backend:integrationdirectly, never through turbo.Both jobs join the candidate gate (
CANDIDATE_JOBS.checks). The CLI'stestinputs now hash every workflow its suites read.The
deployment-ci.test.tscases pin the job's contract:THIRD_PARTY_IMAGES;"$OBJECT_STORE_IMAGE";Each of these workflow mutations fails a test:
paradedb/paradedbinstead of the built tag;services/db/**;actionlint passes. zizmor reports no new finding against
mainbeyond a help-levelself-repositorynote, the same one every job that usessetup-turbohas.Vendor egress. A few lanes still reach real vendors:
api.anthropic.com;openrouter.aiandai-gateway.vercel.shcatalogs;An outage at one of them can turn the check red. The job comment names these lanes, and
RELEASING.mdand the backend README say to re-run such a failure, never to waive it. Making them hermetic is #3993.Docs updated
.agents/repo.md: the migration bullet, the "green check is not always a run" section, and the turbo inputs.services/platform/backend/README.md,services/platform/README.md,services/platform/tests/README.md.tests/manual/reference/automation.md.create-migrationskill, and its mirror..github/RELEASING.md.Review round 1
sla-targets.ts, the two@tale/uii18n modules andmessages/. They are now in the filter, and the new guard enforces the list.dbandknowledge-dbfrom the same image. CI uses one container in the default role, as the harness'sKNOWLEDGE_DATABASE_URLdefault expects.main.cancel-in-progressis left as it is. It is workflow-wide and shared by every Checks job. A newer push's run covers the tree of every earlier commit, which the job comment now says.