-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
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
[JENKINS-47896] - Introduce SerializableOnlyOverRemoting in classes. #3144
[JENKINS-47896] - Introduce SerializableOnlyOverRemoting in classes. #3144
Conversation
Due to the implementation specifics, some classes in the core are serializable only over Remoting. This change just marks these classes and utilizes the convenience method in the interface for serialization/deserialization operations.
This pull request originates from a CloudBees employee. At CloudBees, we require that all pull requests be reviewed by other CloudBees employees before we seek to have the change accepted. If you want to learn more about our process please see this explanation. |
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.
🐞
Still (or again) conflicting. |
Fixed the merge conflict |
So, tests fail due to nulls:
|
@@ -47,7 +49,7 @@ | |||
* @deprecated Specific to Remoting-based protocol. | |||
*/ | |||
@Deprecated | |||
public class CliManagerImpl implements CliEntryPoint, Serializable { | |||
public class CliManagerImpl implements CliEntryPoint, SerializableOnlyOverRemoting { |
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.
Do not bother, will just conflict with #3838.
@@ -58,7 +60,7 @@ | |||
* | |||
* @author Kohsuke Kawaguchi | |||
*/ | |||
public class StreamTaskListener extends AbstractTaskListener implements TaskListener, Closeable { | |||
public class StreamTaskListener extends AbstractTaskListener implements TaskListener, SerializableOnlyOverRemoting, Closeable { |
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.
I would expect this to be marked on TaskListener
, not StreamTaskListener
.
@oleg-nenashev this PR is conflicted, are you willing to finalize it? Or you want to close it for now? |
If @oleg-nenashev does not have time, I think I could take this over—I understand the intent. |
@jglick I guess this would be great if you can help here indeed. Given we're trying to reduce the number of open PRs, any help to push PRs to closure (be it merged or closed) is very much appreciated. |
Superseded by #3980 |
Yes, though not necessary to close this one—merging the larger will automatically merge this one as well. |
Due to the implementation specifics, some classes in the core are serializable only over Remoting.
This change just marks these classes and utilizes the convenience method in the interface for serialization/deserialization operations. The interface is available since Remoting 3.14.
See JENKINS-47896.
No tests, because the behavior does not change.
The error propagation just becomes better in edge cases.
Proposed changelog entries
Submitter checklist
* Use the
Internal:
prefix if the change has no user-visible impact (API, test frameworks, etc.)Desired reviewers
@reviewbybees