Repository navigation
test(e2e): retry security override calls on a 409 conflict - #1108
Conversation
The operator writes GameServer status after each update, so the resourceVersion read for the next PUT can go stale and the API answers 409 "conflict, retry". Repeat the call with a fresh body on 409 (up to 5 tries), as a real client does; every final status check is unchanged. Fixes the red e2e operator / arm64 job on master 55e2c60. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Claude <noreply@anthropic.com>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 51 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
CI Report - eb0ada9run 45720604684 - attempt 1 0 failed - 12 passed - 21 skipped - 23m8s elapsed Test selection: partial - per-suite table Coverageno coverage/* commit statuses found on eb0ada9 Changed
Slowest jobs
e2e buckets run
|
Summary
Master went red on 55e2c60 (#1107 merge):
e2e operator / arm64 (kind)failed onlyTestAPI_SecurityOverride_PermissionAndRootRuleatapi_security_override_e2e_test.go:198:The test reads the GameServer's
resourceVersionto build each PUT body (securityServerBody). The operator writes the GameServer status after the previous update, so that version can go stale before the PUT lands, and the API answers 409 "conflict, retry", as it is meant to. The same bucket passed on #1107's own head 0f2d725, so this is a race, not a regression.Change
The test's
expecthelper now repeats a call that returns 409 (up to 5 tries, 1s apart) unless 409 is the expected status. Every closure rebuilds its body, including a freshresourceVersion, on each try. Every finalstatus != wantcheck is unchanged.A fresh agent peer-reviewed the test diff on its own and judged it "only replaced": no assertion was removed or loosened.
No changelog entry because the change is test-only.
Verification
go vet -tags e2e ./intest/e2e: OKGenerated by Claude Code