fix(deploy): halkyon.li's heavy sidecars started after every boot (ADR 0039, D6)

A reboot or a power cut between 01:55 and 05:00 left them stopped until the
next morning: halkyon-morning.timer now also fires two minutes after boot.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
This commit is contained in:
Tizian 「ティツィアーン」 2026-11-10 20:00:58 +01:00
commit 086b980947
Signed by: raisondetredev
GPG key ID: 07F6FCF405488B64

View file

@ -137,6 +137,20 @@ void main() {
expect(setting(evening, 'ExecStart'), contains('night.sh stop'));
expect(setting(morning, 'ExecStart'), contains('night.sh start'));
});
test('starts the heavy sidecars after every boot too', () {
// A reboot or a power cut between 01:55 and 05:00 would otherwise leave them
// stopped (unless-stopped keeps a stopped container so) until the next morning;
// the runner's own timer never catches up, so nothing clashes with it.
expect(
setting(read('deploy/runner/halkyon-morning.timer'), 'OnBootSec'),
isNotNull,
);
expect(
setting(read('deploy/runner/forgejo-runner.timer'), 'Persistent'),
'false',
);
});
});
});