Commit 538c8b2
fix(test): tolerate transient re-acquire failure in instance_lock flake
first_acquirer_succeeds_second_fails_until_first_drops flaked in CI's
heavier all-languages job (panicked: "lock must be acquirable after
release") but never in the lighter verify job running the identical
test/code on the same runner type, and didn't reproduce locally
(30/30 isolated runs, 802/802 under the identical feature set, even
with ulimit -n cut to 10). try_acquire_named collapses any transient
open()/try_lock_exclusive IO error into the same None a genuine
"still locked" result produces, and this assertion had zero retry
tolerance for that — unlike its sibling
acquire_blocking_waits_for_release_then_succeeds, which already
budgets 200ms/2s for the same class of timing slop. Give the final
re-acquire the same tolerance instead of asserting on the first
attempt.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>1 parent e0ef430 commit 538c8b2
1 file changed
Lines changed: 23 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
177 | 199 | | |
178 | 200 | | |
179 | 201 | | |
| |||
0 commit comments