From 560eeae9637eec9ca82f599d4c9624f4442bd548 Mon Sep 17 00:00:00 2001 From: yukkop Date: Thu, 10 Sep 2026 10:21:50 +0000 Subject: [PATCH] feat: +nix-downloaf-buffer-check --- .../workflows/check-nix-download-buffer.yaml | 39 +++++++++++++++++++ .gitea/workflows/deploy-neuro.yaml | 30 -------------- 2 files changed, 39 insertions(+), 30 deletions(-) create mode 100644 .gitea/workflows/check-nix-download-buffer.yaml diff --git a/.gitea/workflows/check-nix-download-buffer.yaml b/.gitea/workflows/check-nix-download-buffer.yaml new file mode 100644 index 00000000..785fa7eb --- /dev/null +++ b/.gitea/workflows/check-nix-download-buffer.yaml @@ -0,0 +1,39 @@ +--- +# yamllint disable rule:line-length +name: check Nix download buffer + +on: # yamllint disable-line rule:truthy + workflow_dispatch: + +concurrency: + group: check-nix-download-buffer + cancel-in-progress: true + +jobs: + check: + name: check Nix download buffer + runs-on: gross-nix-x86-perf + timeout-minutes: 20 + env: + NIX_CONFIG: | + fallback = false + extra-substituters = https://cache.nixos.org https://cache.hectic-lab.com/hectic + trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= hectic:KMQsKow4SoA9K2vOJlOljmx7/Zpf91Yy+5qEtxDDCzA= + steps: + - name: Inspect Nix client + run: | + set -eu + nix --version + nix config show download-buffer-size + nix config show fallback + nix config show substituters + + - name: Ping Attic cache + run: | + set -eu + nix store ping --store https://cache.hectic-lab.com/hectic + + - name: Download small cache path + run: | + set -eu + nix build --no-link --print-out-paths nixpkgs#hello diff --git a/.gitea/workflows/deploy-neuro.yaml b/.gitea/workflows/deploy-neuro.yaml index a17f1711..d189fffd 100644 --- a/.gitea/workflows/deploy-neuro.yaml +++ b/.gitea/workflows/deploy-neuro.yaml @@ -10,39 +10,9 @@ concurrency: cancel-in-progress: false jobs: - nix-download-buffer-check: - name: check Nix download buffer - if: ${{ gitea.ref == 'refs/heads/master' }} - runs-on: gross-nix-x86-perf - timeout-minutes: 20 - env: - NIX_CONFIG: | - fallback = false - extra-substituters = https://cache.nixos.org https://cache.hectic-lab.com/hectic - trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= hectic:KMQsKow4SoA9K2vOJlOljmx7/Zpf91Yy+5qEtxDDCzA= - steps: - - name: Inspect Nix client - run: | - set -eu - nix --version - nix config show download-buffer-size - nix config show fallback - nix config show substituters - - - name: Ping Attic cache - run: | - set -eu - nix store ping --store https://cache.hectic-lab.com/hectic - - - name: Download small cache path - run: | - set -eu - nix build --no-link --print-out-paths nixpkgs#hello - deploy: name: deploy neuro from performance node if: ${{ gitea.ref == 'refs/heads/master' }} - needs: nix-download-buffer-check runs-on: gross-nix-x86-perf timeout-minutes: 435 env: