Return an actual newest version of the directory latest is not available#576
Conversation
knative-prow-robot
left a comment
There was a problem hiding this comment.
@houshengbo: 0 warnings.
Details
In response to this:
Fixes #556
Proposed Changes
Release Note
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.
|
/assign @nak3 |
latest is not availablelatest is not available
nak3
left a comment
There was a problem hiding this comment.
It seems that upgrade test still panicking.
Is it possible to fix the upgrade test by using this change?
Please refer to k8s.log.txt
default/knative-operator-578d98d87b-7tm8x[knative-operator]: panic: runtime error: slice bounds out of range [1:0]
...
default/knative-operator-578d98d87b-7tm8x[knative-operator]: knative.dev/operator/pkg/reconciler/knativeserving/ingress/ingress.go:95 +0x419
...
default/knative-operator-578d98d87b-7tm8x[knative-operator]: knative.dev/operator/pkg/reconciler/knativeserving/ingress/ingress.go:107 +0x57
default/knative-operator-578d98d87b-7tm8x[knative-operator]: knative.dev/operator/pkg/reconciler/common.Stages.Execute(0xc0004a18a8, 0x9, 0x9, 0x201e860, 0xc0009804e0, 0xc001860100, 0x204aa80, 0xc00153b400, 0x0, 0x0)
default/knative-operator-578d98d87b-7tm8x[knative-operator]: knative.dev/operator/pkg/reconciler/common/stages.go:37 +0x83
default/knative-operator-578d98d87b-7tm8x[knative-operator]: knative.dev/operator/pkg/reconciler/knativeserving.(*Reconciler).ReconcileKind(0xc0000f8000, 0x201e860, 0xc0009804e0, 0xc00153b400, 0x0, 0x0)
|
@nak3 I should have added a test on |
I guess that something should be fixed in the upgrade test asides from this fix. |
54c46f4 to
d1a4fae
Compare
d8f925b to
b69f39f
Compare
|
@nak3 I fixes the getIngress function. |
|
Thank you @houshengbo Could you please tell me how to use the |
|
@nak3 Should be no difference. |
|
Hmm... In that case, I think this fix still does not work. I tested it but the release label is upgrade e2e test did not catch this issue as well, so I think upgrade test should be improved. |
|
@nak3 That is what we expected. |
|
@nak3 Here is what I did: Apply the CR: When the CR is ready, check the labels: k get deploy -n knative-serving --show-labels The label is 0.19.0, which means the label matches what I put in the manifests. OK! Check the CM of the net-istio: k get cm config-istio -n knative-serving --show-labels Check the CR: spec.version is latest and status.version is latest as well. Everything seems ok. |
|
Then, I removed the dir Apply the CR: When the CR is ready, check the labels: k get deploy -n knative-serving --show-labels The newest version is 0.22, so the labels are correct. Check the CR: spec.version is latest, status.version is 0.22.0. |
|
Thank you. Okay, I understand the "rule". When |
|
Ingresses need to be in sync with the knative serving structure all the time. Maybe I can change the part for the ingress version, by checking the |
b69f39f to
65b45f2
Compare
|
/assign @knative/operations-writers |
nak3
left a comment
There was a problem hiding this comment.
Thank you @houshengbo
It looks good to me overall but is it not possible to catch the current panic issue #556 (comment) in upgrade test before merging this PR?
If you could improve the upgrade test to catch it, you can prove that this PR surely fixed it and can notice similar issues by causing any future change.
|
@nak3 I can add some logic into this function |
|
That's also good but I mean that current upgrade test prints all "Passed" even though operator keeps causing go panic. It could be a upgrade test bug. We can not fix it? |
|
@nak3 I have no idea why prow does not catch the panic :-( |
|
The following is the coverage report on the affected files.
|
|
/approve |
1 similar comment
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: houshengbo, maximilien 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 |
Fixes #556
Proposed Changes
latestis not available, return the newest actual version instead.