-
Notifications
You must be signed in to change notification settings - Fork 263
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 an update timestamp to trigger the creation of a revision when needed. #1364
Conversation
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.
@rhuss: 3 warnings.
In response to this:
Add an update timestamp anytime a new revision should be triggered. Previously client-side revision names were this trigger but since we switched to server-side revision naming by default that didn't work anymore (and hasn't worked with server-side revision naming before, too).
Fixes #1318.
/lint
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.
@@ -41,8 +41,9 @@ const ( | |||
) | |||
|
|||
var ( | |||
UserImageAnnotationKey = "client.knative.dev/user-image" | |||
ApiTooOldError = errors.New("the service is using too old of an API format for the operation") | |||
UserImageAnnotationKey = "client.knative.dev/user-image" |
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.
Golint comments: exported var UserImageAnnotationKey should have comment or be unexported. More info.
Codecov Report
@@ Coverage Diff @@
## main #1364 +/- ##
==========================================
+ Coverage 78.23% 78.33% +0.09%
==========================================
Files 160 160
Lines 8246 8270 +24
==========================================
+ Hits 6451 6478 +27
+ Misses 1104 1103 -1
+ Partials 691 689 -2
Continue to review full report at Codecov.
|
All (the pull request submitter and all commit authors) CLAs are signed, but 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 by leaving a comment that contains only Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the ℹ️ Googlers: Go here for more info. |
All (the pull request submitter and all commit authors) CLAs are signed, but 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 by leaving a comment that contains only Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the ℹ️ Googlers: Go here for more info. |
1 similar comment
All (the pull request submitter and all commit authors) CLAs are signed, but 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 by leaving a comment that contains only Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the ℹ️ Googlers: Go here for more info. |
…eviously client side revision names was this trigger but since we switched to server-side revision naming by default that didn't work anymore (and hasn't worked with server-side revision naming before, too). Fixes knative#1318.
/retest |
/retest |
@dsimansk PTAL, added some tests and addressed the error return value issue. |
@rhuss looks good. However lint check isn't happy.
|
@dsimansk thanks for the review. Really would love to catch those lint errors with our build script. Any idea ? |
Agreed, we should add it to the script. The initial run may take a bit longer ~20s, but then cache will speed subsequent runs up significantly. And it's a matter of executing:
|
The following is the coverage report on the affected files.
|
Thanks! /approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dsimansk, rhuss 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 |
Add an update timestamp anytime a new revision should be triggered. Previously client-side revision names were this trigger but since we switched to server-side revision naming by default that didn't work anymore (and hasn't worked with server-side revision naming before, too).
Fixes #1318.
/lint