[JIRA] (JENKINS-61477) Tests start before plugins are initialized

4 views
Skip to first unread message

ullrich.hafner@gmail.com (JIRA)

unread,
Mar 13, 2020, 7:06:04 PM3/13/20
to jenkinsc...@googlegroups.com
Ulli Hafner created an issue
 
Jenkins / Bug JENKINS-61477
Tests start before plugins are initialized
Issue Type: Bug Bug
Assignee: Oliver Gondža
Components: acceptance-test-harness
Created: 2020-03-13 23:05
Priority: Minor Minor
Reporter: Ulli Hafner

I'm currently moving the ATH tests of the warnings plugin to the plugin (see PR #419). I get an error in the test case that is caused by a timing problem:

master63023|2020-03-11 23:54:08.038+0000 [id=75]	INFO	h.model.UpdateCenter$DownloadJob#run: Starting the installation of warnings-ng on behalf of anonymous
master63023|2020-03-11 23:54:08.039+0000 [id=75]	INFO	h.m.UpdateCenter$UpdateCenterConfiguration#download: Downloading warnings-ng
master63023|2020-03-11 23:54:08.954+0000 [id=75]	INFO	h.model.UpdateCenter$DownloadJob#run: Installation successful: warnings-ng
master63023|2020-03-11 23:54:08.954+0000 [id=75]	INFO	h.m.UpdateCenter$CompleteBatchJob#run: Completing installing of plugin batch…
master63023|2020-03-11 23:54:13.624+0000 [id=10]	WARNING	o.e.j.s.h.ContextHandler$Context#log: Error while serving 
http://127.0.0.1:63023/newJob

master63023|java.lang.IllegalStateException: maybe need to rebuild plugin?
master63023|	at org.jenkinsci.plugins.scriptsecurity.scripts.ScriptApproval.get(ScriptApproval.java:118)
master63023|	at org.jenkinsci.plugins.scriptsecurity.scripts.ScriptApprovalLink.getUrlName(ScriptApprovalLink.java:45)

master63023|2020-03-11 23:54:13.683+0000 [id=78]	INFO	jenkins.InitReactorRunner$1#onAttained: Started initialization
master63023|2020-03-11 23:54:13.748+0000 [id=85]	INFO	jenkins.InitReactorRunner$1#onAttained: Listed all plugins
master63023|2020-03-11 23:54:13.748+0000 [id=85]	INFO	jenkins.InitReactorRunner$1#onAttained: Prepared all plugins
master63023|2020-03-11 23:54:13.785+0000 [id=81]	INFO	jenkins.InitReactorRunner$1#onAttained: Started all plugins
master63023|2020-03-11 23:54:13.799+0000 [id=81]	INFO	jenkins.InitReactorRunner$1#onAttained: Augmented all extensions
master63023|2020-03-11 23:54:13.800+0000 [id=84]	INFO	jenkins.InitReactorRunner$1#onAttained: Loaded all jobs
master63023|2020-03-11 23:54:13.816+0000 [id=79]	INFO	jenkins.InitReactorRunner$1#onAttained: Completed initialization
master63023|2020-03-11 23:54:14.075+0000 [id=75]	INFO	h.m.UpdateCenter$CompleteBatchJob#run: Completed installation of 27 plugins in 9.6 sec

When we look at the log we see that the test starts after the plugins are installed but before these plugin are initialized. This causes a problem in the script security plugin.

Full log, see
https://ci.jenkins.io/job/Plugins/job/warnings-ng-plugin/job/ath/17/testReport/io.jenkins.plugins.analysis.warnings/WarningsPluginUiTest/linux_8___Archive__linux_8____shouldAggregateToolsIntoSingleResult/

See also discussion in dev list.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

ullrich.hafner@gmail.com (JIRA)

unread,
Mar 15, 2020, 4:00:05 PM3/15/20
to jenkinsc...@googlegroups.com
Ulli Hafner started work on Bug JENKINS-61477
 
Change By: Ulli Hafner
Status: Open In Progress

ullrich.hafner@gmail.com (JIRA)

unread,
Mar 15, 2020, 4:00:05 PM3/15/20
to jenkinsc...@googlegroups.com
Ulli Hafner assigned an issue to Ulli Hafner
Change By: Ulli Hafner
Assignee: Oliver Gondža Ulli Hafner
Reply all
Reply to author
Forward
0 new messages