-
Notifications
You must be signed in to change notification settings - Fork 40.1k
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
sysctl-test: use status reason check instead of events check #103906
Conversation
@pacoxu: GitHub didn't allow me to request PR reviews from the following users: mmiranda96. Note that only kubernetes members and repo collaborators can review this PR, and authors cannot review their own PRs. 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. |
Is the PR WIP or ready to be looked at? Thank you much for the follow up! |
/triage accepted |
Yes. I think it's ready. |
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.
/lgtm
test/e2e/common/node/sysctl.go
Outdated
}) | ||
}) | ||
|
||
// waitForPodFailedReason wait for pod failed reason in status, for example "SysctlForbidden". | ||
func waitForPodFailedReason(f *framework.Framework, pod *v1.Pod, reason string) error { |
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.
nit: I think we should have this sort of helper func somewhere for DRY
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.
Done. Move the func to test/e2e/framework/pod/wait.go and solve the import cycle.
98233d4
to
492315b
Compare
492315b
to
3d96a1d
Compare
…d of events watch Signed-off-by: Paco Xu <paco.xu@daocloud.io>
3d96a1d
to
ddaa346
Compare
/assign @ehashman @fabriziopandini |
@pacoxu: The following tests 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. |
This would be a flake that is caused by the event waiting. |
/lgtm |
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.
again, thank you for the follow up
/lgtm
/approve
/skip
/assign fabriziopandini neolit123 |
i don't have much context on the sysctl / node/common change, but the addition in the framework looks sane. /approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: matthyx, mrunalp, neolit123, pacoxu, SergeyKanzhelev 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 |
/kind bug
/sig node
/cc ehashman @mmiranda96 SergeyKanzhelev
follow up of #101190
safe sysctl
which is not correct and dup with the case below. So I remove it in this PR.should forbid unsafe sysctls
is using event check, it should use pod/container status check instead.