Skip to content

test(e2e): retry security override calls on a 409 conflict - #1108

Merged
ValgulNecron merged 1 commit into
masterfrom
fix/master-ci-security-override-409
Nov 26, 2026
Merged

ValgulNecron merged 1 commit into
masterfrom
fix/master-ci-security-override-409

Conversation

@ValgulNecron

Copy link
Copy Markdown
Collaborator

Summary

Master went red on 55e2c60 (#1107 merge): e2e operator / arm64 (kind) failed only TestAPI_SecurityOverride_PermissionAndRootRule at api_security_override_e2e_test.go:198:

root value with switch on: status=409 want=200 body=conflict, retry

The test reads the GameServer's resourceVersion to 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 expect helper 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 fresh resourceVersion, on each try. Every final status != want check 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 ./ in test/e2e: OK
  • CI is the verdict.

Generated by Claude Code

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>
@ValgulNecron ValgulNecron added area: e2e kind-based end-to-end suite type: test Test additions or changes labels Nov 25, 2026 — with Claude
@ValgulNecron ValgulNecron self-assigned this Nov 25, 2026
@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 55e2c60 and eb0ada9.

Files selected for processing: 1

  • test/e2e/api_security_override_e2e_test.go
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@github-actions

Copy link
Copy Markdown

CI Report - eb0ada9

run 45720604684 - attempt 1

0 failed - 12 passed - 21 skipped - 23m8s elapsed

Test selection: partial - per-suite table

Coverage

no coverage/* commit statuses found on eb0ada9

Changed

Area Files +/-
test/ 1 +17/-5

Slowest jobs

Job Duration
e2e postgres / amd64 (kind) 20m34s
build e2e images (arm64) 3m41s
e2e operator / arm64 (kind) 3m11s
e2e operator / amd64 (kind) 2m55s
lint (test/e2e) 2m16s

e2e buckets run

api-agent, api-auth, api-mods, api-rbac, api-roles, backup-preparation, management-placement, monitoring, multicluster, network-isolation, operator, optional-components, postgres-availability, postgres-ha, postgres-pitr, restricted-workloads, sftp, telemetry, upgrade

@ValgulNecron
ValgulNecron marked this pull request as ready for review November 25, 2026 23:44
@ValgulNecron
ValgulNecron merged commit 62e2fbb into master Nov 26, 2026
63 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: e2e kind-based end-to-end suite type: test Test additions or changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants