Commit 8e4e43a
OCPBUGS-81751: Fix GatewayClass update conflict in markTestDone
Add retry logic to markTestDone to handle optimistic locking conflicts
when updating GatewayClass annotations. The CIO actively manages the
GatewayClass (updating conditions, status, finalizers) which can cause
409 Conflict errors when tests try to update annotations.
Using RetryOnConflict ensures the test automatically retries with the
latest resourceVersion when concurrent updates occur.
Fixes flake:
Operation cannot be fulfilled on gatewayclasses.gateway.networking.k8s.io
"openshift-default": the object has been modified; please apply your
changes to the latest version and try again
https://redhat.atlassian.net/browse/OCPBUGS-81751
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent c77ff4a commit 8e4e43a
1 file changed
Lines changed: 13 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
1121 | 1122 | | |
1122 | 1123 | | |
1123 | 1124 | | |
1124 | | - | |
1125 | | - | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
1126 | 1130 | | |
1127 | | - | |
1128 | | - | |
1129 | | - | |
1130 | | - | |
1131 | | - | |
| 1131 | + | |
| 1132 | + | |
| 1133 | + | |
| 1134 | + | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
1132 | 1138 | | |
1133 | 1139 | | |
1134 | 1140 | | |
| |||
0 commit comments