AutoBuildStateTest

10

tests

0

failures

0

ignored

0.029s

duration

100%

successful

Tests

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

Standard output

Creating nstance of class de.hoennig.werkator.watcher.AutoBuildStateTest
2026-09-03T12:29:26.525Z  WARN 144 --- [-1330045071#469] d.h.werkator.watcher.AutoBuildSlots      : skipping invalid scheduled-build time slot '25:99': expected HH:MM or ??:MM
2026-09-03T12:29:26.525Z  WARN 144 --- [-1330045071#469] d.h.werkator.watcher.AutoBuildSlots      : skipping invalid scheduled-build time slot 'nope': expected HH:MM or ??:MM
2026-09-03T12:29:26.535Z  WARN 144 --- [-1330045071#472] d.h.werkator.watcher.AutoBuildSlots      : skipping invalid scheduled-build time slot '??:70': expected ??:MM with MM from 00 to 59
2026-09-03T12:29:26.535Z  WARN 144 --- [-1330045071#472] d.h.werkator.watcher.AutoBuildSlots      : skipping invalid scheduled-build time slot '??:xx': expected ??:MM with MM from 00 to 59
2026-09-03T12:29:26.554Z  WARN 144 --- [-1330045071#477] d.h.werkator.watcher.FileAutoBuildState  : ignoring unreadable auto-builds file /tmp/werkator-autobuild-test13144087549437947113/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-03T12:29:26.554Z  WARN 144 --- [-1330045071#477] d.h.werkator.watcher.FileAutoBuildState  : ignoring unreadable auto-builds file /tmp/werkator-autobuild-test13144087549437947113/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]