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

vdk-core: platform error no longer logged when skipping execution steps #1223

Merged
merged 5 commits into from
Oct 6, 2022

Conversation

mrMoZ1
Copy link
Contributor

@mrMoZ1 mrMoZ1 commented Oct 5, 2022

what: Changed the call to the errors.log_and_rethrow method for
a simple log statement and re-raising the exception when the
CancelRemainingSteps exception is raised.

why: Users reading the logs might be confused by the statement,
which assumes a platform error occurred. Recently reverted changes
to the error handling also made jobs using this feature fail with
platform errors since the log_and_rethrow method tripped the
internal logic and made the writer plugin write a platform error
termination message.

testing: Expanded unit test to cover the termination plugin when using
the skip_remaining_steps() functionality.

@mrMoZ1 mrMoZ1 changed the title vdk-core: platform error no longer logged when skipping execution vdk-core: platform error no longer logged when skipping execution steps Oct 5, 2022
Copy link
Contributor

@gageorgiev gageorgiev left a comment

Choose a reason for hiding this comment

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

agreed with Toni's comment

mrMoZ1 added 3 commits October 6, 2022 12:42
Signed-off-by: mrMoZ1 <mzhivkov@vmware.com>
Signed-off-by: mrMoZ1 <mzhivkov@vmware.com>
Signed-off-by: mrMoZ1 <mzhivkov@vmware.com>
@mrMoZ1 mrMoZ1 force-pushed the person/mzhivkov/job-cancellation-fix branch from dec0d84 to 9683600 Compare October 6, 2022 09:43
mrMoZ1 added 2 commits October 6, 2022 13:01
Signed-off-by: mrMoZ1 <mzhivkov@vmware.com>
Signed-off-by: mrMoZ1 <mzhivkov@vmware.com>
@mrMoZ1 mrMoZ1 merged commit 100fa40 into main Oct 6, 2022
@mrMoZ1 mrMoZ1 deleted the person/mzhivkov/job-cancellation-fix branch October 6, 2022 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants