BuildExecutorTest

22

tests

0

failures

0

ignored

11.661s

duration

100%

successful

Tests

Test Duration Result
a Gitea failure does not fail the build 0.170s passed
a build cancelled while still queued records neither runningSince nor a duration 0.147s passed
a build definition overrides the branch's build command and records under its own pool 0.161s passed
a build still queued at shutdown stays PENDING for the startup recovery 0.177s passed
a build whose definition was removed from the config falls back to the branch's settings 0.074s passed
a failing build command records FAILED with a duration 0.121s passed
a failing clean command fails the build without running the build command 0.079s passed
a second build of the same branch waits even when a slot is free 2.133s passed
a successful build transitions pending, running, success and captures all logs 0.349s passed
build commands run in the workspace prepared for the branch 0.123s passed
cancel kills a long auxiliary preparation phase instead of waiting for it 0.121s passed
cancel kills a sleeping process tree and records CANCELLED 0.195s passed
cancel only affects the addressed build, other branches keep running 0.245s passed
cancel with an unknown artifact key returns false 0.013s passed
shutdown kills an executing build and records INTERRUPTED, not FAILED 0.202s passed
shutdown without any build in flight is a no-op 0.043s passed
startBuild returns the active build of the same branch and commit instead of stacking a duplicate 0.311s passed
the duration measures build time only, not the queue wait 2.323s passed
the live log grows while the build is still running 3.087s passed
the repository reports RUNNING while the build sleeps 0.279s passed
with maxConcurrent 1 a second branch stays PENDING until the first finished 1.142s passed
with maxConcurrent 2 two branches build at the same time 0.166s passed

Standard output

Creating nstance of class de.hoennig.werkator.build.BuildExecutorTest
2026-09-03T12:34:41.640Z  WARN 146 --- [e-1328036751#89] d.hoennig.werkator.config.ConfigLoader   : no build defines onPush or atTimes; the watcher will never start a build on its own
2026-09-03T12:34:41.897Z  INFO 146 --- [e-1328036751#91] d.hoennig.werkator.build.BuildExecutor   : build of branch main at commit abc123 is already queued or running; not queueing a duplicate
2026-09-03T12:34:42.837Z  INFO 146 --- [e-1328036751#96] d.hoennig.werkator.build.BuildExecutor   : shutdown requested; interrupting 1 executing build(s)
2026-09-03T12:34:42.839Z  INFO 146 --- [in-0d6e4079e367] d.hoennig.werkator.build.BuildExecutor   : build of branch main interrupted by shutdown
2026-09-03T12:34:43.011Z  INFO 146 --- [e-1328036751#97] d.hoennig.werkator.build.BuildExecutor   : shutdown requested; interrupting 1 executing build(s)
2026-09-03T12:34:43.075Z  INFO 146 --- [in-0d6e4079e367] d.hoennig.werkator.build.BuildExecutor   : build of branch main interrupted by shutdown
2026-09-03T12:34:46.363Z  WARN 146 --- [-1328036751#101] d.hoennig.werkator.build.BuildExecutor   : could not publish Gitea status PENDING for abc123: gitea down
2026-09-03T12:34:46.394Z  WARN 146 --- [in-0d6e4079e367] d.hoennig.werkator.build.BuildExecutor   : could not publish Gitea status RUNNING for abc123: gitea down
2026-09-03T12:34:46.425Z  WARN 146 --- [in-0d6e4079e367] d.hoennig.werkator.build.BuildExecutor   : could not publish Gitea status SUCCESS for abc123: gitea down