AutoBuildStateTest

10

tests

0

failures

0

ignored

0.022s

duration

100%

successful

Tests

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

Standard output

Creating nstance of class de.hoennig.werkator.watcher.AutoBuildStateTest
2026-09-03T09:36:13.854Z  WARN 144 --- [e-740925072#451] d.h.werkator.watcher.AutoBuildSlots      : skipping invalid scheduled-build time slot '25:99': expected HH:MM or ??:MM
2026-09-03T09:36:13.854Z  WARN 144 --- [e-740925072#451] d.h.werkator.watcher.AutoBuildSlots      : skipping invalid scheduled-build time slot 'nope': expected HH:MM or ??:MM
2026-09-03T09:36:13.858Z  WARN 144 --- [e-740925072#454] d.h.werkator.watcher.AutoBuildSlots      : skipping invalid scheduled-build time slot '??:70': expected ??:MM with MM from 00 to 59
2026-09-03T09:36:13.859Z  WARN 144 --- [e-740925072#454] d.h.werkator.watcher.AutoBuildSlots      : skipping invalid scheduled-build time slot '??:xx': expected ??:MM with MM from 00 to 59
2026-09-03T09:36:13.875Z  WARN 144 --- [e-740925072#459] d.h.werkator.watcher.FileAutoBuildState  : ignoring unreadable auto-builds file /tmp/werkator-autobuild-test2363132639391394922/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-03T09:36:13.875Z  WARN 144 --- [e-740925072#459] d.h.werkator.watcher.FileAutoBuildState  : ignoring unreadable auto-builds file /tmp/werkator-autobuild-test2363132639391394922/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]