Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions .github/workflows/nix-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,17 +101,6 @@ jobs:
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
# Uploaded before any build so the substituter answers from the very
# first config instead of only after the first push.
- name: Publish nix-cache-info
run: |
printf 'StoreDir: /nix/store\nWantMassQuery: 1\nPriority: 100\n' \
| aws s3 cp - "s3://icedos-nix-cache-fyi/nix-cache-info" --region eu-central-1
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: eu-central-1
AWS_DEFAULT_REGION: eu-central-1
- name: Test cache server
run: |
# A missing path must answer 403/404 through CloudFront + Cloudflare.
Expand Down
10 changes: 2 additions & 8 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -217,14 +217,8 @@ build_and_push() {
missing_paths=()
printf '%s\n' "${closure_paths[@]}" | xargs -P 8 -I{} bash -c '
h=$(basename "{}" | cut -c1-32)
code=000
for i in 1 2 3; do
code=$(curl -s -o /dev/null -w "%{http_code}" --head --max-time 20 "https://cache.nixos.org/$h.narinfo")
[ "$code" = 000 ] || break
sleep $((i * 2))
done
# a failed probe is not proof of absence; pushing beats permanent skip
[ "$code" = 200 ] || printf "%s\n" "{}"
code=$(curl -s -o /dev/null -w "%{http_code}" --head --max-time 20 "https://cache.nixos.org/$h.narinfo")
[ "$code" != 200 ] && printf "%s\n" "{}"
' >"$out/missing-paths" || true
mapfile -t missing_paths < "$out/missing-paths"
echo "$cfg: $((${#closure_paths[@]} - ${#missing_paths[@]})) paths in upstream, pushing ${#missing_paths[@]}"
Expand Down
20 changes: 10 additions & 10 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 8 additions & 2 deletions state/tracked-inputs.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
{
"nix-cachyos-kernel": "290b62ec266d15827ab79852483e434eeba912e0",
"nix-cachyos-kernel": {
"rev": "f39e7d511ce7c2c95a12b828b72d9463f329e68b",
"repo": ""
},
"ambiled": "8a9a9042f77129ea5aded8a98f0804a673332c1b",
"prefixer": "b7c0a01125ad1b908363d70a51731ad7303ede5e",
"plasmazones": "26fc9144b08591a371b64b9d36cc74ba233bd241",
"plasmazones": {
"rev": "f2c70b4323f1726ff283404c0e484004d9967275",
"repo": ""
},
"jovian": "9ffc5dc5af266c2e44066f22e5496274cf93a1a6"
}
Loading