From 68ab35c9bb121525d0713d97676daaf28a1cb9c6 Mon Sep 17 00:00:00 2001 From: Martin Ball Date: Wed, 25 Nov 2026 01:10:40 +0000 Subject: [PATCH] CI: a failed deps-profile hash stops the step instead of naming every entry v2- Co-Authored-By: Claude Opus 5.5 --- .github/workflows/workspace.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/workspace.yml b/.github/workflows/workspace.yml index b8d2afa3df..99e5c571d5 100644 --- a/.github/workflows/workspace.yml +++ b/.github/workflows/workspace.yml @@ -78,7 +78,8 @@ jobs: - id: profile run: | echo "profile=$(cat .config/cargo-dev.toml .config/cargo-ci.toml | sha256sum | cut -c1-12)" >> "$GITHUB_OUTPUT" - echo "deps-profile=$(python3 -I - <<'PY' + # An assignment, so a failure stops the step (`bash -e`) instead of naming every entry `v2-`. + deps=$(python3 -I - <<'PY' import hashlib, json, tomllib kept = [] for path in (".config/cargo-dev.toml", ".config/cargo-ci.toml"): @@ -87,7 +88,8 @@ jobs: kept.append([dev, dev.pop("package", {}).get("*", {})]) print(hashlib.sha256(json.dumps(kept, sort_keys=True).encode()).hexdigest()[:12]) PY - )" >> "$GITHUB_OUTPUT" + ) + echo "deps-profile=$deps" >> "$GITHUB_OUTPUT" # The Linux leg keeps the compiled workspace crates between runs (`cache-workspace-crates`): each # main run saves a rolling cache entry of its own, every run restores the newest one, and Cargo