assistance with running test locally

50 views
Skip to first unread message

Niv Keidan

unread,
Jan 28, 2022, 2:09:38 PM1/28/22
to Jenkins Developers
Hey guys,
Working on a PR I am trying to run a single test locally and hitting this stack trace:

org.jvnet.hudson.reactor.ReactorException: java.lang.IllegalArgumentException: Unable to inject class hudson.model.UserIdMapper at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:291) at jenkins.InitReactorRunner.run(InitReactorRunner.java:49) at jenkins.model.Jenkins.executeReactor(Jenkins.java:1190) at jenkins.model.Jenkins.<init>(Jenkins.java:981) at hudson.model.Hudson.<init>(Hudson.java:86) at org.jvnet.hudson.test.JenkinsRule.newHudson(JenkinsRule.java:688) at org.jvnet.hudson.test.JenkinsRule.before(JenkinsRule.java:404) at org.jvnet.hudson.test.JenkinsRule$1.evaluate(JenkinsRule.java:595) at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:299) at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:293) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.lang.Thread.run(Thread.java:829) Caused by: java.lang.IllegalArgumentException: Unable to inject class hudson.model.UserIdMapper at hudson.init.TaskMethodFinder.lookUp(TaskMethodFinder.java:130) at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:110) at hudson.init.TaskMethodFinder$TaskImpl.run(TaskMethodFinder.java:185) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:305) at jenkins.model.Jenkins$5.runTask(Jenkins.java:1156) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:222) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:121) at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ... 1 more

any idea?

Tim Jacomb

unread,
Jan 28, 2022, 2:15:10 PM1/28/22
to jenkin...@googlegroups.com
Could you add more context?

Which test?
Which repo?

How are you trying to run it?

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/fd3e9129-aeb0-4783-bd39-792c3f5b920cn%40googlegroups.com.

Niv Keidan

unread,
Jan 28, 2022, 2:16:54 PM1/28/22
to Jenkins Developers
command: mvn -Dtest=hudson.model.NodeTest test
all tests fail with same stack trace

using local branch for this PR https://github.com/jenkinsci/jenkins/pull/6193

Just trying to get some tests running before writing a new one

Jesse Glick

unread,
Jan 28, 2022, 3:20:15 PM1/28/22
to jenkin...@googlegroups.com
On Fri, Jan 28, 2022 at 2:16 PM Niv Keidan <niv.k...@veertu.com> wrote:
command: mvn -Dtest=hudson.model.NodeTest test

The exact same command works for me. Are you using JDK 8? Did you try `mvn -Pquick-build clean install` to start? Did you check behavior in `master`?

Niv Keidan

unread,
Jan 30, 2022, 4:54:26 AM1/30/22
to Jenkins Developers
cleaning did the trick, thank you
Reply all
Reply to author
Forward
0 new messages