Skip to content

Add queue readiness probe package - #4668

Merged
knative-prow-robot merged 5 commits into
knative:masterfrom
joshrider:probe-readiness
Jul 10, 2019
Merged

knative-prow-robot merged 5 commits into
knative:masterfrom
joshrider:probe-readiness

Conversation

@joshrider

Copy link
Copy Markdown
Contributor

Co-authored-by: Shash Reddy [email protected]

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 <[email protected]>
@googlebot

Copy link
Copy Markdown

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

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@joshrider: 1 warning.

Details

In response to this:

Co-authored-by: Shash Reddy [email protected]

Supports #4014

Proposed Changes

  • Package to support addition of user-defined ReadinessProbes executed by the queue-proxy against the user-container
  • Will be used in PRs to follow
  • See #4600 for reference

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.

Comment thread pkg/queue/readiness/probe.go 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
Copy Markdown
Contributor

/assign @mattmoor
/assign @vagababov

Comment thread pkg/queue/readiness/probe.go Resolved
Co-authored-by: Shash Reddy <[email protected]>
@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
Comment thread pkg/queue/readiness/probe.go Resolved
Comment thread pkg/queue/readiness/probe.go Resolved
Comment thread pkg/queue/readiness/probe.go Resolved
Comment thread pkg/queue/health/probe_test.go Resolved
Comment thread pkg/queue/readiness/probe.go Resolved
Comment thread pkg/queue/readiness/probe.go Resolved

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

Copy link
Copy Markdown
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?

@knative-metrics-robot

Copy link
Copy Markdown

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%

@vagababov vagababov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Just a nit.

// 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
Copy Markdown
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
Copy Markdown
Contributor

/test pull-knative-serving-integration-tests

@shashwathi

Copy link
Copy Markdown
Contributor

/test pull-knative-serving-upgrade-tests

@mattmoor mattmoor left a comment

Copy link
Copy Markdown
Contributor

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
Copy Markdown

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
Copy Markdown
Contributor

/approve

@knative-prow-robot

Copy link
Copy Markdown
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

Details 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