BuildExecutorTest

23

tests

0

failures

0

ignored

10.254s

duration

100%

successful

Tests

Test Duration Result
a Gitea failure does not fail the build 0.067s passed
a build cancelled while still queued records neither runningSince nor a duration 0.111s passed
a build definition overrides the branch's build command and records under its own pool 0.145s passed
a build still queued at shutdown stays PENDING for the startup recovery 0.141s passed
a build whose definition was removed from the config falls back to the branch's settings 0.080s passed
a failing build command records FAILED with a duration 0.090s passed
a failing clean command fails the build without running the build command 0.067s passed
a second build of the same branch waits even when a slot is free 2.065s passed
a successful build transitions pending, running, success and captures all logs 0.139s passed
build commands run in the workspace prepared for the branch 0.043s passed
cancel kills a long auxiliary preparation phase instead of waiting for it 0.138s passed
cancel kills a sleeping process tree and records CANCELLED 0.107s passed
cancel only affects the addressed build, other branches keep running 0.168s passed
cancel with an unknown artifact key returns false 0.008s passed
shutdown kills an executing build and records INTERRUPTED, not FAILED 0.112s passed
shutdown without any build in flight is a no-op 0.055s passed
startBuild returns the active build of the same branch and commit instead of stacking a duplicate 0.270s passed
the commit status carries the artifact page when a public base URL is configured 0.049s passed
the duration measures build time only, not the queue wait 2.053s passed
the live log grows while the build is still running 3.051s passed
the repository reports RUNNING while the build sleeps 0.095s passed
with maxConcurrent 1 a second branch stays PENDING until the first finished 1.041s passed
with maxConcurrent 2 two branches build at the same time 0.159s passed

Standard output

Creating nstance of class de.hoennig.werkator.build.BuildExecutorTest
2026-09-03T16:01:28.740Z  WARN 144 --- [pe-953517005#94] d.hoennig.werkator.config.ConfigLoader   : no build defines onPush or atTimes; the watcher will never start a build on its own
2026-09-03T16:01:28.986Z  INFO 144 --- [pe-953517005#96] d.hoennig.werkator.build.BuildExecutor   : build of branch main at commit abc123 is already queued or running; not queueing a duplicate
2026-09-03T16:01:29.644Z  INFO 144 --- [e-953517005#101] d.hoennig.werkator.build.BuildExecutor   : shutdown requested; interrupting 1 executing build(s)
2026-09-03T16:01:29.645Z  INFO 144 --- [in-0d6e4079e367] d.hoennig.werkator.build.BuildExecutor   : build of branch main interrupted by shutdown
2026-09-03T16:01:29.750Z  INFO 144 --- [e-953517005#102] d.hoennig.werkator.build.BuildExecutor   : shutdown requested; interrupting 1 executing build(s)
2026-09-03T16:01:29.806Z  INFO 144 --- [in-0d6e4079e367] d.hoennig.werkator.build.BuildExecutor   : build of branch main interrupted by shutdown
2026-09-03T16:01:33.012Z  WARN 144 --- [e-953517005#106] d.hoennig.werkator.build.BuildExecutor   : could not publish Gitea status PENDING for abc123: gitea down
2026-09-03T16:01:33.017Z  WARN 144 --- [in-0d6e4079e367] d.hoennig.werkator.build.BuildExecutor   : could not publish Gitea status RUNNING for abc123: gitea down
2026-09-03T16:01:33.026Z  WARN 144 --- [in-0d6e4079e367] d.hoennig.werkator.build.BuildExecutor   : could not publish Gitea status SUCCESS for abc123: gitea down