AutoBuildStateTest

10

tests

0

failures

0

ignored

0.107s

duration

100%

successful

Tests

Test Duration Result
an hourly ??:MM slot is due every hour and resolves to that hour's concrete slot 0.015s passed
an unreadable state file is treated as empty 0.018s passed
entries of past days are dropped on write 0.009s passed
hourly and fixed slots combine, the latest due one wins 0.008s passed
latestDueSlot of an empty slot list is null 0.001s passed
latestDueSlot picks the latest slot at or before now 0.010s passed
latestDueSlot skips an hourly slot with an impossible minute 0.005s passed
latestDueSlot skips invalid slots but keeps the valid ones 0.002s passed
markTriggered records exactly the branch, day, and slot 0.024s passed
triggers persist across instances 0.015s passed

Standard output

Creating nstance of class de.hoennig.werkator.watcher.AutoBuildStateTest
2026-09-03T10:11:35.502Z  WARN 144 --- [e-498126780#469] d.h.werkator.watcher.AutoBuildSlots      : skipping invalid scheduled-build time slot '25:99': expected HH:MM or ??:MM
2026-09-03T10:11:35.503Z  WARN 144 --- [e-498126780#469] d.h.werkator.watcher.AutoBuildSlots      : skipping invalid scheduled-build time slot 'nope': expected HH:MM or ??:MM
2026-09-03T10:11:35.529Z  WARN 144 --- [e-498126780#472] d.h.werkator.watcher.AutoBuildSlots      : skipping invalid scheduled-build time slot '??:70': expected ??:MM with MM from 00 to 59
2026-09-03T10:11:35.534Z  WARN 144 --- [e-498126780#472] d.h.werkator.watcher.AutoBuildSlots      : skipping invalid scheduled-build time slot '??:xx': expected ??:MM with MM from 00 to 59
2026-09-03T10:11:35.592Z  WARN 144 --- [e-498126780#477] d.h.werkator.watcher.FileAutoBuildState  : ignoring unreadable auto-builds file /tmp/werkator-autobuild-test17552735382590539444/auto-builds.json: Unrecognized token 'not': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')
 at [Source: REDACTED (`StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION` disabled); line: 1, column: 1]
2026-09-03T10:11:35.598Z  WARN 144 --- [e-498126780#477] d.h.werkator.watcher.FileAutoBuildState  : ignoring unreadable auto-builds file /tmp/werkator-autobuild-test17552735382590539444/auto-builds.json: Unrecognized token 'not': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')
 at [Source: REDACTED (`StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION` disabled); line: 1, column: 1]