test(storage-postgres): default test pools to a 30 s acquire timeout #64
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
primatekuntech/rag-rust!64
Loading…
Reference in a new issue
No description provided.
Delete branch "test/acquire-timeout"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
Main's Rust job (run 29718) failed
concurrent_sequences_are_contiguous_and_failed_insert_rolls_back_allocationwithErr(Unavailable)on 8 of 20 concurrent appends; another run (29752) failedDatabase::store()withErr(Connection). The test pools use the library defaultacquire_timeoutof 2 s, which queued tasks and a cold pool's SCRAM setup exceed on a loaded runner. Earlier the same class failedtwenty_concurrent_appends_…(audit) and #59's pull-request run.What
Both test
Databasehelpers now defaultconfig()to a 30 sacquire_timeout:tests/common/mod.rsand the private one intests/postgres.rs(the first commit reached only the shared one; the review caught that the failing test uses the private one). Tests that probe timeouts set their own value afterconfig()(postgres.rspool-exhaustion and readiness tests use 1 s). The now-redundant per-test overrides inaudit_postgres.rsanddocuments_registry_postgres.rsare removed. Test-only; production defaults are unchanged.Review
Dual pass done. Ponytail found one Must fix (the private helper in
postgres.rs, fixed in the second commit) and the redundant overrides (removed). Correctness pass: no test relied on the 2 s default to observe a fast failure; 30 s is within the config bounds.Coverage
Workspace line coverage 94.51% (
bash scripts/coverage.sh rust, gate 80%);fmtandclippy -D warningsclean.Not verified
That the
Err(Connection)in run 29752 came from the acquire timeout; the log does not say. If the flake survives this change, the cause is elsewhere (runner Postgres).🤖 Generated with Claude Code