-
Notifications
You must be signed in to change notification settings - Fork 41.5k
e2e: skip checking the removal of group path if not permitted #121986
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
Conversation
Test runners like sonobuoy may not have the permission to read the root path. Skip checking the removal of the group path in that case. Signed-off-by: Quan Tian <qtian@vmware.com>
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: tnqn 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 |
@tnqn: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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. I understand the commands that are listed here. |
SetHeader("Accept", "application/json").DoRaw(ctx) | ||
if err != nil { | ||
if apierrors.IsForbidden(err) { | ||
framework.Logf("Skip checking the removal of the group path due to lack of permission of reading the root path") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
conformance tests may not skip.
the whole point of conformance tests is to be required of all clusters.
/hold
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agreed we should not skip. I opened #122129 as an alternative that reverts the conformance change and validates the bugfix in an integration test instead
/triage accepted |
/close alternative fixes discussed in #121985 (comment) |
@liggitt: Closed this PR. In response to this:
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. |
What type of PR is this?
/kind cleanup
/kind failing-test
What this PR does / why we need it:
#121283 added the check of the removal of the group path to an e2e test. However, test runners like sonobuoy may not have the permission to read the root path. Skip checking the removal of the group path in that case.
With the patch, the test can succeed when running with sonobuoy:
Which issue(s) this PR fixes:
Fixes #121985
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: