WatcherTest

37

tests

0

failures

0

ignored

0.538s

duration

100%

successful

Tests

Test Duration Result
a branch config committed under the pre-rename name is still read 0.031s passed
a branch entry overrides requirePullRequest from the default entry 0.007s passed
a branch requiring a pull request is only built when its head matches a pull-request head 0.008s passed
a branch's committed config is read from git again only after the branch moved 0.008s passed
a build definition committed on a branch fires for that branch, without any entry in the primary config 0.012s passed
a build definition committed on a branch never schedules another branch 0.011s passed
a commit-triggered build belongs to the default build definition 0.009s passed
a disabled pull-request gate builds gated branches on plain-git origins without querying pull-request refs 0.007s passed
a failing fast-forward does not abort the poll cycle 0.007s passed
a fetch failure is exposed in the state and only retried next cycle 0.105s passed
a lasting fetch failure is logged once, and so is the recovery 0.011s passed
a poll cycle completes while a build is running and still enqueues other branches 0.011s passed
a scheduled build definition fires for its selected branches under its own pool 0.021s passed
a scheduled build definition with activeWithin skips branches without recent commits 0.009s passed
an auto build requiring a pull request is skipped and its slot stays untriggered 0.013s passed
an auto-build slot stays untriggered while the branch is still building 0.009s passed
an edited primary config takes effect without the branch moving 0.010s passed
an onPush build definition builds the changed branches it selects 0.013s passed
an unreadable branch config falls back to the primary definitions instead of failing the poll 0.031s passed
auto builds rebuild the already built commit once per day and slot 0.015s passed
builds.default with onPush false disables the implicit on-push build 0.008s passed
poll does not re-enqueue a commit that was already built 0.012s passed
poll drops builds older than retentionMaxAge but keeps the branch's newest build 0.012s passed
poll enqueues changed local branches before recent new origin branches 0.009s passed
poll fast-forwards local branch refs only after the enqueue decision was made 0.014s passed
poll filters new origin branches by the configured newBranchMaxAge 0.006s passed
poll keeps the latest green build beyond retention unless keepLatestGreen is disabled 0.020s passed
poll leaves local branch refs alone when fastForwardLocalRefs is disabled 0.005s passed
poll prunes results, artifacts, and worktrees of branches gone from origin 0.012s passed
poll skips a branch whose build is already pending or running 0.009s passed
pull-request refs are not queried when no due branch requires a pull request 0.007s passed
start runs recovery plus an immediate first poll; stop halts the loop 0.007s passed
startup recovery closes out an orphaned PENDING build of a branch gone from origin 0.012s passed
startup recovery marks stale builds interrupted and re-enqueues them 0.016s passed
startup recovery re-enqueues an interrupted build under its recorded build definition 0.012s passed
startup recovery skips branches gone from origin and survives a failing fetch 0.015s passed
worktrees of queued or running builds are never pruned 0.014s passed

Standard output

Creating nstance of class de.hoennig.werkator.watcher.WatcherTest
2026-09-03T12:35:18.957Z  WARN 146 --- [-1423319090#478] de.hoennig.werkator.watcher.Watcher      : fetching origin failed; retrying every cycle until it succeeds: origin unreachable
2026-09-03T12:35:18.965Z  WARN 146 --- [-1423319090#479] de.hoennig.werkator.watcher.Watcher      : fetching origin failed; retrying every cycle until it succeeds: origin unreachable
2026-09-03T12:35:18.969Z  INFO 146 --- [-1423319090#479] de.hoennig.werkator.watcher.Watcher      : fetching origin succeeded again
2026-09-03T12:35:18.971Z  WARN 146 --- [-1423319090#479] de.hoennig.werkator.watcher.Watcher      : fetching origin failed; retrying every cycle until it succeeds: host is down
2026-09-03T12:35:18.979Z  INFO 146 --- [-1423319090#480] de.hoennig.werkator.watcher.Watcher      : enqueueing build default of branch main at commit commit-main
2026-09-03T12:35:18.980Z  INFO 146 --- [-1423319090#480] de.hoennig.werkator.watcher.Watcher      : enqueueing build default of branch feature/new at commit commit-feature
2026-09-03T12:35:18.987Z  INFO 146 --- [-1423319090#481] de.hoennig.werkator.watcher.Watcher      : enqueueing build default of branch main at commit commit-main
2026-09-03T12:35:18.987Z  INFO 146 --- [-1423319090#481] de.hoennig.werkator.watcher.Watcher      : fast-forwarded local branch refs to origin: main
2026-09-03T12:35:19.000Z  WARN 146 --- [-1423319090#482] de.hoennig.werkator.watcher.Watcher      : fast-forwarding local branch refs failed: ref locked
2026-09-03T12:35:19.026Z  INFO 146 --- [-1423319090#485] de.hoennig.werkator.watcher.Watcher      : enqueueing build default of branch feature/other at commit commit-3
2026-09-03T12:35:19.039Z  INFO 146 --- [-1423319090#486] de.hoennig.werkator.watcher.Watcher      : enqueueing build default of branch main at commit commit-def
2026-09-03T12:35:19.053Z  INFO 146 --- [-1423319090#488] de.hoennig.werkator.watcher.Watcher      : enqueueing build default of branch feature/pr at commit commit-pr
2026-09-03T12:35:19.054Z  INFO 146 --- [-1423319090#488] de.hoennig.werkator.watcher.Watcher      : not enqueueing branch feature/no-pr: no pull request has head commit commit-solo
2026-09-03T12:35:19.061Z  INFO 146 --- [-1423319090#489] de.hoennig.werkator.watcher.Watcher      : enqueueing build default of branch feature/x at commit commit-x
2026-09-03T12:35:19.069Z  INFO 146 --- [-1423319090#490] de.hoennig.werkator.watcher.Watcher      : enqueueing build default of branch feature/no-pr at commit commit-solo
2026-09-03T12:35:19.076Z  INFO 146 --- [-1423319090#491] de.hoennig.werkator.watcher.Watcher      : enqueueing build default of branch main at commit commit-main
2026-09-03T12:35:19.087Z  WARN 146 --- [-1423319090#492] de.hoennig.werkator.watcher.Watcher      : branches.*.autoBuild is deprecated; define a build with atTimes in the builds section instead (branches: main)
2026-09-03T12:35:19.090Z  INFO 146 --- [-1423319090#492] de.hoennig.werkator.watcher.Watcher      : not enqueueing branch main: no pull request has head commit commit-abc
2026-09-03T12:35:19.103Z  WARN 146 --- [-1423319090#493] de.hoennig.werkator.watcher.Watcher      : branches.*.autoBuild is deprecated; define a build with atTimes in the builds section instead (branches: main)
2026-09-03T12:35:19.104Z  INFO 146 --- [-1423319090#493] de.hoennig.werkator.watcher.Watcher      : enqueueing build default of branch main at commit commit-abc
2026-09-03T12:35:19.119Z  INFO 146 --- [-1423319090#494] de.hoennig.werkator.watcher.Watcher      : enqueueing build pitest of branch main at commit commit-abc
2026-09-03T12:35:19.122Z  INFO 146 --- [-1423319090#494] de.hoennig.werkator.watcher.Watcher      : enqueueing build pitest of branch release/1.x at commit commit-rel
2026-09-03T12:35:19.138Z  INFO 146 --- [-1423319090#495] de.hoennig.werkator.watcher.Watcher      : enqueueing build pitest of branch active at commit commit-act
2026-09-03T12:35:19.148Z  INFO 146 --- [-1423319090#496] de.hoennig.werkator.watcher.Watcher      : enqueueing build default of branch main at commit commit-main
2026-09-03T12:35:19.149Z  INFO 146 --- [-1423319090#496] de.hoennig.werkator.watcher.Watcher      : enqueueing build lint of branch main at commit commit-main
2026-09-03T12:35:19.150Z  INFO 146 --- [-1423319090#496] de.hoennig.werkator.watcher.Watcher      : enqueueing build default of branch feature/x at commit commit-feat
2026-09-03T12:35:19.171Z  INFO 146 --- [-1423319090#498] de.hoennig.werkator.watcher.Watcher      : enqueueing build default of branch main at commit commit-main
2026-09-03T12:35:19.180Z  INFO 146 --- [-1423319090#499] de.hoennig.werkator.watcher.Watcher      : enqueueing build pitest of branch experiment at commit commit-exp
2026-09-03T12:35:19.204Z  INFO 146 --- [-1423319090#500] de.hoennig.werkator.watcher.Watcher      : enqueueing build pitest of branch experiment at commit commit-exp
2026-09-03T12:35:19.245Z  INFO 146 --- [-1423319090#503] de.hoennig.werkator.watcher.Watcher      : enqueueing build nightly of branch main at commit commit-1
2026-09-03T12:35:19.278Z  WARN 146 --- [-1423319090#504] de.hoennig.werkator.watcher.Watcher      : ignoring the committed .werkator.yml of branch main at commit-main: mapping problem
2026-09-03T12:35:19.279Z  INFO 146 --- [-1423319090#504] de.hoennig.werkator.watcher.Watcher      : enqueueing build default of branch main at commit commit-main
2026-09-03T12:35:19.288Z  WARN 146 --- [-1423319090#505] de.hoennig.werkator.watcher.Watcher      : branches.*.autoBuild is deprecated; define a build with atTimes in the builds section instead (branches: main)
2026-09-03T12:35:19.304Z  INFO 146 --- [-1423319090#506] de.hoennig.werkator.watcher.Watcher      : marked stale build of branch main as interrupted
2026-09-03T12:35:19.306Z  INFO 146 --- [-1423319090#506] de.hoennig.werkator.watcher.Watcher      : restarting unfinished build default of branch queued
2026-09-03T12:35:19.306Z  INFO 146 --- [-1423319090#506] de.hoennig.werkator.watcher.Watcher      : restarting unfinished build default of branch feature/a
2026-09-03T12:35:19.307Z  INFO 146 --- [-1423319090#506] de.hoennig.werkator.watcher.Watcher      : restarting unfinished build default of branch main
2026-09-03T12:35:19.321Z  WARN 146 --- [-1423319090#507] de.hoennig.werkator.watcher.Watcher      : startup fetch failed; recovering from the last known origin state: origin unreachable
2026-09-03T12:35:19.322Z  INFO 146 --- [-1423319090#507] de.hoennig.werkator.watcher.Watcher      : restarting unfinished build default of branch main
2026-09-03T12:35:19.323Z  INFO 146 --- [-1423319090#507] de.hoennig.werkator.watcher.Watcher      : not restarting build of branch gone: branch is gone from origin
2026-09-03T12:35:19.333Z  INFO 146 --- [-1423319090#508] de.hoennig.werkator.watcher.Watcher      : restarting unfinished build pitest of branch main
2026-09-03T12:35:19.348Z  INFO 146 --- [-1423319090#509] de.hoennig.werkator.watcher.Watcher      : not restarting build of branch gone: branch is gone from origin
2026-09-03T12:35:19.360Z  INFO 146 --- [-1423319090#510] de.hoennig.werkator.watcher.Watcher      : removing worktree of branch gone from origin: gone-283bb9deef02