Skip to content

fix(tests): flaky audit integration tests on transient pool timeouts - #152

Merged
tradem merged 1 commit into
mainfrom
fix/issue-149-audit-pool-timeout
Aug 1, 2026
Merged

fix(tests): flaky audit integration tests on transient pool timeouts#152
tradem merged 1 commit into
mainfrom
fix/issue-149-audit-pool-timeout

Conversation

@tradem

@tradem tradem commented Aug 1, 2026

Copy link
Copy Markdown
Owner

Summary

Fixes the intermittent SQLx connection-pool timeout failures in the Tier-4 audit integration tests described in #149.

Changes

  • Retry transient PoolTimedOut errors in await_audit_rows and await_audit_by_series until PROJECTION_DEADLINE.
  • Apply the same bounded retry behavior to read_provenance.
  • Configure the Postgres test container with -c max_connections=600; the official Postgres image ignores POSTGRES_MAX_CONNECTIONS.

Validation

  • cargo fmt --all -- --check
  • git diff --check
  • cargo check -p integration-tests --tests
  • cargo clippy -p integration-tests --tests -- -D warnings
  • cargo test -p integration-tests --test audit_cross_cutting_tests
  • The complete audit test file passed in three consecutive runs.

Closes #149

Co-authored-by: gpt-5.6-luna (opencode-go)

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)
@tradem tradem changed the title Fix flaky audit integration tests on transient pool timeouts fix(tests): flaky audit integration tests on transient pool timeouts Aug 1, 2026
@tradem
tradem merged commit 9484dba into main Aug 1, 2026
12 checks passed
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.

Flaky integration test: non_membership_audit_projector_is_idempotent_under_redelivery (sqlx pool timeout)

1 participant