From 37a9c0d2d9aad4948ae27790cabb9ca42666e22c Mon Sep 17 00:00:00 2001 From: "developing-today[bot]" <5454422+developing-today[bot]@users.noreply.github.com> Date: Tue, 3 Nov 2026 21:06:59 -0600 Subject: [PATCH] ci: make Magic Nix Cache best-effort (#774) --- .github/ci-policy.md | 6 ++++++ .github/workflows/id-bench.yml | 1 + .github/workflows/id-check.yml | 2 ++ .github/workflows/id-e2e-nightly.yml | 1 + .github/workflows/mcpx-docs.yml | 2 ++ .github/workflows/mcpx-nixbuild.yml | 1 + .github/workflows/mcpx-realsoftware-nightly.yml | 1 + 7 files changed, 14 insertions(+) diff --git a/.github/ci-policy.md b/.github/ci-policy.md index c6046afda5..8e55fa3876 100644 --- a/.github/ci-policy.md +++ b/.github/ci-policy.md @@ -165,3 +165,9 @@ pair `queue: max` with a cancel-in-progress expression that can evaluate true for `issues`/`pull_request_target` events (a GitHub validation error, openchamber#84) — the sweeper stays schedule-only for this reason. + +## Nix cache backend reliability (#774) + +Magic Nix Cache is a performance optimization, not a CI verdict. The eight `DeterminateSystems/magic-nix-cache-action` steps in `id-check.yml`, `id-bench.yml`, `id-e2e-nightly.yml`, `mcpx-docs.yml`, `mcpx-nixbuild.yml`, and `mcpx-realsoftware-nightly.yml` are best-effort (`continue-on-error: true`): a cache service throttle (including HTTP 418) or 5xx must fall through to a cold build, while the subsequent build/check remains authoritative. + +The required `nix flake check` in `nix-ci.yml` intentionally has no shared cache. The October 2026 #774 incidents on PRs #771 and #747 showed that cache-backend failures can masquerade as code failures. This change keeps the current Magic Nix Cache / GitHub Actions cache choice and does not migrate to Cachix or another backend; evaluate that separately. diff --git a/.github/workflows/id-bench.yml b/.github/workflows/id-bench.yml index 488881d8d0..38a7271c7f 100644 --- a/.github/workflows/id-bench.yml +++ b/.github/workflows/id-bench.yml @@ -56,6 +56,7 @@ jobs: # Same store cache as the PR gate, so the bench build starts warm # (#288). - uses: DeterminateSystems/magic-nix-cache-action@84c0677f58dcedf3b91f8223ce36a9ea5b3c84b7 # v15 + continue-on-error: true with: # FlakeHub Cache off (#2120): no id-token is granted and the # developing-today org is not registered, so the action's diff --git a/.github/workflows/id-check.yml b/.github/workflows/id-check.yml index 1f3d26828b..970420e938 100644 --- a/.github/workflows/id-check.yml +++ b/.github/workflows/id-check.yml @@ -144,6 +144,7 @@ jobs: # Cache the nix store on GitHub's cache so PRs do not rebuild # unchanged derivations from a cold store every run (#288). - uses: DeterminateSystems/magic-nix-cache-action@84c0677f58dcedf3b91f8223ce36a9ea5b3c84b7 # v15 + continue-on-error: true with: # FlakeHub Cache off (#2120): no id-token is granted and the # developing-today org is not registered, so the action's @@ -242,6 +243,7 @@ jobs: extra-conf: | accept-flake-config = true - uses: DeterminateSystems/magic-nix-cache-action@84c0677f58dcedf3b91f8223ce36a9ea5b3c84b7 # v15 + continue-on-error: true with: # FlakeHub Cache off (#2120): no id-token is granted and the # developing-today org is not registered, so the action's diff --git a/.github/workflows/id-e2e-nightly.yml b/.github/workflows/id-e2e-nightly.yml index 3507978e84..afee985219 100644 --- a/.github/workflows/id-e2e-nightly.yml +++ b/.github/workflows/id-e2e-nightly.yml @@ -41,6 +41,7 @@ jobs: # Same store cache as the PR gate, so the nightly run starts warm # and unchanged derivations are not rebuilt from cold (#288). - uses: DeterminateSystems/magic-nix-cache-action@84c0677f58dcedf3b91f8223ce36a9ea5b3c84b7 # v15 + continue-on-error: true with: # FlakeHub Cache off (#2120): no id-token is granted and the # developing-today org is not registered, so the action's diff --git a/.github/workflows/mcpx-docs.yml b/.github/workflows/mcpx-docs.yml index 11207144ed..0772179e35 100644 --- a/.github/workflows/mcpx-docs.yml +++ b/.github/workflows/mcpx-docs.yml @@ -42,6 +42,7 @@ jobs: - uses: DeterminateSystems/nix-installer-action@3138316df39ed29be04236d7ffc686fa525866aa # v23 - uses: DeterminateSystems/magic-nix-cache-action@84c0677f58dcedf3b91f8223ce36a9ea5b3c84b7 # v15 + continue-on-error: true with: # Same cache posture as mcpx-nixbuild.yml (#2120): no # FlakeHub, the GitHub Actions cache is the cache. @@ -94,6 +95,7 @@ jobs: - uses: DeterminateSystems/nix-installer-action@3138316df39ed29be04236d7ffc686fa525866aa # v23 - uses: DeterminateSystems/magic-nix-cache-action@84c0677f58dcedf3b91f8223ce36a9ea5b3c84b7 # v15 + continue-on-error: true with: use-flakehub: false use-gha-cache: true diff --git a/.github/workflows/mcpx-nixbuild.yml b/.github/workflows/mcpx-nixbuild.yml index 6756514175..91558689a0 100644 --- a/.github/workflows/mcpx-nixbuild.yml +++ b/.github/workflows/mcpx-nixbuild.yml @@ -50,6 +50,7 @@ jobs: # Warm store: dependency-bump PRs are rare, but when they come the # build should not start from cold (#288). - uses: DeterminateSystems/magic-nix-cache-action@84c0677f58dcedf3b91f8223ce36a9ea5b3c84b7 # v15 + continue-on-error: true with: # FlakeHub Cache off (#2120): no id-token is granted and the # developing-today org is not registered, so the action's diff --git a/.github/workflows/mcpx-realsoftware-nightly.yml b/.github/workflows/mcpx-realsoftware-nightly.yml index 75dd776da1..7dee53cf9c 100644 --- a/.github/workflows/mcpx-realsoftware-nightly.yml +++ b/.github/workflows/mcpx-realsoftware-nightly.yml @@ -43,6 +43,7 @@ jobs: - uses: DeterminateSystems/nix-installer-action@3138316df39ed29be04236d7ffc686fa525866aa # v23 - uses: DeterminateSystems/magic-nix-cache-action@84c0677f58dcedf3b91f8223ce36a9ea5b3c84b7 # v15 + continue-on-error: true with: # FlakeHub Cache off (#2120), same as the other nightly legs. use-flakehub: false