test(plausible): psql -q in _register_site — -t does not suppress command tags #9

Merged
autonomic-bot merged 1 commits from test/plausible-psql-quiet into main 2026-06-09 23:12:38 +00:00

The plausible custom tier (first executed in build 237 — install always failed before) revealed _register_site asserting out == site against psql output that includes the INSERT 0 1 command tag: -t (tuples-only) suppresses headers/footers but NOT command tags. Both event-tracking roundtrip tests fail on it.

Fix: psql -q, which suppresses the tags. Verified against the recipe's db container: with -q the INSERT+SELECT statement pair returns exactly the site domain.

Pair: recipe-maintainers/plausible#3 (its !testme custom tier needs this to go green; the restore-tier fixes are on the recipe PR itself — head 270c840).

The plausible custom tier (first executed in build 237 — install always failed before) revealed `_register_site` asserting `out == site` against psql output that includes the `INSERT 0 1` command tag: `-t` (tuples-only) suppresses headers/footers but NOT command tags. Both event-tracking roundtrip tests fail on it. Fix: `psql -q`, which suppresses the tags. Verified against the recipe's db container: with `-q` the INSERT+SELECT statement pair returns exactly the site domain. Pair: recipe-maintainers/plausible#3 (its `!testme` custom tier needs this to go green; the restore-tier fixes are on the recipe PR itself — head `270c840`).
autonomic-bot added 1 commit 2026-06-09 23:02:14 +00:00
test(plausible): psql -q in _register_site — -t does not suppress command tags
All checks were successful
continuous-integration/drone/push Build is passing
79c652ddd3
psql -tAc still prints INSERT/CREATE command tags (e.g. "INSERT 0 1"), so
_register_site asserted out == site against "INSERT 0 1\nsite" and both
event-tracking roundtrip tests failed on their very first run (build 237 —
the custom tier had never executed before; install always failed earlier).
-q suppresses the tags; verified against the recipe db container.
autonomic-bot merged commit 157d06dc77 into main 2026-06-09 23:12:38 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: recipe-maintainers/cc-ci#9
No description provided.