Add transport compression to attic push #43
Garnix CI / check basic-postgres-minio [x86_64-linux]
succeeded
Aug 13, 2023 in 6m 0s
Run results
Build succeeded
Details
Last 100 lines of logs:
client # Error: AccessError: Access error: User does not have permission to complete this action.
(finished: must fail: attic push readonly:test /nix/store/5xhswk059zawdmpm65r5ddyxrias0wkz-test.nix
, in 0.05 seconds)
client: must fail: attic push anon:test /nix/store/5xhswk059zawdmpm65r5ddyxrias0wkz-test.nix
2>&1
client # Error: Unauthorized: Unauthorized.
(finished: must fail: attic push anon:test /nix/store/5xhswk059zawdmpm65r5ddyxrias0wkz-test.nix
2>&1, in 0.04 seconds)
(finished: subtest: Check that we cannot push without required permissions, in 0.10 seconds)
subtest: Check that we can make the cache public
client: must fail: curl -sL --fail-with-body http://server:8080/test/nix-cache-info
(finished: must fail: curl -sL --fail-with-body http://server:8080/test/nix-cache-info, in 0.02 seconds)
client: must fail: curl -sL --fail-with-body http://server:8080/test/5xhswk059zawdmpm65r5ddyxrias0wkz.narinfo
(finished: must fail: curl -sL --fail-with-body http://server:8080/test/5xhswk059zawdmpm65r5ddyxrias0wkz.narinfo, in 0.02 seconds)
client: must succeed: attic cache configure test --public
client # ✅ Configured "test" on "root"
(finished: must succeed: attic cache configure test --public, in 0.07 seconds)
client: must succeed: curl -sL --fail-with-body http://server:8080/test/nix-cache-info
(finished: must succeed: curl -sL --fail-with-body http://server:8080/test/nix-cache-info, in 0.02 seconds)
client: must succeed: curl -sL --fail-with-body http://server:8080/test/5xhswk059zawdmpm65r5ddyxrias0wkz.narinfo
(finished: must succeed: curl -sL --fail-with-body http://server:8080/test/5xhswk059zawdmpm65r5ddyxrias0wkz.narinfo, in 0.02 seconds)
(finished: subtest: Check that we can make the cache public, in 0.16 seconds)
subtest: Check that we can trigger garbage collection
client: must succeed: curl -sL --fail-with-body http://server:8080/test/5xhswk059zawdmpm65r5ddyxrias0wkz.narinfo
(finished: must succeed: curl -sL --fail-with-body http://server:8080/test/5xhswk059zawdmpm65r5ddyxrias0wkz.narinfo, in 0.02 seconds)
client: must succeed: attic cache configure test --retention-period 1s
client # ✅ Configured "test" on "root"
(finished: must succeed: attic cache configure test --retention-period 1s, in 0.05 seconds)
server: must succeed: . /etc/atticd.env && export ATTIC_SERVER_TOKEN_HS256_SECRET_BASE64 && atticd -f /nix/store/gci5zc2yj98r32wv8g48bqz00g1gds1q-server.toml --mode garbage-collector-once
server # Attic Server 0.1.0 (release)
(finished: must succeed: . /etc/atticd.env && export ATTIC_SERVER_TOKEN_HS256_SECRET_BASE64 && atticd -f /nix/store/gci5zc2yj98r32wv8g48bqz00g1gds1q-server.toml --mode garbage-collector-once, in 0.06 seconds)
client: must fail: curl -sL --fail-with-body http://server:8080/test/5xhswk059zawdmpm65r5ddyxrias0wkz.narinfo
(finished: must fail: curl -sL --fail-with-body http://server:8080/test/5xhswk059zawdmpm65r5ddyxrias0wkz.narinfo, in 0.02 seconds)
(finished: subtest: Check that we can trigger garbage collection, in 2.17 seconds)
subtest: Check that we can include the upload info in the payload
client: must succeed: /nix/store/jvdj738016ymlfaln6a2dz51j21kkm90-make-drv test2.nix
(finished: must succeed: /nix/store/jvdj738016ymlfaln6a2dz51j21kkm90-make-drv test2.nix, in 0.03 seconds)
client: must succeed: nix-build --no-out-link test2.nix
client # this derivation will be built:
client # /nix/store/bni4wmsh2j35j134w8p3fa74r4dnk1wr-test2.nix.drv
client # building '/nix/store/bni4wmsh2j35j134w8p3fa74r4dnk1wr-test2.nix.drv'...
(finished: must succeed: nix-build --no-out-link test2.nix, in 0.16 seconds)
client: must succeed: attic push --force-preamble test /nix/store/dp399szhjs3n13y41h7xgnwg8rwlj99z-test2.nix
client # ⚙️ Pushing 1 paths to "test" on "root" (0 already cached, 0 in upstream)...
client # 🕐 test2.nix ███ 8 B (16.00 EiB/s)🕑 test2.nix ████████ 21 B (20.51 KiB/s)🕒 test2.nix █████████ 24 B (11.72 KiB/s)🕓 test2.nix ███████████ 32 B (15.62 KiB/s)🕔 test2.nix ████████████ 33 B (10.74 KiB/s)🕕 test2.nix ██████████████ 40 B (9.77 KiB/s)🕖 test2.nix █████████████████ 48 B (9.38 KiB/s)🕗 test2.nix ███…
(finished: must succeed: attic push --force-preamble test /nix/store/dp399szhjs3n13y41h7xgnwg8rwlj99z-test2.nix
, in 0.89 seconds)
client: must succeed: nix-store --delete /nix/store/dp399szhjs3n13y41h7xgnwg8rwlj99z-test2.nix
client # 🕗 test2.nix ████████████████████████████████████████ 120 B (6.17 KiB/s)finding garbage collector roots...
client # removing stale link from '/nix/var/nix/gcroots/auto/x0fx15r979cjgf3fs23sd1h8jwpaw1mn' to '/tmp/nix-build-1070-0/result'
client # deleting '/nix/store/dp399szhjs3n13y41h7xgnwg8rwlj99z-test2.nix'
client # deleting unused links...
client # note: currently hard linking saves 0.00 MiB
(finished: must succeed: nix-store --delete /nix/store/dp399szhjs3n13y41h7xgnwg8rwlj99z-test2.nix
, in 0.39 seconds)
client: must succeed: nix-store -r /nix/store/dp399szhjs3n13y41h7xgnwg8rwlj99z-test2.nix
client # warning: error: unable to download 'https://cache.nixos.org/nix-cache-info': Couldn't resolve host name (6); retrying in 286 ms
client # warning: error: unable to download 'https://cache.nixos.org/nix-cache-info': Couldn't resolve host name (6); retrying in 612 ms
client # warning: error: unable to download 'https://cache.nixos.org/nix-cache-info': Couldn't resolve host name (6); retrying in 1161 ms
client # warning: error: unable to download 'https://cache.nixos.org/nix-cache-info': Couldn't resolve host name (6); retrying in 2271 ms
client # warning: unable to download 'https://cache.nixos.org/nix-cache-info': Couldn't resolve host name (6)
client # this path will be fetched (0.00 MiB download, 0.00 MiB unpacked):
client # /nix/store/dp399szhjs3n13y41h7xgnwg8rwlj99z-test2.nix
client # copying path '/nix/store/dp399szhjs3n13y41h7xgnwg8rwlj99z-test2.nix' from 'http://server:8080/test'...
client # warning: you did not specify '--add-root'; the result might be removed by the garbage collector
(finished: must succeed: nix-store -r /nix/store/dp399szhjs3n13y41h7xgnwg8rwlj99z-test2.nix
, in 4.65 seconds)
(finished: subtest: Check that we can include the upload info in the payload, in 6.12 seconds)
subtest: Check that we can destroy the cache
client: must succeed: attic cache info test
client # Public: true
client # Public Key: test:auyC55HAqbmRpG7ZEErZj1PYfyH0I8nr9AJ+5UNDT/Y=
client # Binary Cache Endpoint: http://server:8080/test
client # API Endpoint: http://server:8080/
client # Store Directory: /nix/store
client # Priority: 41
client # Upstream Cache Keys: ["cache.nixos.org-1"]
client # Retention Period: 1
(finished: must succeed: attic cache info test, in 0.04 seconds)
client: must succeed: attic cache destroy --no-confirm test
client # 🗑️ The cache was destroyed.
(finished: must succeed: attic cache destroy --no-confirm test, in 0.07 seconds)
client: must fail: attic cache info test
client # Error: NoSuchCache: The requested cache does not exist.
(finished: must fail: attic cache info test, in 0.04 seconds)
client: must fail: curl -sL --fail-with-body http://server:8080/test/nix-cache-info
(finished: must fail: curl -sL --fail-with-body http://server:8080/test/nix-cache-info, in 0.02 seconds)
(finished: subtest: Check that we can destroy the cache, in 0.18 seconds)
(finished: run the VM test script, in 34.46 seconds)
test script finished in 34.83s
cleanup
kill machine (pid 8)
client # qemu-kvm: terminating on signal 15 from pid 6 (/nix/store/6qk2ybm2yx2dxmx9h4dikr1shjhhbpfr-python3-3.10.11/bin/python3.10)
kill machine (pid 19)
server # qemu-kvm: terminating on signal 15 from pid 6 (/nix/store/6qk2ybm2yx2dxmx9h4dikr1shjhhbpfr-python3-3.10.11/bin/python3.10)
(finished: cleanup, in 0.40 seconds)
kill vlan (pid 7)
Loading