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

Bug 1899941: Add e2e test for liveness override annotation #25828

Merged
merged 1 commit into from Feb 18, 2021

Conversation

ehashman
Copy link
Contributor

@ehashman ehashman commented Jan 26, 2021

Ref: https://bugzilla.redhat.com/show_bug.cgi?id=1899941
Tests openshift/kubernetes#527

Add an e2e test that verifies the liveness override annotation works.

Ran the test 103 times in a while loop on a nightly cluster to tune parameters and verify the fix.

Analyzed data on time elapsed, in seconds:

min 25% 50% 75% max
2.022462378 2.0259687905 2.030493038 16.127785352 24.317637698

I had the timeout threshold set at 25s before but upped to 30s just to be super safe given the max...

/cc @rphillips

@openshift-ci-robot
Copy link

@ehashman: Bugzilla bug 1899941 is in a bug group that is not in the allowed groups for this repo.
Allowed groups for this repo are:

  • qe_staff
  • redhat

In response to this:

Bug 1899941: Add e2e test for liveness override annotation

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.

@ehashman
Copy link
Contributor Author

(CI didn't have the updated kubelet when I pulled this morning, so I'm hoping it has it now or this test will fail across the board)

@rphillips
Copy link
Contributor

/lgtm

Very nice!

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jan 26, 2021
@openshift-ci-robot openshift-ci-robot removed the lgtm Indicates that a PR is ready to be merged. label Jan 26, 2021
@ehashman
Copy link
Contributor Author

flake https://bugzilla.redhat.com/show_bug.cgi?id=1896218
/test e2e-agnostic-cmd

@ehashman
Copy link
Contributor Author

This is my first time adding an e2e -- I'm not actually seeing this test ([sig-node] should override timeoutGracePeriodSeconds when annotation is set [Suite:openshift/conformance/parallel]) as run, is there somewhere that I need to add it?

@ehashman
Copy link
Contributor Author

/retest
for flake

Ryan points out that it did indeed run and pass!

https://gcsweb-ci.apps.ci.l2s4.p1.openshiftapps.com/gcs/origin-ci-test/pr-logs/pull/25828/pull-ci-openshift-origin-master-e2e-gcp/1354194144901206016/artifacts/e2e-gcp/openshift-e2e-test/e2e.log

passed: (12.6s) 2021-01-26T23:16:49 "[sig-node] should override timeoutGracePeriodSeconds when annotation is set [Suite:openshift/conformance/parallel]"

@rphillips
Copy link
Contributor

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jan 27, 2021
@ehashman
Copy link
Contributor Author

/assign @smarterclayton

can you PTAL? :)

@ehashman
Copy link
Contributor Author

/retest

2 similar comments
@ehashman
Copy link
Contributor Author

/retest

@nee1esh
Copy link

nee1esh commented Jan 28, 2021

/retest

@frobware
Copy link
Contributor

@ehashman
Copy link
Contributor Author

We might just need to override this test, it's not passing for anyone. See: https://prow.ci.openshift.org/job-history/gs/origin-ci-test/pr-logs/directory/pull-ci-openshift-origin-master-e2e-agnostic-cmd

@nee1esh
Copy link

nee1esh commented Jan 29, 2021

We might just need to override this test, it's not passing for anyone. See: https://prow.ci.openshift.org/job-history/gs/origin-ci-test/pr-logs/directory/pull-ci-openshift-origin-master-e2e-agnostic-cmd

Just found that the test is not blocking for this repo. Just get approval and PR will merge.

g.By("creating the pod")
podName := naming.GetPodName("pod-liveness-override", string(uuid.NewUUID()))
pod := e2epod.NewAgnhostPod(f.Namespace.Name, podName, nil, nil, nil, "bash", "-c", "sleep 1000")
gracePeriod := int64(60)
Copy link
Contributor

Choose a reason for hiding this comment

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

Set the pod level much much higher so it's super obvious when it fails - 5 or 10m?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@openshift-ci-robot openshift-ci-robot removed the lgtm Indicates that a PR is ready to be merged. label Jan 29, 2021
@ehashman
Copy link
Contributor Author

/retest

1 similar comment
@frobware
Copy link
Contributor

frobware commented Feb 1, 2021

/retest

@ehashman
Copy link
Contributor Author

ehashman commented Feb 1, 2021

@smarterclayton made requested changes and tests are passing, PTAL

@nee1esh
Copy link

nee1esh commented Feb 2, 2021

/bugzilla refresh

@openshift-ci-robot
Copy link

@nee1esh: Bugzilla bug 1899941 is in a bug group that is not in the allowed groups for this repo.
Allowed groups for this repo are:

  • qe_staff
  • redhat

In response to this:

/bugzilla refresh

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.

@mrunalp mrunalp added the bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. label Feb 2, 2021
@rphillips
Copy link
Contributor

/retest
/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Feb 11, 2021
@smarterclayton
Copy link
Contributor

/lgtm

@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ehashman, rphillips, smarterclayton

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-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 17, 2021
@ehashman
Copy link
Contributor Author

/retest

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

12 similar comments
@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

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. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

9 participants