Skip to content

Use retries from knative/pkg and add UTs to reconcilers that use retries#6657

Merged
knative-prow-robot merged 9 commits intoknative:masterfrom
nlopezgi:retriesFromUpstream
Feb 7, 2020
Merged

Use retries from knative/pkg and add UTs to reconcilers that use retries#6657
knative-prow-robot merged 9 commits intoknative:masterfrom
nlopezgi:retriesFromUpstream

Conversation

@nlopezgi
Copy link
Copy Markdown
Contributor

@nlopezgi nlopezgi commented Jan 28, 2020

Followup to #6162

Proposed Changes

@googlebot googlebot added the cla: yes Indicates the PR's author has signed the CLA. label Jan 28, 2020
@knative-prow-robot knative-prow-robot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Jan 28, 2020
Copy link
Copy Markdown
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.

@nlopezgi: 0 warnings.

Details

In response to this:

Followup to #6162

Proposed Changes

  • As part of google/knative-gcp#508 (which is similar to #6162) I sent knative/pkg#1008 adding the retry.go logic to knative/pkg. This PR uses new the retry.go in knative/pkg, removes the retry.go from this repo.

  • This PR also adds unit tests to reconcilers that actually validate the retry functionality (similar to how they were added in google/knative-gcp#508)

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/reconciler/autoscaling/kpa/kpa_test.go Outdated
@nlopezgi nlopezgi force-pushed the retriesFromUpstream branch from 11cc7ca to e0f5f3f Compare January 29, 2020 15:19
@knative-prow-robot knative-prow-robot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Jan 29, 2020
@nlopezgi nlopezgi force-pushed the retriesFromUpstream branch 2 times, most recently from 9a76e6b to f6ec42d Compare January 29, 2020 15:48
@nlopezgi nlopezgi force-pushed the retriesFromUpstream branch from f6ec42d to f6c4ea3 Compare January 29, 2020 15:49
@knative-prow-robot knative-prow-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Jan 29, 2020
Comment thread pkg/reconciler/autoscaling/hpa/hpa_test.go Outdated
Copy link
Copy Markdown
Contributor

@markusthoemmes markusthoemmes left a comment

Choose a reason for hiding this comment

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

The test method is super smart, I LOVE that! 😍

Comment thread pkg/reconciler/autoscaling/hpa/hpa_test.go Outdated
@nlopezgi
Copy link
Copy Markdown
Contributor Author

thanks for the detailed feedback @markusthoemmes and @taragu. PTAL .

Copy link
Copy Markdown
Contributor

@markusthoemmes markusthoemmes left a comment

Choose a reason for hiding this comment

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

One last nugget :)

Comment thread pkg/reconciler/certificate/certificate.go
@nlopezgi
Copy link
Copy Markdown
Contributor Author

One last nugget :)

done, thanks, thought I had removed them.

@knative-test-reporter-robot
Copy link
Copy Markdown

The following jobs failed:

Test name Triggers Retries
pull-knative-serving-unit-tests 0/3

Failed non-flaky tests preventing automatic retry of pull-knative-serving-unit-tests:

pkg/reconciler/service.[build failed]

@knative-metrics-robot
Copy link
Copy Markdown

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

File Old Coverage New Coverage Delta
pkg/reconciler/certificate/certificate.go 87.9% 89.7% 1.7
pkg/reconciler/configuration/configuration.go 85.9% 87.2% 1.3
pkg/reconciler/ingress/ingress.go 84.1% 85.2% 1.1
pkg/reconciler/metric/metric.go 87.8% 92.7% 4.9
pkg/reconciler/serverlessservice/serverlessservice.go 94.0% 95.2% 1.2
pkg/reconciler/service/service.go 88.3% 89.5% 1.2

@markusthoemmes
Copy link
Copy Markdown
Contributor

/retest

Copy link
Copy Markdown
Contributor

@markusthoemmes markusthoemmes 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

Thanks! 🎉

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Jan 30, 2020
@nlopezgi
Copy link
Copy Markdown
Contributor Author

/assign @evankanderson

@markusthoemmes
Copy link
Copy Markdown
Contributor

/assign @mattmoor

For the Gopkg stuff.

@nlopezgi
Copy link
Copy Markdown
Contributor Author

nlopezgi commented Feb 4, 2020

@mattmoor could you please review and let me know if anything is pending here. Thanks!

@evankanderson
Copy link
Copy Markdown
Member

/approve
/lgtm

@knative-prow-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: evankanderson, markusthoemmes, nlopezgi

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 Feb 7, 2020
@knative-prow-robot knative-prow-robot merged commit 1c0f9ab into knative:master Feb 7, 2020
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/API API objects and controllers area/autoscale area/networking cla: yes Indicates the PR's author has signed the CLA. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants