feat: install the distro PostgreSQL client in the backup round-trip CI step when the runner has no 16 client, and sign the buy-mailboxes proof flow's reauth in with the stack's own password

This commit is contained in:
Matthew Meszaros
2026-11-19 17:30:13 +01:00
parent b6e90b6803
commit 2a6a927eb4
2 changed files with 5 additions and 2 deletions
+3 -1
View File
@@ -345,8 +345,10 @@ jobs:
WARMBLY_TEST_DB: postgres://warmbly:warmbly@127.0.0.1:5432/warmbly_test?sslmode=disable
run: |
set -o pipefail
# pgTool takes any client at or above the server's major; newer runner images only ship a newer one.
if [ ! -x /usr/lib/postgresql/16/bin/pg_dump ]; then
sudo apt-get update -q && sudo apt-get install -y -q postgresql-client-16
sudo apt-get update -q
sudo apt-get install -y -q postgresql-client-16 || sudo apt-get install -y -q postgresql-client
fi
go test -race -v ./cmd/warmblyctl -run '^TestLiveBackupRestoreRoundTrip$' -count=1 | tee backup-restore.log
grep -q -- '--- PASS: TestLiveBackupRestoreRoundTrip ' backup-restore.log
+2 -1
View File
@@ -1,4 +1,5 @@
import { expect, test } from "../lib/proof.ts";
import { env } from "../lib/env.ts";
// Runs against the store simulator (`GRAPHKIT_API_URL=fake`, the `make backend` default): any
// domain label longer than four characters is available, and an order reaches ready in seconds.
@@ -120,7 +121,7 @@ test("set three senders once, buy two domains with a mailbox per sender, and wat
const track = page.getByRole("list", { name: "Setup steps" });
await expect(reauth.or(track)).toBeVisible({ timeout: 30_000 });
if (await reauth.isVisible()) {
await reauth.getByRole("textbox", { name: "Password" }).pressSequentially(process.env.QA_PASSWORD ?? "password123", { delay: 40 });
await reauth.getByRole("textbox", { name: "Password" }).pressSequentially(env.password, { delay: 40 });
await proof.shot("reauth", { caption: "Paying asks for a fresh sign-in, like every money change in Warmbly" });
await reauth.getByRole("button", { name: "Confirm" }).click();
}