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 queue readiness probe package #4668

Merged
merged 5 commits into from
Jul 10, 2019

Conversation

joshrider
Copy link
Contributor

Co-authored-by: Shash Reddy shashwathireddy@gmail.com

Supports #4014

Proposed Changes

Release Note

NONE

This PR builds the adapter which converts a user-defined probe to a probe that
will be executed by queue proxy against user container.

Co-authored-by: Shash Reddy <shashwathireddy@gmail.com>
@googlebot
Copy link

So there's good news and bad news.

👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there.

😕 The bad news is that it appears that one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that here in the pull request.

Note to project maintainer: This is a terminal state, meaning the cla/google commit status will not change from this state. It's up to you to confirm consent of all the commit author(s), set the cla label to yes (if enabled on your project), and then merge this pull request when appropriate.

ℹ️ Googlers: Go here for more info.

@googlebot googlebot added the cla: no Indicates the PR's author has not signed the CLA. label Jul 9, 2019
@knative-prow-robot knative-prow-robot added the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label Jul 9, 2019
Copy link
Contributor

@knative-prow-robot knative-prow-robot left a comment

Choose a reason for hiding this comment

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

@joshrider: 1 warning.

In response to this:

Co-authored-by: Shash Reddy shashwathireddy@gmail.com

Supports #4014

Proposed Changes

Release Note

NONE

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.

pkg/queue/readiness/probe.go Outdated Show resolved Hide resolved
@joshrider joshrider changed the title Prep for queue health handler for aggressive retries #4014 Prep for queue health handler for aggressive retries Jul 9, 2019
@joshrider joshrider changed the title Prep for queue health handler for aggressive retries Add queue readiness probe package Jul 9, 2019
@shashwathi
Copy link
Contributor

/assign @mattmoor
/assign @vagababov

Co-authored-by: Shash Reddy <shashwathireddy@gmail.com>
@knative-prow-robot knative-prow-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jul 9, 2019
@knative-prow-robot knative-prow-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jul 9, 2019
pkg/queue/readiness/probe.go Outdated Show resolved Hide resolved
pkg/queue/readiness/probe.go Outdated Show resolved Hide resolved
pkg/queue/readiness/probe.go Outdated Show resolved Hide resolved
pkg/queue/health/probe_test.go Outdated Show resolved Hide resolved
pkg/queue/readiness/probe.go Show resolved Hide resolved
pkg/queue/readiness/probe.go Outdated Show resolved Hide resolved

const (
aggressiveProbeTimeout = 100 * time.Millisecond
// PollTimeout is set equal to the queue-proxy's ExecProbe timeout to take
Copy link
Contributor

Choose a reason for hiding this comment

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

are those used outside the package?

Co-authored-by: Shash Reddy <shashwathireddy@gmail.com>
@knative-metrics-robot
Copy link

The following is the coverage report on pkg/.
Say /test pull-knative-serving-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/queue/readiness/probe.go Do not exist 100.0%
pkg/queue/readiness/probe_encoding.go Do not exist 87.5%

Copy link
Contributor

@vagababov vagababov left a comment

Choose a reason for hiding this comment

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

Just a nit.

@@ -116,7 +116,7 @@ func TestHTTPsSchemeProbeSuccess(t *testing.T) {
}
// Connecting to the server should work
if err := HTTPProbe(config); err != nil {
t.Errorf("Expected probe to succeed but it failed with %v", err)
t.Errorf("Expected probe to succeed but failed with error %v", err)
Copy link
Contributor

Choose a reason for hiding this comment

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

well, I guess this one as well 😄

@shashwathi
Copy link
Contributor

/test pull-knative-serving-integration-tests

@shashwathi
Copy link
Contributor

/test pull-knative-serving-upgrade-tests

Copy link
Member

@mattmoor mattmoor left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@knative-prow-robot knative-prow-robot added lgtm Indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Jul 10, 2019
@mattmoor mattmoor added cla: yes Indicates the PR's author has signed the CLA. and removed approved Indicates a PR has been approved by an approver from all required OWNERS files. cla: no Indicates the PR's author has not signed the CLA. labels Jul 10, 2019
@googlebot
Copy link

A Googler has manually verified that the CLAs look good.

(Googler, please make sure the reason for overriding the CLA status is clearly documented in these comments.)

ℹ️ Googlers: Go here for more info.

@mattmoor
Copy link
Member

/approve

@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: joshrider, mattmoor

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

@knative-prow-robot knative-prow-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 10, 2019
@knative-prow-robot knative-prow-robot merged commit 1a9e50e into knative:master Jul 10, 2019
@joshrider joshrider deleted the probe-readiness branch August 6, 2019 15:17
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. area/networking cla: yes Indicates the PR's author has signed the CLA. lgtm Indicates that a PR is ready to be merged. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants