From 3bf4740ad3e9bebac63bbfdca2e9a35a6f648453 Mon Sep 17 00:00:00 2001 From: ahuston-0 Date: Mon, 10 Mar 2025 01:06:56 -0400 Subject: [PATCH 1/2] remove cache max limit --- utils/attic-push.bash | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/utils/attic-push.bash b/utils/attic-push.bash index 80755ba..0c15588 100755 --- a/utils/attic-push.bash +++ b/utils/attic-push.bash @@ -6,10 +6,16 @@ set -e # retrieve all paths under 2G +# nix_paths=$(nix path-info --json --all --closure-size \ +# | jq 'map_values(.closureSize | select(. < 2e9)) | to_entries | sort_by(.value)' \ +# | jq 'map(.key) | join("\n")' | sed -E -e 's/\\n/\n/g;s/^"//g;s/"$//g') + +# retrieve all paths nix_paths=$(nix path-info --json --all --closure-size \ - | jq 'map_values(.closureSize | select(. < 2e9)) | to_entries | sort_by(.value)' \ + | jq 'map_values(.closureSize | select(true)) | to_entries | sort_by(.value)' \ | jq 'map(.key) | join("\n")' | sed -E -e 's/\\n/\n/g;s/^"//g;s/"$//g') + readarray -t nix_path_array < <(echo "$nix_paths") batchsize=1000 From 3cfdf94428c41339bad6dd41c6bbb8e78063aaae Mon Sep 17 00:00:00 2001 From: ahuston-0 Date: Mon, 10 Mar 2025 01:23:20 -0400 Subject: [PATCH 2/2] reorder oops --- .github/workflows/flake-health-checks.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/flake-health-checks.yml b/.github/workflows/flake-health-checks.yml index a3fc849..344be26 100644 --- a/.github/workflows/flake-health-checks.yml +++ b/.github/workflows/flake-health-checks.yml @@ -16,6 +16,8 @@ jobs: steps: - uses: DeterminateSystems/nix-installer-action@main + - uses: actions/checkout@v4 + - name: Restore Nix store id: restore uses: nix-community/cache-nix-action@v6 @@ -33,8 +35,6 @@ jobs: token: ${{ secrets.ATTIC_TOKEN }} skip-push: "true" - - uses: actions/checkout@v4 - - run: nix flake check --accept-flake-config - run: nix ./utils/attic-push.bash @@ -48,6 +48,8 @@ jobs: steps: - uses: DeterminateSystems/nix-installer-action@main + - uses: actions/checkout@v4 + - name: Restore Nix store id: restore uses: nix-community/cache-nix-action@v6 @@ -65,8 +67,6 @@ jobs: token: ${{ secrets.ATTIC_TOKEN }} skip-push: "true" - - uses: actions/checkout@v4 - - name: Build all outputs run: nix run git+https://nayeonie.com/ahuston-0/flake-update-diff -- --build .