Skip to content

Relax the "timeout" requirement for TestProbeRuntimeAfterStartup - #13026

Merged
knative-prow[bot] merged 1 commit into
knative:mainfrom
mattmoor:relax-probe-conformance
Jun 14, 2022
Merged

knative-prow[bot] merged 1 commit into
knative:mainfrom
mattmoor:relax-probe-conformance

Conversation

@mattmoor

Copy link
Copy Markdown
Contributor

Currently the TestProbeRuntimeAfterStartup conformance test requires
that implementations match exactly the semantics of the Knative default
configuration, which feels disconnected from the purpose of conformance.

At an example, if I configure Knative slightly differently, so that the
activator isn't in the request path (TBC=0), then the failure mode of
this test changes from timing out to serving 503s (what K8s would do).

This touches on the point Julz was making in #10765 where the current
behavior of timing out is an unfortunate departure from K8s semantics,
but only when TBC>0.

This change allows 503s as an acceptable failure mode of this conformance
test.

Release Note


/cc @dprotaso
/assign @dprotaso

Currently the `TestProbeRuntimeAfterStartup` conformance test requires
that implementations match exactly the semantics of the Knative default
configuration, which feels disconnected from the purpose of conformance.

At an example, if I configure Knative slightly differently, so that the
activator isn't in the request path (TBC=0), then the failure mode of
this test changes from timing out to serving 503s (what K8s would do).

This touches on the point Julz was making in knative#10765 where the current
behavior of timing out is an unfortunate departure from K8s semantics,
but only when TBC>0.

This change allows 503s as an acceptable failure mode of this conformance
test.
@knative-prow
knative-prow Bot requested a review from dprotaso June 12, 2022 18:51
@knative-prow knative-prow Bot added area/test-and-release It flags unit/e2e/conformance/perf test issues for product features size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jun 12, 2022
@codecov

codecov Bot commented Jun 12, 2022 •

Copy link
Copy Markdown

Codecov Report

Merging #13026 (85b1d34) into main (2f7b6db) will decrease coverage by 0.00%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main   #13026      +/-   ##
==========================================
- Coverage   87.03%   87.02%   -0.01%     
==========================================
  Files         197      197              
  Lines       14439    14439              
==========================================
- Hits        12567    12566       -1     
  Misses       1578     1578              
- Partials      294      295       +1     
Impacted Files Coverage Δ
pkg/reconciler/configuration/configuration.go 83.67% <0.00%> (-1.54%) ⬇️
pkg/autoscaler/statserver/server.go 79.25% <0.00%> (+1.48%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2f7b6db...85b1d34. Read the comment docs.

@mattmoor

Copy link
Copy Markdown
Contributor Author

Can't rerun the actions leg, but it is in an unrelated test, so a flake.

@psschwei psschwei left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Seems fine to me, but since it's a conformance change will leave final approval for @dprotaso

@evankanderson evankanderson left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm not sure we need this conformance test at all -- it seems like it would be properly conformant to start a new pod if the existing Pods are all reporting not-Ready, unless someone can point to a part of the spec that says that an implementation shouldn't spin up a new instance if there are no existing Ready instance but some instances were previously Ready.

@evankanderson

Copy link
Copy Markdown
Member

/lgtm
/approve

@knative-prow knative-prow Bot added the lgtm Indicates that a PR is ready to be merged. label Jun 14, 2022
@knative-prow

knative-prow Bot commented Jun 14, 2022

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: evankanderson, 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 knative-prow Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 14, 2022
@knative-prow
knative-prow Bot merged commit 7c2b46d into knative:main Jun 14, 2022
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/test-and-release It flags unit/e2e/conformance/perf test issues for product features lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants