Skip to content

Adds failure message when container exit code == 0 - #12822

Merged
knative-prow[bot] merged 1 commit into
knative:mainfrom
psschwei:error-message
Apr 14, 2022
Merged

knative-prow[bot] merged 1 commit into
knative:mainfrom
psschwei:error-message

Conversation

@psschwei

@psschwei psschwei commented Apr 6, 2022

Copy link
Copy Markdown
Member

Signed-off-by: Paul S. Schweigert [email protected]

Proposed Changes

Previously, if a container was terminated with an exit code 0, the
status was left blank:

Container failed with: .

This fix adds an exit message for this specific scenario, to hopefully
improve the user experience (i.e. provide some detail as to why the
revision failed).

Fixes #9326

/assign @dprotaso @nader-ziada
(open to suggestions on the wording of the exit message)

Release Note

Revisions that fail when the container exits with exit code 0 now have an exit message included in the revision status.

Signed-off-by: Paul S. Schweigert <[email protected]>

Previously, if a container was terminated with an exit code 0, the
status was left blank:

Container failed with: .

This fix adds an exit message for this specific scenario, to hopefully
improve the user experience (i.e. provide some detail as to why the
revision failed).
@knative-prow knative-prow Bot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. area/API API objects and controllers labels Apr 6, 2022
@codecov

codecov Bot commented Apr 6, 2022 •

Copy link
Copy Markdown

Codecov Report

Merging #12822 (fd9d900) into main (ad15a85) will increase coverage by 0.06%.
The diff coverage is 80.00%.

@@            Coverage Diff             @@
##             main   #12822      +/-   ##
==========================================
+ Coverage   87.44%   87.51%   +0.06%     
==========================================
  Files         196      196              
  Lines        9782    14296    +4514     
==========================================
+ Hits         8554    12511    +3957     
- Misses        938     1494     +556     
- Partials      290      291       +1     
Impacted Files Coverage Δ
pkg/reconciler/revision/reconcile_resources.go 80.80% <28.57%> (+0.07%) ⬆️
pkg/reconciler/autoscaling/hpa/hpa.go 91.66% <88.88%> (+0.49%) ⬆️
pkg/reconciler/autoscaling/config/store.go 100.00% <100.00%> (ø)
pkg/reconciler/autoscaling/kpa/kpa.go 95.18% <100.00%> (+0.06%) ⬆️
pkg/queue/handler.go 90.24% <0.00%> (-3.31%) ⬇️
pkg/autoscaler/statforwarder/leases.go 72.39% <0.00%> (-3.15%) ⬇️
pkg/resources/scale.go 57.14% <0.00%> (-2.86%) ⬇️
pkg/apis/autoscaling/v1alpha1/podscalable_types.go 94.28% <0.00%> (-2.39%) ⬇️
pkg/queue/concurrency_state.go 76.28% <0.00%> (-2.29%) ⬇️
pkg/queue/prometheus_stats_reporter.go 90.74% <0.00%> (-1.57%) ⬇️
... and 190 more

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 4a652f1...fd9d900. Read the comment docs.

@psschwei

psschwei commented Apr 6, 2022

Copy link
Copy Markdown
Member Author

/test istio-latest-no-mesh_serving_main

@nader-ziada

Copy link
Copy Markdown
Member

/lgtm

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

Copy link
Copy Markdown
Member

/lgtm
/approve

@knative-prow

knative-prow Bot commented Apr 14, 2022

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dprotaso, psschwei

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 Apr 14, 2022
@knative-prow
knative-prow Bot merged commit 97f9014 into knative:main Apr 14, 2022
@psschwei
psschwei deleted the error-message branch August 10, 2022 15:47
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 lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

when kn service create fails, there is no container error message

3 participants