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

Recent refactoring broke test stability history plugin #627

Closed
Bananeweizen opened this issue Jul 26, 2024 · 3 comments · Fixed by jenkinsci/test-stability-plugin#6
Closed
Assignees
Labels

Comments

@Bananeweizen
Copy link

Jenkins and plugins versions report

n.a

What Operating System are you using (both controller, and any agents involved in the problem)?

n.a

Reproduction steps

Install https://plugins.jenkins.io/test-stability/
Upgrade junit-plugin

Expected Results

no errors

Actual Results

java.lang.NoSuchMethodError: 'java.util.List hudson.tasks.junit.ClassResult.getChildren()'
at PluginClassLoader for test-stability//de.esailors.jenkins.teststability.StabilityTestDataPublisher.getClassAndCaseResults(StabilityTestDataPublisher.java:274)
at PluginClassLoader for test-stability//de.esailors.jenkins.teststability.StabilityTestDataPublisher.contributeTestData(StabilityTestDataPublisher.java:76)
at PluginClassLoader for junit//hudson.tasks.junit.JUnitResultArchiver.parseAndSummarize(JUnitResultArchiver.java:297)
at PluginClassLoader for junit//hudson.tasks.junit.pipeline.JUnitResultsStepExecution.run(JUnitResultsStepExecution.java:63)
at PluginClassLoader for junit//hudson.tasks.junit.pipeline.JUnitResultsStepExecution.run(JUnitResultsStepExecution.java:29)
at PluginClassLoader for workflow-step-api//org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:840)

Anything else?

Root cause is the generalization of the generic method return value at 72cf99b#r144682183

Are you interested in contributing a fix?

no

@timja
Copy link
Member

timja commented Jul 26, 2024

@ivy-cst
Copy link

ivy-cst commented Aug 2, 2024

Can you try this pre-release version of test-stability please: https://repo.jenkins-ci.org/incrementals/de/esailors/jenkins/test-stability/2.4-rc57.d8c750ea_292e/test-stability-2.4-rc57.d8c750ea_292e.hpi

With this pre-release it works, thanks 👍

@timja
Copy link
Member

timja commented Aug 7, 2024

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