Skip to content

test: the exactly-once test keeps its leases on a slow CI machine - #29

Merged
giraffesyo merged 1 commit into
canaryfrom
test/lease-tolerant-exactly-once
Oct 1, 2026
Merged

giraffesyo merged 1 commit into
canaryfrom
test/lease-tolerant-exactly-once

Conversation

@giraffesyo

Copy link
Copy Markdown
Member

TestConcurrentClientsFinalizeExactlyOnce failed once on the Postgres 17 job of the 0.2.0 release PR's CI run: 10 of 2,000 jobs ran twice and history showed 7 distinct clients instead of 4. That is three clients losing their two-second test lease on a loaded runner, being fenced, and having their running jobs rescued and re-run elsewhere: at-least-once under lease loss, exactly as designed, but not what this test is about.

The test now starts its four clients with a one-minute lease (renewed every five seconds) through a new startedWith harness helper, so its outcome depends on the finalize path alone. The fencing tests keep the short lease they need. Passes locally three times in a row with -race; the rerun of the failed job also passed, as expected of a timing flake.

@giraffesyo
giraffesyo merged commit c6efd08 into canary Oct 1, 2026
8 checks passed
@giraffesyo
giraffesyo deleted the test/lease-tolerant-exactly-once branch October 1, 2026 14:34
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.

1 participant