-
Notifications
You must be signed in to change notification settings - Fork 75
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 origin identification for unserializable exceptions #327
Fix origin identification for unserializable exceptions #327
Conversation
@@ -245,4 +247,15 @@ public static class X extends Exception { | |||
assertNotNull(new ErrorAction(unserializable)); | |||
assertNotNull(new ErrorAction(cyclic)); | |||
} | |||
|
|||
@Test public void findOriginOfRethrownUnserializableException() throws Throwable { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fails without the changes in src/main
because the FlowEndNode
is identified as the origin instead.
src/main/java/org/jenkinsci/plugins/workflow/actions/ErrorAction.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks right.
…but does not suffice according to #328. Digging into it. |
…uals if a ProxyException is involved
Oops, you are making changes here but I am working on changes in the more comprehensive test downstream, so this is all going to clash. |
It's fine, we can close this. |
For exceptions which were not serializable, we previously only added
ErrorId
to theProxyException
created for serialization purposes. The original exception that was thrown up through the Pipeline's execution would have noErrorId
, so each block/step that failed due to the exception would get a freshErrorId
.Testing done
Submitter checklist