fix(tests): flaky audit integration tests on transient pool timeouts - #152
Merged
Conversation
Retry transient SQLx pool acquisition failures during audit projection polling and configure the Postgres test container with an effective max_connections setting. Tests: cargo fmt --all -- --check Tests: cargo check -p integration-tests --tests Tests: cargo clippy -p integration-tests --tests -- -D warnings Tests: cargo test -p integration-tests --test audit_cross_cutting_tests Co-authored-by: gpt-5.6-luna (opencode-go)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes the intermittent SQLx connection-pool timeout failures in the Tier-4 audit integration tests described in #149.
Changes
PoolTimedOuterrors inawait_audit_rowsandawait_audit_by_seriesuntilPROJECTION_DEADLINE.read_provenance.-c max_connections=600; the official Postgres image ignoresPOSTGRES_MAX_CONNECTIONS.Validation
cargo fmt --all -- --checkgit diff --checkcargo check -p integration-tests --testscargo clippy -p integration-tests --tests -- -D warningscargo test -p integration-tests --test audit_cross_cutting_testsCloses #149
Co-authored-by: gpt-5.6-luna (opencode-go)