AutoBuildStateTest

10

tests

0

failures

0

ignored

0.021s

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.002s 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.008s passed
triggers persist across instances 0.002s passed

Standard output

Creating nstance of class de.hoennig.werkator.watcher.AutoBuildStateTest
2026-09-03T12:35:18.817Z  WARN 146 --- [e-474866011#469] d.h.werkator.watcher.AutoBuildSlots      : skipping invalid scheduled-build time slot '25:99': expected HH:MM or ??:MM
2026-09-03T12:35:18.817Z  WARN 146 --- [e-474866011#469] d.h.werkator.watcher.AutoBuildSlots      : skipping invalid scheduled-build time slot 'nope': expected HH:MM or ??:MM
2026-09-03T12:35:18.821Z  WARN 146 --- [e-474866011#472] d.h.werkator.watcher.AutoBuildSlots      : skipping invalid scheduled-build time slot '??:70': expected ??:MM with MM from 00 to 59
2026-09-03T12:35:18.822Z  WARN 146 --- [e-474866011#472] d.h.werkator.watcher.AutoBuildSlots      : skipping invalid scheduled-build time slot '??:xx': expected ??:MM with MM from 00 to 59
2026-09-03T12:35:18.835Z  WARN 146 --- [e-474866011#477] d.h.werkator.watcher.FileAutoBuildState  : ignoring unreadable auto-builds file /tmp/werkator-autobuild-test13193174349847947214/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:35:18.836Z  WARN 146 --- [e-474866011#477] d.h.werkator.watcher.FileAutoBuildState  : ignoring unreadable auto-builds file /tmp/werkator-autobuild-test13193174349847947214/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]