Skip to content
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

fix: Append the error message prior to offloading node status #5043

Merged
merged 5 commits into from
Feb 20, 2021
Merged

fix: Append the error message prior to offloading node status #5043

merged 5 commits into from
Feb 20, 2021

Conversation

terrytangyuan
Copy link
Member

@terrytangyuan terrytangyuan commented Feb 8, 2021

Currently if offloading is not enabled and if the workflow is too large, we will only see offload node status is not supported and the original error message is lost/masked. We'd like to expose that information so users will know their workflow is too large by how much and know what to do next.

Signed-off-by: terrytangyuan terrytangyuan@gmail.com

Checklist:

Signed-off-by: terrytangyuan <terrytangyuan@gmail.com>
simster7
simster7 previously approved these changes Feb 8, 2021
Copy link
Contributor

@alexec alexec left a comment

Choose a reason for hiding this comment

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

I don't understand this fix. This code branch should only even execute if the error is workflow is longer than maximum allowed size..

@terrytangyuan
Copy link
Member Author

terrytangyuan commented Feb 8, 2021

it is impossible for this to happen AFAIK - alwaysOffloadNodeStatus must always false , so the error must be IsTooLargeError

@alexec We are observing error messages like offload node status is not supported in our workflows which confused our users and the original error message is masked. Here's what the new error message looks like (it's the new test case I added in this PR):

workflow is longer than maximum allowed size. compressed size 317 > maxSize 260. Tried to offload but encountered error: offload node status is not supported

I don't understand this fix. This code branch should only even execute if the error is workflow is longer than maximum allowed size..

Perhaps I misunderstood something here but the code would also execute when alwaysOffloadNodeStatus == true.

Copy link
Contributor

@alexec alexec left a comment

Choose a reason for hiding this comment

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

Please sync with master.

@terrytangyuan
Copy link
Member Author

@alexec Rebased but outdated again. I thought rebasing is done after approved and before merging?

@alexec alexec merged commit 0f9b22b into argoproj:master Feb 20, 2021
@terrytangyuan terrytangyuan deleted the better-dehydrate-err-msg branch February 20, 2021 20:16
@simster7 simster7 mentioned this pull request Feb 23, 2021
34 tasks
@simster7 simster7 mentioned this pull request Mar 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants