[release-1.11] 🐛 Add wait-resource-versions-{become,remain}-stable intervals to e2e config#13331
Merged
k8s-ci-robot merged 1 commit intokubernetes-sigs:release-1.11from Feb 12, 2026
Conversation
fe51ec4 to
6dc4f41
Compare
Contributor
Author
|
Resolved conflicts with #12848: diff --cc test/e2e/cluster_upgrade_runtimesdk_test.go
index cfe322ba7,77718c87b..000000000
--- a/test/e2e/cluster_upgrade_runtimesdk_test.go
+++ b/test/e2e/cluster_upgrade_runtimesdk_test.go
diff --cc test/framework/resourceversion_helpers.go
index ee79889a8,262363074..000000000
--- a/test/framework/resourceversion_helpers.go
+++ b/test/framework/resourceversion_helpers.go
@@@ -38,8 -46,12 +46,12 @@@ func ValidateResourceVersionStable(ctx
byf("Check resourceVersions are stable")
var previousResourceVersions map[string]string
var previousObjects map[string]client.Object
+ waitToBecomeStable := input.WaitToBecomeStable
+ if len(waitToBecomeStable) == 0 {
- waitToBecomeStable = []any{"2m", "15s"}
++ waitToBecomeStable = []any{"1m", "15s"}
+ }
Eventually(func(g Gomega) {
- objectsWithResourceVersion, objects, err := getObjectsWithResourceVersion(ctx, proxy, namespace, ownerGraphFilterFunction)
+ objectsWithResourceVersion, objects, err := getObjectsWithResourceVersion(ctx, input.ClusterProxy, input.Namespace, input.OwnerGraphFilterFunction)
g.Expect(err).ToNot(HaveOccurred())
defer func() {
@@@ -49,15 -61,19 +61,19 @@@
}()
// This is intentionally failing on the first run.
g.Expect(objectsWithResourceVersion).To(BeComparableTo(previousResourceVersions))
- }, 1*time.Minute, 15*time.Second).Should(Succeed(), "resourceVersions never became stable")
- }, waitToBecomeStable...).MustPassRepeatedly(4).Should(Succeed(), "resourceVersions never became stable")
++ }, waitToBecomeStable...).Should(Succeed(), "resourceVersions never became stable")
// Verify resourceVersions are stable for a while.
byf("Check resourceVersions remain stable")
+ waitToRemainStable := input.WaitToRemainStable
+ if len(waitToRemainStable) == 0 {
- waitToRemainStable = []any{"2m", "5s"}
++ waitToRemainStable = []any{"2m", "15s"}
+ }
Consistently(func(g Gomega) {
- objectsWithResourceVersion, objects, err := getObjectsWithResourceVersion(ctx, proxy, namespace, ownerGraphFilterFunction)
+ objectsWithResourceVersion, objects, err := getObjectsWithResourceVersion(ctx, input.ClusterProxy, input.Namespace, input.OwnerGraphFilterFunction)
g.Expect(err).ToNot(HaveOccurred())
g.Expect(previousResourceVersions).To(BeComparableTo(objectsWithResourceVersion), printObjectDiff(previousObjects, objects))
- }, 2*time.Minute, 15*time.Second).Should(Succeed(), "resourceVersions didn't stay stable")
+ }, waitToRemainStable...).Should(Succeed(), "resourceVersions didn't stay stable")
}
func printObjectDiff(previousObjects, newObjects map[string]client.Object) func() string {
diff --git a/test/e2e/config/docker.yaml b/test/e2e/config/docker.yaml
index 1957704ac..70c48f2e2 100644
--- a/test/e2e/config/docker.yaml
+++ b/test/e2e/config/docker.yaml
@@ -412,8 +412,8 @@ intervals:
default/wait-nodes-ready: ["10m", "10s"]
default/wait-machine-remediation: ["5m", "10s"]
default/wait-autoscaler: ["5m", "10s"]
- default/wait-resource-versions-become-stable: ["2m", "15s"]
- default/wait-resource-versions-remain-stable: ["2m", "5s"]
+ default/wait-resource-versions-become-stable: ["1m", "15s"]
+ default/wait-resource-versions-remain-stable: ["2m", "15s"]
node-drain/wait-deployment-available: ["3m", "10s"]
node-drain/wait-control-plane: ["15m", "10s"]
node-drain/wait-machine-deleted: ["2m", "10s"]/assign @sbueringer |
sbueringer
reviewed
Feb 11, 2026
6dc4f41 to
b4d1ea0
Compare
Member
|
/lgtm |
Member
|
Thx! |
Contributor
|
LGTM label has been added. DetailsGit tree hash: 780ff9dc55df77bbacbc7011cc555ad93a8d0169 |
Contributor
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: sbueringer The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does / why we need it:
Manual cherry-pick of #13263:
Also includes changes from #12848.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)format, will close the issue(s) when PR gets merged):Related to #13262
/area e2e-testing