From 1bbdbdb877b50b055fc74c2fc5e08609b5a23685 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Thu, 28 May 2026 11:26:10 +0200 Subject: [PATCH] fix(update): load .env before invoking python updaters `update.yml` jobs (Docker image versions, repository refs) shelled straight into `python3 -m cli.contributing.update.{docker,repository}` without sourcing the project dotenv. After eb4bcd23a removed the `.get(..., default)` fallback in resolve_max_fetch_workers(), KeyError: 'INFINITO_WORKER_FETCH' surfaced on every run. Both wrapper scripts now `make dotenv` (idempotent) and `set -a; . .env; set +a` before exec'ing the updater, restoring the SPOT env chain on CI runners that don't go through compose. Co-Authored-By: Claude Opus 4.7 --- scripts/github/update/image_versions.sh | 4 ++++ scripts/github/update/repository_refs.sh | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/scripts/github/update/image_versions.sh b/scripts/github/update/image_versions.sh index c3eab1c218..fb45fcdf86 100755 --- a/scripts/github/update/image_versions.sh +++ b/scripts/github/update/image_versions.sh @@ -5,4 +5,8 @@ SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)" REPO_ROOT="$(cd -- "${SCRIPT_DIR}/../../.." && pwd)" cd "${REPO_ROOT}" +make dotenv >/dev/null +set -a +. .env +set +a python3 -m cli.contributing.update.docker "$@" diff --git a/scripts/github/update/repository_refs.sh b/scripts/github/update/repository_refs.sh index e171f3bc72..cc85b9ece6 100755 --- a/scripts/github/update/repository_refs.sh +++ b/scripts/github/update/repository_refs.sh @@ -5,4 +5,8 @@ SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)" REPO_ROOT="$(cd -- "${SCRIPT_DIR}/../../.." && pwd)" cd "${REPO_ROOT}" +make dotenv >/dev/null +set -a +. .env +set +a python3 -m cli.contributing.update.repository "$@"