From d57b2d7ed39083b7c33c894209a6a5fa84401289 Mon Sep 17 00:00:00 2001 From: LGUG2Z Date: Fri, 6 Nov 2026 09:14:10 -0800 Subject: [PATCH] fix(ci): build from source when a download from the cache fails A NAR of 460 MB was cut by the edge of the cache ("Stream error in the HTTP/2 framing layer") and the resumed request failed the same way, so the job kwin-events failed before its VM test started. With fallback = true Nix builds the derivation from source when a substitute cannot be downloaded: one dropped connection costs minutes of compiling in that job, not the job. HTTP/2 is left at its default: nothing shows that turning it off prevents the error. --- .github/actions/nix/action.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/actions/nix/action.yaml b/.github/actions/nix/action.yaml index 565be638..102eabaf 100644 --- a/.github/actions/nix/action.yaml +++ b/.github/actions/nix/action.yaml @@ -74,12 +74,16 @@ runs: # named so that rerun-no-kvm.yaml can tell this failure from a failed suite and run it again. test -w /dev/kvm || { echo "::error::this runner has no usable /dev/kvm"; exit 1; } + # `fallback` builds a derivation from source when its substitute cannot be downloaded (a NAR of 460 MB + # that the cache served wrongly once, with `Stream error in the HTTP/2 framing layer`), so one dropped + # connection costs minutes of compiling in that job and not the job. HTTP/2 stays at its default. - name: Install nix if: inputs.install == 'true' uses: cachix/install-nix-action@v31 with: extra_nix_config: | accept-flake-config = false + fallback = true system-features = nixos-test benchmark big-parallel ${{ inputs.kvm == 'true' && 'kvm' || '' }} # The token is handed over only where writing is wanted; without it the action only reads. The cache