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

Add e2e tests for OutOfServiceTaint remediation #166

Merged
merged 2 commits into from
Jan 9, 2024

Conversation

k-keiichi-rh
Copy link
Contributor

@k-keiichi-rh k-keiichi-rh commented Nov 29, 2023

This PR is adding a new e2e tests for OutOfServiceTaint remediation strategy based on kubernetes/enhancements#1116.
And openshift/release#47048 depends on this pr.

Copy link
Contributor

openshift-ci bot commented Nov 29, 2023

Hi @k-keiichi-rh. Thanks for your PR.

I'm waiting for a medik8s member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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/test-infra repository.

@mshitrit
Copy link
Member

/test 4.12-openshift-e2e

@k-keiichi-rh
Copy link
Contributor Author

k-keiichi-rh commented Dec 1, 2023

@mshitrit Thank you for running the e2e tests in OCP4.12. The out-of-service taint is not available in OCP4.12. So the e2e test failed.
As you mentioned before, we can skip the e2e test with adding an env param like this in the OCP versions that this feature isn't supported on.

Now we have another way to do same thing using the validation way(IsOutOfServiceTaintSupported) you implemented.

I think the latter way is preferred. What do you think about it?

@mshitrit
Copy link
Member

mshitrit commented Dec 3, 2023

I think I'm leaning into env variable, but I don't have a strong preference so feel free to choose whichever implementation you prefer.

This is what I had in mind:

  • in the test code env variable give more flexibility (e.g we can also turn off this test for a specific supported version if we decide so)
  • implementation seems simpler
  • Once a CI version that doesn't support the taint roll out, there is only an 'if' block in the code to remove instead of the version mechanism.

@k-keiichi-rh
Copy link
Contributor Author

Thank you for the suggestion. I will take the env variable way.
The flexibility and simplicity is the most important thing as you mentioned..

@mshitrit
Copy link
Member

/test 4.14-openshift-e2e

Copy link
Contributor

openshift-ci bot commented Dec 22, 2023

@k-keiichi-rh: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

In response to this:

/test 4.14-openshift-e2e

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/test-infra repository.

@mshitrit
Copy link
Member

/ok-to-test

@mshitrit
Copy link
Member

mshitrit commented Jan 7, 2024

/retest

@mshitrit
Copy link
Member

mshitrit commented Jan 7, 2024

Hi @k-keiichi-rh , as expected 4.12 e2e fails because ci doesn't add the SKIP_OOST_REMEDIATION_VERIFICATION variable.
please create a PR to openshift/release and update the variable here , once tests are clear, I think we could merge.

@slintes
Copy link
Member

slintes commented Jan 8, 2024

openshift/release#47048

@slintes
Copy link
Member

slintes commented Jan 8, 2024

/lgtm
/retest

@mshitrit
Copy link
Member

mshitrit commented Jan 9, 2024

/approved

Copy link
Contributor

openshift-ci bot commented Jan 9, 2024

[APPROVALNOTIFIER] This PR is APPROVED

Approval requirements bypassed by manually added approval.

This pull-request has been approved by: k-keiichi-rh

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

@openshift-merge-bot openshift-merge-bot bot merged commit bb648f6 into medik8s:main Jan 9, 2024
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants