Repository navigation
deps: pin testcontainers-go to the fix for a reaper being removed - #715
Conversation
The test binaries of one go test run share a reaper, which exits after its idle timeout. A binary that looks it up while it is being removed fails its first container start with "unexpected container status removing" instead of creating a new reaper. testcontainers-go fixed this after v0.45.0 and has not tagged a release with it yet.
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
🤖 Review 1/2 (correctness) of db554a8: 0 blocking, 2 non-blocking. Inspected the whole change at The PR moves Does the pin carry the reaper fix?Yes, checked through the GitHub API on
go.mod and go.sum
Non-blocking
Verified
This review was generated by Claude Code (claude-sonnet-5-5). |
|
🤖 Review 2/2 (OSS adoption and integration) of db554a8: 0 blocking, 2 non-blocking. Read the change from two seats: a contributor who runs Non-blocking
What reads well for adopters
This review was generated by Claude Code (claude-sonnet-5-5). |
aparajon
left a comment
There was a problem hiding this comment.
🤖 Stamping with comments: 0 blocking, 4 non-blocking (see the review comments above).
This stamp was left by Claude Code (claude-sonnet-5-5).
|
🤖 Adversarial review response — created by Kiran's code review agent (Amp, claude-opus-5-5) — pull/715, follow-up commit All 4 non-blocking findings fixed: the pin now says in
No action: the "Does the pin carry the reaper fix?", "go.mod and go.sum" and "Verified" sections of review comment 7368866201, the "What reads well for adopters" section of review comment 7368867502, approving review 6164220335, and Codex comments 7368762330 and 7368763061, which hit a usage limit before reviewing. Source: block/pg-sprite#715, review comments 7368866201 and 7368867502 and review 6164220335 at head |
…timeout-every-step * origin/main: (38 commits) feat(schemadiff): report an invalid index's size on disk (#724) docs(planner): say the catalog-only proof covers the statement as submitted (#725) schemadiff: show a generated expression change as a drop and re-add before PostgreSQL 17 (#723) statement: admit foreign keys in a row security file (#722) schemadiff: name the sequence and types a serial sequence type refusal compared (#719) feat(statement): find the orphan rows of a validated foreign key outside public (#721) statement: name the policies a row security file declares (#720) schemadiff: name the constraint that keeps a renamed rule (#718) cli: report an unreadable write fence as unknown in status (#690) executor: refuse a DETACH ... FINALIZE step in RunSequence (#689) schemachange: wait outside the lock queue before a discard's fence drop (#688) docs: point the remote apply ID sources at SchemaBot's design folder (#707) dbconn: give a lock held elsewhere at Confirm its own type (#686) deps: pin testcontainers-go to the fix for a reaper being removed (#715) executor: report a native step's row fault as data-fault (#685) migrate: run a CREATE TABLE ... PARTITION OF as the online create of a partition (#684) dbconn: qualify the table lock's pg_locks reads (#683) preflight: ask a resume holding its own slot for no free slot (#682) executor: remove a failed unique partitioned build's parent index (#704) migrate: drop an unfinished partitioned index build's parent index (#705) ...
Picks up the testcontainers-go pin (#715) that recreates a reaper being removed, which failed this branch's PostgreSQL 18 job.
Pins testcontainers-go to the upstream commit that recovers from a reaper container being removed, which fails a test package's first container start in CI.
Why
pg-sprite's integration tests start PostgreSQL and PgBouncer in Docker through testcontainers-go. All the test binaries of one
go test ./...run share a single cleanup container, the reaper, which shuts itself down once no test has used it for a while. When a package starts its first container at the moment that reaper is shutting down, testcontainers-go gives up instead of starting a new one, so that package's first test fails. CI runs packages in roughly the same order, so the same test kept failing:TestConnectReplicationAsksForWarningsThroughPgBouncerinpkg/dbconn, in 4 of the last 40 failed CI runs, one of them onmain.What
github.com/testcontainers/testcontainers-goandmodules/postgresmove fromv0.45.0tov0.45.1-0.20261109125418-f31e98d4ee9b: testcontainers-go#3868, "recover from stopped, orphaned and unready reapers". No release carries it yet; a comment above the two lines ingo.modsays to move both to the first tagged release afterv0.45.0.Reaper.Connectnow returns an error when Ryuk does not acknowledge within 5 s, wherev0.45.0only logged it. A test whose first container start now fails with a reaperhandshake:error is meeting that check, typically a slow or overloaded Docker host, not a pg-sprite regression.docs/tcb-model.mdno longer sayspgregory.net/rapidis in the module graph;go mod tidydrops its stalego.sumlines, and nothing imports it.go.modmoves. The vulnerability gate passes; its one unreachable module-level finding (golang.org/x/cryptov0.58.0) is already onmain.go testrun, the second starting its first container while the first's reaper idles out (TESTCONTAINERS_RYUK_RECONNECTION_TIMEOUT=1s, the second package waiting 350 to 550 ms). Onv0.45.0, 5 of 15 runs failed with the CI error. With the pin, 0 of 30 failed, and the second package created a fresh reaper instead of waiting on the one being removed.Before / after
The CI job's
pkg/dbconnbinary starts its first container, for the PgBouncer test, while the reaper another package started is being removed.