Skip to content

Conversation

@ntnn
Copy link
Member

@ntnn ntnn commented Nov 24, 2025

My understanding of the Eventually is that it returns the first time the wrapped Gomega doesn't error.
That means that these tests race the reconciler setting the stomach key to food, so sometimes they can return empty string which then fails the test because the returned value is just empty string.

This moves all of the .Shoudl(Equal( tests inside of the Eventually so these tests don't flake anymore.

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: ntnn
Once this PR has been reviewed and has the lgtm label, please assign skitt for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot requested review from embik and sttts November 24, 2025 12:32
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Nov 24, 2025
@ntnn
Copy link
Member Author

ntnn commented Nov 24, 2025

An example of a failing run: https://github.com/kubernetes-sigs/multicluster-runtime/actions/runs/19634022707/job/56220282989?pr=108

   [FAILED] Timed out after 10.001s.
  Expected
      <string>: 
  to equal
      <string>: food
  In [It] at: /home/runner/work/multicluster-runtime/multicluster-runtime/providers/kubeconfig/provider_test.go:263 @ 11/24/25 12:21:20.198

Signed-off-by: Nelo-T. Wallus <red.brush9525@fastmail.com>
Signed-off-by: Nelo-T. Wallus <n.wallus@sap.com>
@k8s-ci-robot k8s-ci-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Nov 24, 2025
@ntnn
Copy link
Member Author

ntnn commented Nov 25, 2025

Closing, I don't think this will actually fix the flakes. I think the problem is in the provider itself.

@ntnn ntnn closed this Nov 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants