Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion host/systemd/ci-fleet-health.timer
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Description=Run ci-fleet health check every five minutes

[Timer]
OnBootSec=2min
OnActiveSec=2min
OnUnitActiveSec=5min
AccuracySec=30s
Persistent=true
Expand Down
3 changes: 3 additions & 0 deletions scripts/test-install-worker-controller.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
set -Eeuo pipefail

repo_root=$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)
health_timer=$repo_root/host/systemd/ci-fleet-health.timer
grep -Fqx 'OnActiveSec=2min' "$health_timer" || { printf 'FAIL: health timer lacks activation-relative initial trigger\n' >&2; exit 1; }
! grep -Fq 'OnBootSec=' "$health_timer" || { printf 'FAIL: health timer initial trigger is boot-relative\n' >&2; exit 1; }
tmp=$(mktemp -d)
trap 'rm -rf "$tmp"' EXIT
fake_bin=$tmp/bin
Expand Down