Skip to content

test: widen the ttl window for the Postgres at-rest cases - #533

Merged
fede-kamel merged 1 commit into
mainfrom
test/postgres-at-rest-ttl-margin
Nov 17, 2026
Merged

fede-kamel merged 1 commit into
mainfrom
test/postgres-at-rest-ttl-margin

Conversation

@fede-kamel

Copy link
Copy Markdown
Member

Summary

TestPostgresAtRest (both the adapter and the native PgCheckpointer case) saved with a 0.3-second ttl and slept 0.4 seconds before asserting expiry. The first save on a fresh table also runs the DDL under the advisory lock, and the expiry is stamped before it, so under CI load the row had already run out when the asserts read it back; on the 6.0.0 release PR cp.list("t") returned nothing. Same cause and same remedy as #529: the cases now save with a 1.5-second ttl and wait 1.5 times that.

Testing

Both cases ran three times in a row against a local PostgreSQL 17, all green; ruff clean. Test-only change.

Both at-rest cases saved with a 0.3 s ttl and slept 0.4 s before asserting
expiry. The first save on a fresh table also runs the DDL under the
advisory lock and the expiry is stamped before it, so under CI load the
row had already run out when the asserts read it back (seen on the 6.0.0
release PR: list() returned nothing). They now save with 1.5 s and wait
1.5 times that.

Signed-off-by: Federico Kamelhar <federico.kamelhar@oracle.com>
@oracle-contributor-agreement oracle-contributor-agreement Bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Nov 17, 2026
@fede-kamel
fede-kamel merged commit 3c49361 into main Nov 17, 2026
15 checks passed
@fede-kamel
fede-kamel deleted the test/postgres-at-rest-ttl-margin branch November 17, 2026 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant