BuildExecutorTest

22

tests

0

failures

0

ignored

10.865s

duration

100%

successful

Tests

Test Duration Result
a Gitea failure does not fail the build 0.222s passed
a build cancelled while still queued records neither runningSince nor a duration 0.100s passed
a build definition overrides the branch's build command and records under its own pool 0.116s passed
a build still queued at shutdown stays PENDING for the startup recovery 0.113s passed
a build whose definition was removed from the config falls back to the branch's settings 0.052s passed
a failing build command records FAILED with a duration 0.172s passed
a failing clean command fails the build without running the build command 0.095s passed
a second build of the same branch waits even when a slot is free 2.081s passed
a successful build transitions pending, running, success and captures all logs 0.247s passed
build commands run in the workspace prepared for the branch 0.098s passed
cancel kills a long auxiliary preparation phase instead of waiting for it 0.113s passed
cancel kills a sleeping process tree and records CANCELLED 0.153s passed
cancel only affects the addressed build, other branches keep running 0.184s passed
cancel with an unknown artifact key returns false 0.002s passed
shutdown kills an executing build and records INTERRUPTED, not FAILED 0.176s passed
shutdown without any build in flight is a no-op 0.086s passed
startBuild returns the active build of the same branch and commit instead of stacking a duplicate 0.058s passed
the duration measures build time only, not the queue wait 2.307s passed
the live log grows while the build is still running 3.107s passed
the repository reports RUNNING while the build sleeps 0.099s passed
with maxConcurrent 1 a second branch stays PENDING until the first finished 1.109s passed
with maxConcurrent 2 two branches build at the same time 0.175s passed

Standard output

Creating nstance of class de.hoennig.werkator.build.BuildExecutorTest
2026-09-03T10:10:49.717Z  WARN 144 --- [e-1235662640#89] d.hoennig.werkator.config.ConfigLoader   : no build defines onPush or atTimes; the watcher will never start a build on its own
2026-09-03T10:10:49.910Z  INFO 144 --- [e-1235662640#91] d.hoennig.werkator.build.BuildExecutor   : build of branch main at commit abc123 is already queued or running; not queueing a duplicate
2026-09-03T10:10:50.550Z  INFO 144 --- [e-1235662640#96] d.hoennig.werkator.build.BuildExecutor   : shutdown requested; interrupting 1 executing build(s)
2026-09-03T10:10:50.554Z  INFO 144 --- [in-0d6e4079e367] d.hoennig.werkator.build.BuildExecutor   : build of branch main interrupted by shutdown
2026-09-03T10:10:50.701Z  INFO 144 --- [e-1235662640#97] d.hoennig.werkator.build.BuildExecutor   : shutdown requested; interrupting 1 executing build(s)
2026-09-03T10:10:50.707Z  INFO 144 --- [in-0d6e4079e367] d.hoennig.werkator.build.BuildExecutor   : build of branch main interrupted by shutdown
2026-09-03T10:10:53.995Z  WARN 144 --- [-1235662640#101] d.hoennig.werkator.build.BuildExecutor   : could not publish Gitea status PENDING for abc123: gitea down
2026-09-03T10:10:54.012Z  WARN 144 --- [in-0d6e4079e367] d.hoennig.werkator.build.BuildExecutor   : could not publish Gitea status RUNNING for abc123: gitea down
2026-09-03T10:10:54.173Z  WARN 144 --- [in-0d6e4079e367] d.hoennig.werkator.build.BuildExecutor   : could not publish Gitea status SUCCESS for abc123: gitea down