fix(ci): make the gate tolerate formatting and give deploy a PG 18 client

The page-registry test parsed the route table one line per route and the
task-meta fixture was byte-compared, so the prettier reformat broke both.
The registry test now splits route objects and ignores comments; the
fixture compares compacted JSON. Also drops a stale router comment that
described the removed redirects, rebuilds ui/dist, regenerates the
contracts artifact, keeps prettier off generated output, and installs
postgresql-client-18 in deploy.yml's gate as quality.yml already does.
This commit is contained in:
sam committed 2026-09-25 01:29:23 +10:00
1 parent 6a8555665e
commit 30e79a026c
10 files changed
+150 -50435

No files matched your search

+9 -1
View File
@@ -153,7 +153,15 @@ func TestTaskMetaPayloadMatchesFixture(t *testing.T) {
if err != nil {
t.Fatalf("read %s: %v\nrun: go test ./internal/webui -run TestTaskMetaPayloadMatchesFixture -update", fixture, err)
}
if !bytes.Equal(served, committed) {
var servedCompact, committedCompact bytes.Buffer
if err := json.Compact(&servedCompact, served); err != nil {
t.Fatalf("compact served payload: %v", err)
}
if err := json.Compact(&committedCompact, committed); err != nil {
t.Fatalf("compact %s: %v", fixture, err)
}
// Whitespace is formatting, not contract: compare the documents.
if !bytes.Equal(servedCompact.Bytes(), committedCompact.Bytes()) {
t.Errorf("GET /api/task-meta no longer matches %s.\n"+
"The fixture pins the dashboard's freeze-dried snapshot (ui/src/base/task-meta.jsx);\n"+
"ui/test/task-meta-catalogue.test.js fails until both sides agree.\n"+