-
Notifications
You must be signed in to change notification settings - Fork 1.8k
taskrun: include actual result size in error when exceeding maxResultSize #8869
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
base: main
Are you sure you want to change the base?
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
The following is the coverage report on the affected files.
|
/kind feature |
The following is the coverage report on the affected files.
|
Thank you @a-ateek for this PR. Please consider adding unit tests to cover the proposed changes. |
124cddb
to
10feff0
Compare
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
c9551b4
to
42572d2
Compare
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
@pritidesai Unit tests already existed for this function and now I have adjusted them according to new error message. Thank you for pointing that out. Also rebased the branch. |
/retest |
/retest |
@a-ateek would you mind squashing your commits, rebasing and pushing your branch again ? we have recently removed some gittea tests which might be causing these test failures. Just to eliminate the possiblility a rebase would be great. |
…Size Fixes tektoncd#8868 Previously, when a TaskRun failed due to a result exceeding the maxResultSize, the error message did not include the actual size of the offending result. This makes it harder for users to figure out how much they exceeded the configured limit. This change improves the error message to include the actual size to debug pipelines with large results. lint: use errors.Is for io.EOF check test: adjust unit tests for sidecar logs too large Refactored the underlying function to improve error message, so updated the tests to match the new error message.
42572d2
to
f80e6f0
Compare
The following is the coverage report on the affected files.
|
/retest |
@a-ateek: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
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. |
/ok-to-test |
Fixes #8868
Changes
Previously, when a TaskRun failed due to a result exceeding the maxResultSize, the error message did not include the actual size of the offending result. This makes it harder for users to figure out how much they exceeded the configured limit.
Example:
This change improves the error message to include the actual size to debug pipelines with large results.
Example:
Submitter Checklist
As the author of this PR, please check off the items in this checklist:
/kind <type>
. Valid types are bug, cleanup, design, documentation, feature, flake, misc, question, tepRelease Notes