Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TestMachineSetReconciler is flaky #11722

Closed
sbueringer opened this issue Jan 21, 2025 · 10 comments · Fixed by #11728
Closed

TestMachineSetReconciler is flaky #11722

sbueringer opened this issue Jan 21, 2025 · 10 comments · Fixed by #11728
Assignees
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/flake Categorizes issue or PR as related to a flaky test. priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete. triage/accepted Indicates an issue or PR is ready to be actively worked on.

Comments

@sbueringer
Copy link
Member

Which jobs are flaking?

At least pull-cluster-api-test-main

Which tests are flaking?

sigs.k8s.io/cluster-api/internal/controllers/machineset: TestMachineSetReconciler_syncReplicas_WithErrors/should_hold_off_on_sync_replicas_when_create_Infrastructure_of_machine_failed_

Since when has it been flaking?

Since we merged this unit test

Testgrid link

No response

Reason for failure (if possible)

The race detector found a data race: https://prow.k8s.io/view/gs/kubernetes-ci-logs/pr-logs/pull/kubernetes-sigs_cluster-api/11718/pull-cluster-api-test-main/1881643904957157376

Anything else we need to know?

Test was merged just yesterday

Label(s) to be applied

/kind flake
One or more /area label. See https://github.com/kubernetes-sigs/cluster-api/labels?q=area for the list of labels.

@k8s-ci-robot k8s-ci-robot added the kind/flake Categorizes issue or PR as related to a flaky test. label Jan 21, 2025
@sbueringer
Copy link
Member Author

/help

@k8s-ci-robot
Copy link
Contributor

@sbueringer:
This request has been marked as needing help from a contributor.

Guidelines

Please ensure that the issue body includes answers to the following questions:

  • Why are we solving this issue?
  • To address this issue, are there any code changes? If there are code changes, what needs to be done in the code and what places can the assignee treat as reference points?
  • Does this issue have zero to low barrier of entry?
  • How can the assignee reach out to you for help?

For more details on the requirements of such an issue, please see here and ensure that they are met.

If this request no longer meets these requirements, the label can be removed
by commenting with the /remove-help command.

In response to this:

/help

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@k8s-ci-robot k8s-ci-robot added help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. needs-priority Indicates an issue lacks a `priority/foo` label and requires one. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Jan 21, 2025
@sbueringer
Copy link
Member Author

/triage accepted
/priority important-longterm

Probably we just have to use a separate scheme for TestMachineSetReconciler_syncReplicas_WithErrors

@k8s-ci-robot k8s-ci-robot added triage/accepted Indicates an issue or PR is ready to be actively worked on. priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete. and removed needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. needs-priority Indicates an issue lacks a `priority/foo` label and requires one. labels Jan 21, 2025
@Karthik-K-N
Copy link
Contributor

I will work on it if no one started yet.

@enxebre
Copy link
Member

enxebre commented Jan 21, 2025

/assign @Karthik-K-N

@Karthik-K-N
Copy link
Contributor

Even after using -race flag not able to reproduce locally, Any tips?

@sbueringer
Copy link
Member Author

sbueringer commented Jan 21, 2025

Not sure, probably just not happening that often or only with CPU starvation. I think in general it's fine to just see if we can use a separate scheme for this unit test (+ then check via periodics in Prow over time if the flaky test goes away)

(you can check some other tests / places how we create a fake client with a scheme)

@Karthik-K-N
Copy link
Contributor

Got the point, will do thanks.

@cprivitere
Copy link
Member

cprivitere commented Jan 21, 2025

The test this PR is about was added in PR: #11211

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/flake Categorizes issue or PR as related to a flaky test. priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete. triage/accepted Indicates an issue or PR is ready to be actively worked on.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants