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

🌱 [e2e framework] Fix race condition when testing ClusterResourceSetBinding #3394

Merged
merged 1 commit into from
Jul 27, 2020

Conversation

detiber
Copy link
Member

@detiber detiber commented Jul 24, 2020

What this PR does / why we need it:

Attempts to fix a race condition in the test framework related to ClusterResourceSetBindings

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jul 24, 2020
@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jul 24, 2020
@detiber
Copy link
Member Author

detiber commented Jul 24, 2020

/assign @sedefsavas

}

if err := input.ClusterProxy.GetClient().Get(ctx, types.NamespacedName{Name: resource.Name, Namespace: input.ClusterResourceSet.Namespace}, configSource); err != nil {
continue
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sedefsavas I'm not overly familiar with these tests, so I wasn't sure if it was intentional that we continued through the loop when the Get for the related Secret/ConfigMap returned an error, so I kept the existing behavior. I'm wondering if this should return false here instead, though.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the resource is missing, CRS will not requeue but retry at each reconcile, because this is not an error. So, we are only interested in seeing the resources that exist to be applied by CRS.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add a comment to that effect?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test is going to be removed totally with this PR: #3332

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we planning to merge that in v0.3.8, or later? If later, I'd prefer to have a comment just in case it stays around for longer

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are changes in providers as well and all need to go in at once.
We are waiting CAPA's next release, there is a change there we need to wait.

@vincepri
Copy link
Member

/milestone v0.3.8

@k8s-ci-robot k8s-ci-robot added this to the v0.3.8 milestone Jul 24, 2020
@sedefsavas
Copy link

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 24, 2020
Copy link
Member

@vincepri vincepri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: vincepri

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

The pull request process is described 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 added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 27, 2020
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 27, 2020
@vincepri
Copy link
Member

/retest

…ding

- Also, update commment on test/framework/clusterresourceset_helpers.go
@vincepri
Copy link
Member

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 27, 2020
@detiber
Copy link
Member Author

detiber commented Jul 27, 2020

/test pull-cluster-api-e2e

e2e failures look like flakes that are not related to this PR: /test pull-cluster-api-e2e

@sedefsavas
Copy link

/test pull-cluster-api-e2e

@k8s-ci-robot k8s-ci-robot merged commit a43a8fd into kubernetes-sigs:master Jul 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants