Repository navigation
return unexpected apply traffic error - #8285
Conversation
Signed-off-by: RyderXia <[email protected]>
|
We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google. ℹ️ Googlers: Go here for more info. |
knative-prow-robot
left a comment
There was a problem hiding this comment.
@runzexia: 0 warnings.
Details
In response to this:
Signed-off-by: RyderXia [email protected]
Fix could not get unexpected error in
applySpecTraffic
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.
|
Welcome @runzexia! It looks like this is your first PR to knative/serving 🎉 |
|
Hi @runzexia. Thanks for your PR. I'm waiting for a knative member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions 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. |
|
/ok-to-test |
|
/lgtm |
|
@nak3 Yes, I can sign the CLA, which will take some time. |
|
@googlebot I fixed it.. |
|
CLAs look good, thanks! ℹ️ Googlers: Go here for more info. |
shashwathi
left a comment
There was a problem hiding this comment.
Can you add an unit test for this case?
@shashwathi |
|
You can test by passing invalid input, e.g. un ready revision |
|
@vagababov |
|
you can probably use a revision that does not exist. That would trigger a not found error. |
|
Not Found err would be convert to TargetError. serving/pkg/reconciler/route/traffic/traffic.go Lines 182 to 184 in a08b015 serving/pkg/reconciler/route/traffic/traffic.go Lines 195 to 197 in a08b015 Unready error also would be convert to TargetError. serving/pkg/reconciler/route/traffic/traffic.go Lines 248 to 250 in a08b015 serving/pkg/reconciler/route/traffic/traffic.go Lines 272 to 274 in a08b015 And TargetError would be handle by this serving/pkg/reconciler/route/traffic/traffic.go Lines 232 to 237 in a08b015 I think only serving/pkg/reconciler/route/traffic/traffic.go Lines 184 to 186 in a08b015 and serving/pkg/reconciler/route/traffic/traffic.go Lines 197 to 200 in a08b015 would be return by err. |
…rror Add test case for pull/8285
|
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. |
| t.Errorf("Expected %s, saw %s", apiErr.Error(), err.Error()) | ||
| } else if err == nil { | ||
| t.Errorf("Expected %s, saw no error", apiErr.Error()) |
There was a problem hiding this comment.
Got before want (.e.g err=%s, want: %s).
|
/retest |
|
@googlebot I consent I guess Google CLA complains because of a3951f4. Let's see my consent comment. |
|
@googlebot I consent. |
|
CLAs look good, thanks! ℹ️ Googlers: Go here for more info. |
|
The following jobs failed:
Failed non-flaky tests preventing automatic retry of pull-knative-serving-integration-tests: |
|
The following is the coverage report on the affected files.
|
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: runzexia, vagababov The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Signed-off-by: RyderXia [email protected]
Fix could not get unexpected error in
applySpecTraffic