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

Jenkins regression with 1.58 release #23

Closed
hgschmie opened this issue Mar 12, 2018 · 4 comments
Closed

Jenkins regression with 1.58 release #23

hgschmie opened this issue Mar 12, 2018 · 4 comments
Labels

Comments

@hgschmie
Copy link

With 1.58, I see this in my logs:

7:59:36 ---
17:59:36 --- Jenkins Violation Comments to GitHub ---
17:59:36 ---
17:59:36 gitHubUrl: https://git.zias.io/api/v3
17:59:36 repositoryOwner: owl
17:59:36 repositoryName: owl-components
17:59:36 pullRequestId: 6
17:59:36 credentialsId: true
17:59:36 oAuth2Token: false
17:59:36 createSingleFileComments: true
17:59:36 createCommentWithAllSingleFileComments: false
17:59:36 commentOnlyChangedContent: false
17:59:36 minSeverity: WARN
17:59:36 keepOldComments: false
17:59:36 Checkstyle with pattern .*/checkstyle-result\.xml$
17:59:36 Findbugs with pattern .*/findbugsXml\.xml$
17:59:36 PMD with pattern .*/pmd\.xml$
17:59:36 Using OAuth2Token credential style
17:59:36 Running Jenkins Violation Comments To GitHub
17:59:36 PR 6
17:59:36 java.io.IOException: remote file operation failed: /var/lib/jenkins/workspace/owl_owl-components_PR-6-MWOBIXMJBAZPVGABQB72FSBTO2FM66EMCHCVZJY77BDNRFZZEHTQ at hudson.remoting.Channel@67ddca86:i-0280d5f9c00d288a8: java.io.IOException: Unable to serialize hudson.FilePath$FileCallableWrapper@54e8e2d2
17:59:36 	at hudson.FilePath.act(FilePath.java:993)
17:59:36 	at hudson.FilePath.act(FilePath.java:975)
17:59:36 	at org.jenkinsci.plugins.jvctg.perform.JvctgPerformer.jvctsPerform(JvctgPerformer.java:217)
17:59:36 	at org.jenkinsci.plugins.jvctg.ViolationsToGitHubRecorder.perform(ViolationsToGitHubRecorder.java:63)
17:59:36 	at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:80)
17:59:36 	at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:67)
17:59:36 	at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1$1.call(SynchronousNonBlockingStepExecution.java:49)
17:59:36 	at hudson.security.ACL.impersonate(ACL.java:260)
17:59:36 	at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1.run(SynchronousNonBlockingStepExecution.java:46)
17:59:36 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
17:59:36 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
17:59:36 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
17:59:36 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
17:59:36 	at java.lang.Thread.run(Thread.java:748)
17:59:36 Caused by: java.io.IOException: Unable to serialize hudson.FilePath$FileCallableWrapper@54e8e2d2
17:59:36 	at hudson.remoting.UserRequest.serialize(UserRequest.java:258)
17:59:36 	at hudson.remoting.UserRequest.<init>(UserRequest.java:99)
17:59:36 	at hudson.remoting.Channel.call(Channel.java:906)
17:59:36 	at hudson.FilePath.act(FilePath.java:986)
17:59:36 	... 13 more
17:59:36 Caused by: java.io.NotSerializableException: java.io.PrintStream
17:59:36 	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1184)
17:59:36 	at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1548)
17:59:36 	at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1509)
17:59:36 	at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
17:59:36 	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
17:59:36 	at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1548)
17:59:36 	at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1509)
17:59:36 	at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
17:59:36 	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
17:59:36 	at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348)
17:59:36 	at hudson.remoting.UserRequest._serialize(UserRequest.java:247)
17:59:36 	at hudson.remoting.UserRequest.serialize(UserRequest.java:256)
17:59:36 	... 16 more
17:59:36 

Same build with 1.57 plugin:

19:51:27 ---
19:51:27 --- Jenkins Violation Comments to GitHub ---
19:51:27 ---
19:51:27 gitHubUrl: https://git.zias.io/api/v3
19:51:27 repositoryOwner: owl
19:51:27 repositoryName: owl-components
19:51:27 pullRequestId: 6
19:51:27 usernamePasswordCredentialsId: true
19:51:27 useOAuth2TokenCredentials: false
19:51:27 oAuth2Token: false
19:51:27 createSingleFileComments: true
19:51:27 createCommentWithAllSingleFileComments: false
19:51:27 commentOnlyChangedContent: false
19:51:27 minSeverity: WARN
19:51:27 keepOldComments: false
19:51:27 Checkstyle with pattern .*/checkstyle-result\.xml$
19:51:27 Findbugs with pattern .*/findbugsXml\.xml$
19:51:27 PMD with pattern .*/pmd\.xml$
19:51:27 Running Jenkins Violation Comments To GitHub
19:51:27 PR 6
19:51:28 Workspace: /var/lib/jenkins/workspace/owl_owl-components_PR-6-MWOBIXMJBAZPVGABQB72FSBTO2FM66EMCHCVZJY77BDNRFZZEHTQ
19:51:28 Found 0 violations from ViolationConfig [pattern=.*/checkstyle-result\.xml$, reporter=Checkstyle, parser=CHECKSTYLE].
19:51:28 Found 0 violations from ViolationConfig [pattern=.*/findbugsXml\.xml$, reporter=Findbugs, parser=FINDBUGS].
19:51:28 Found 0 violations from ViolationConfig [pattern=.*/pmd\.xml$, reporter=PMD, parser=PMD].
19:51:28 Using username / password
19:51:28 PR: owl/owl-components/6 on https://git.zias.io/api/v3

Jenkins 2.89.2 (LTS, slightly behind), all other plugins fully upgraded. Building on a slave using Fleet plugin (EC2 spot instance).

@tomasbjerre
Copy link
Contributor

@Casz This is probably from you PR.

I will probably find time to have a look later today.

@jetersen
Copy link
Member

@tomasbjerre seems that it does not like PrintStream as a variable :(

@jetersen
Copy link
Member

tomasbjerre added a commit that referenced this issue Mar 12, 2018
@tomasbjerre
Copy link
Contributor

I tried it on an agent. Was able to reproduce it and fix it just like @Casz did in his PR.
Releasing it now in 1.59.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants