mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-27 19:02:47 +01:00
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.
This commit is contained in:
1 parent
97e1637393
commit
d57b2d7ed3
1 file changed
+4
@@ -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
|
||||
|
||||
Reference in new issue
Block a user