Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -226,5 +226,6 @@
"2026.12.05.1": "b677771540e2fe35a1c0b77b342bc2e93401385db7d061234095ceca2ff14ed1",
"2026.12.05.2": "a4dccbad3dbf568e2ed86cb0ff3b61c0050b4e6d68e44f16ec7bc3aff0e61478",
"2026.12.05.3": "57d5940c1d68793155b54a7baee53fbeee2c04492dbd468b3ca0a6f1c7e51a45",
"2026.12.06.1": "80ba8bf7b99d055cf6fe480f065bbd2b14aa3aed3bc6a9bace2f26cc2c7421a8"
"2026.12.06.1": "80ba8bf7b99d055cf6fe480f065bbd2b14aa3aed3bc6a9bace2f26cc2c7421a8",
"2026.12.06.2": "db2119a403e33be6f8dce96fd36868515ae290b1f9781df8e697585907f0a625"
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"schema": "problem-board.procedure-source.v1",
"package_id": "problem-board-worker",
"revision": "2026.12.06.1",
"revision": "2026.12.06.2",
"entrypoint": "SKILL.md",
"references": [
"references/identity-and-authorization.md",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,21 @@ under a time limit (for example `timeout 240`, or the host's equivalent) and
before the checkout, so a dump that hangs stops the window with the runtime
still at its last deployment point.

When the database runs in a container on a container engine that runs in a
virtual machine (Docker Desktop on a Mac, for example), the dump is written and
compressed inside the container, its completeness is checked there (the gzip
stream and pg_dump's completion marker), and only then is the file copied out
(`docker cp`). A large dump is never streamed out through `docker exec`
standard output: on the operator's Mac that stream stalled the virtual machine's
network transmit queue twice, and the container engine's API answered errors in
the middle of a reload window (W1171, 4 and 6 Dec 2026). An incomplete dump
stops the window before the checkout.

1. **Name the file.** `pb worker backup --project-ref <project> --new --dump-format plain-sql-gzip`
prints where to write it: `<backup root>/<project id>/pb-backup-<UTC time>.sql.gz`,
in a folder only the host user can read. Write the dump there with the
runtime profile's dump command.
runtime profile's dump command, or, for a containerised database, copy it
there after the check inside the container (above).
2. **Record and verify it before the action.**
`pb worker backup --project-ref <project> --record <file> --dump-format plain-sql-gzip --label "<action> at <commit>"`
checks the file and adds it to the folder's manifest. A plain SQL gzip dump
Expand All @@ -86,7 +97,9 @@ still at its last deployment point.
`pg_restore --list` cannot read a plain dump. A custom-format dump
(`pg_dump -Fc`, `--dump-format pg-custom`) is checked with `pg_restore --list`
(`--pg-restore "docker exec -i <container> pg_restore"` when PostgreSQL
runs in a container). A failed check stops the window before the action.
runs in a container; that streams the archive in through `docker exec`, so
for a large one on an engine inside a virtual machine run `pg_restore --list`
inside the container after the check there instead). A failed check stops the window before the action.
Either check proves integrity, never that the backup restores: report
"integrity verified", and call something a restore test only after
restoring it into a scratch database.
Expand Down