Watch
0
0
Fork
You've already forked hyperhive
0

agent trust bundle: retry the root fetch inside its start job so a dns blip at boot queues the harness instead of failing it

This commit is contained in:
atlas 2026-11-01 10:50:51 +01:00 • committed by mara
commit abf21683b9

View file

@ -0,0 +1,18 @@
# `checks.script-test-retry-in-job` — runs ../host-modules/lib/retry-in-job.nix's
# `retry_in_job` against a command that fails a set number of times. The cases
# are in ./retry-in-job.sh.
#
# What runs is the rendered helper, sourced as the trust-bundle unit's script
# includes it.
{
pkgs,
...
}:
pkgs.runCommand "hyperhive-script-test-retry-in-job"
{
HELPER = pkgs.writeText "retry-in-job.sh" (import ../host-modules/lib/retry-in-job.nix { });
}
''
${pkgs.bash}/bin/bash ${./retry-in-job.sh}
touch "$out"
''