Skip to content

tests: Docker boot, supervisor and handoff tests pass on Linux - #21

Merged
jaredLunde merged 3 commits into
mainfrom
pg-tests-fix
Nov 22, 2026
Merged

jaredLunde merged 3 commits into
mainfrom
pg-tests-fix

Conversation

@jaredLunde

Copy link
Copy Markdown
Contributor

Fixes the failures on main CI (run 44984379116) and the handoff_swap flake. All test bugs; see commit message. Local: boot 12/12, supervisor 13/13, handoff 2/2.

🤖 Generated with Claude Code

jaredLunde and others added 3 commits November 21, 2026 22:07
…inux host

All test bugs; no product change.

- boot.rs: initdb creates PGDATA 0700 as uid 999, so on Linux the unprivileged test process could not stat what it asserts on. Run a derived image with postgres remapped to the host uid.
- boot.rs: the DOCKER mutex was poisoned by the first failure, turning one failure into twelve. Recover the guard like supervisor.rs does.
- boot.rs: postgresql.conf is compared with the preload list boot filters for the stock image; the wal-gap sink listens on 0.0.0.0 (host-gateway is the bridge, not loopback).
- boot.rs: curl/python install was swept into the `&` of the next command; python3 was never installed. Phase-1 Postgres is stopped cleanly (kill $PG_PID hit the subshell). boot_pitr_recovery tested the retired S3 path; it now recovers from the WAL sink.
- supervisor.rs: the CDC stub kept a write handle open, so execve failed with ETXTBSY.
- handoff_e2e.rs: wait for the supervisor's handoff socket before the upgrade (connect raced it: ENOENT).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…is vcpus/4; a 4-core runner restored no extra worker)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…refuses more than the host has)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@jaredLunde
jaredLunde merged commit d6066a1 into main Nov 22, 2026
1 check passed
@jaredLunde
jaredLunde deleted the pg-tests-fix branch November 22, 2026 06:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant