From cebd293c5a2868656e3b87e70c8eead115a0cdab Mon Sep 17 00:00:00 2001 From: autonomic-bot Date: Wed, 17 Jun 2026 12:34:03 +0000 Subject: [PATCH] fix(canon): add bash to nightly-sweep runtimeInputs (real timer fire caught missing bash) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The deployed sweep service (writeShellApplication) sets a clean PATH from runtimeInputs only; mirror_sync shells out via subprocess.run(['bash', recipe-mirror-sync.sh, r]) → FileNotFoundError 'bash' on the real systemd fire (manual ssh runs had bash on PATH and masked it). Add bash. Co-Authored-By: Claude Opus 4.8 --- nix/modules/nightly-sweep.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nix/modules/nightly-sweep.nix b/nix/modules/nightly-sweep.nix index 7a91e03..a41f6d7 100644 --- a/nix/modules/nightly-sweep.nix +++ b/nix/modules/nightly-sweep.nix @@ -18,7 +18,10 @@ let sweep = pkgs.writeShellApplication { name = "cc-ci-nightly-sweep"; # util-linux provides `script` (abra's PTY wrapper for backup/restore TTY ops) — same as cc-ci-run. - runtimeInputs = with pkgs; [ abra docker git curl jq gnused gnugrep gnutar coreutils util-linux procps ]; + # bash: the sweep's mirror_sync shells out to `bash scripts/recipe-mirror-sync.sh`; writeShellApplication + # sets a clean PATH limited to runtimeInputs, so bash must be listed (a real timer fire caught its + # absence — manual ssh runs had bash on PATH and masked it). + runtimeInputs = with pkgs; [ bash abra docker git curl jq gnused gnugrep gnutar coreutils util-linux procps ]; text = '' export HOME=/root export PLAYWRIGHT_BROWSERS_PATH=${pkgs.playwright-driver.browsers}