https://integration.wikimedia.org/ci/job/quibble-vendor-mysql-php80-noselenium-docker/25222/console apparently ran properly. During the post build step, the castor-save-workspace-cache failed:
15:18:44 [PostBuildScript] - [INFO] Executing post build scripts. 15:18:44 Waiting for the completion of castor-save-workspace-cache 15:18:44 [PostBuildScript] - [ERROR] An error occured during post-build processing. 15:20:18 org.jenkinsci.plugins.postbuildscript.PostBuildScriptException: hudson.AbortException: castor-save-workspace-cache aborted. 15:20:18 at org.jenkinsci.plugins.postbuildscript.processor.Processor.processBuildSteps(Processor.java:190) 15:20:18 at org.jenkinsci.plugins.postbuildscript.processor.Processor.processScripts(Processor.java:91) 15:20:18 at org.jenkinsci.plugins.postbuildscript.processor.Processor.process(Processor.java:79) 15:20:18 at org.jenkinsci.plugins.postbuildscript.processor.Processor.process(Processor.java:73) 15:20:18 at org.jenkinsci.plugins.postbuildscript.PostBuildScript.perform(PostBuildScript.java:116) 15:20:18 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) 15:20:18 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:818) 15:20:18 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:767) 15:20:18 at hudson.model.Build$BuildExecution.post2(Build.java:179) 15:20:18 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:711) 15:20:18 at hudson.model.Run.execute(Run.java:1925) 15:20:18 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44) 15:20:18 at hudson.model.ResourceController.execute(ResourceController.java:101) 15:20:18 at hudson.model.Executor.run(Executor.java:442) 15:20:18 Caused by: hudson.AbortException: castor-save-workspace-cache aborted. 15:20:18 at hudson.plugins.parameterizedtrigger.TriggerBuilder.perform(TriggerBuilder.java:180) 15:20:18 at org.jenkinsci.plugins.postbuildscript.processor.Processor.processBuildSteps(Processor.java:180) 15:20:18 ... 13 more 15:20:18 Build step 'Execute scripts' changed build result to FAILURE 15:20:18 Build step 'Execute scripts' marked build as failure
The build was for https://gerrit.wikimedia.org/r/c/mediawiki/extensions/GlobalPreferences/+/978582 in gate-and-submit and I don't think it got canceled by Zuul.
Note how the the job triggering waited 1m34 before getting aborted.
Versions of plugins appearing in the stacktrace:
| postbuildscript | 3.2.0-550.v88192b_d3e922 |
| parameterized-trigger | 787.v665fcf2a_830b_ |
I have patched the parameterized-trigger plugin in T282893 to have it cancel the triggered job when the parent job receives an InterruptedException. The frame hudson.plugins.parameterizedtrigger.TriggerBuilder.perform(TriggerBuilder.java:180) is:
src/main/java/hudson/plugins/parameterizedtrigger/TriggerBuilder.java
179 } catch (CancellationException x) {
180 throw new AbortException(p.getFullDisplayName() +" aborted.");
181 }Which mean the castor-save-workspace-cache caused a CancellationException? If I read it right it neither:
- got interrupted (my patch cause a line to be printed "Build aborting: cancelling queued project..."
- nor started (the code would print a line with the url to the job followed by "started")
So my guess is it got cancelled while future.waitForStart(). Maybe there is a timeout. At the time the issue happened, there were a lot of build going on and I highly suspect there was a fairly large queue of jobs waiting.
The job has a 1 minute build timeout, but that is less than the observed 1m34 and the job was in the queue rather than start.