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

Flaky unit test: TestReconcileForCluster #220

Closed
mboersma opened this issue Apr 23, 2024 · 2 comments · Fixed by #223
Closed

Flaky unit test: TestReconcileForCluster #220

mboersma opened this issue Apr 23, 2024 · 2 comments · Fixed by #223
Assignees
Labels
kind/flake Categorizes issue or PR as related to a flaky test.

Comments

@mboersma
Copy link
Contributor

Which jobs are flaking:

On some CI runs for PRs, the TestReconcileForCluster spec is failing, but often succeeds on /retest.

Which tests are flaking:

TestReconcileForCluster/do_not_reconcile_for_a_paused_cluster

ok  	sigs.k8s.io/cluster-api-addon-provider-helm/controllers	9.075s
--- FAIL: TestReconcileForCluster (0.00s)
    --- FAIL: TestReconcileForCluster/do_not_reconcile_for_a_paused_cluster (0.00s)
        helmchartproxy_controller_phases_test.go:321: 
            Expected
                <bool>: true
            to be false
FAIL
FAIL	sigs.k8s.io/cluster-api-addon-provider-helm/controllers/helmchartproxy	0.114s
ok  	sigs.k8s.io/cluster-api-addon-provider-helm/controllers/helmreleaseproxy	0.055s
FAIL
make: *** [Makefile:395: test] Error 1

Testgrid link:

https://prow.k8s.io/view/gs/kubernetes-jenkins/pr-logs/pull/kubernetes-sigs_cluster-api-addon-provider-helm/203/pull-cluster-api-addon-provider-helm-test-main/1782485852740390912

Reason for failure (if possible):

?

Anything else we need to know:

/kind flake

@k8s-ci-robot k8s-ci-robot added the kind/flake Categorizes issue or PR as related to a flaky test. label Apr 23, 2024
@dmvolod
Copy link
Contributor

dmvolod commented Apr 24, 2024

Seems to it's not flaky test as it's always reproduces with go test -count=2 ./controllers/helmchartproxy/... and result from previous run influences with the current one.

@mboersma
Copy link
Contributor Author

/assign

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/flake Categorizes issue or PR as related to a flaky test.
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants