Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add transport compression to attic push #43

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

fix perm mutability

37343b1
Select commit
Loading
Failed to load commit list.
Open

Add transport compression to attic push #43

fix perm mutability
37343b1
Select commit
Loading
Failed to load commit list.
Garnix CI / check stable-basic-sqlite-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.09 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.22 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.31 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.20 seconds)
server: must succeed: . /etc/atticd.env && export ATTIC_SERVER_TOKEN_HS256_SECRET_BASE64 && atticd -f /nix/store/kcmjx05fg6qpmalghp74hc43zih1k15l-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/kcmjx05fg6qpmalghp74hc43zih1k15l-server.toml --mode garbage-collector-once, in 0.60 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.03 seconds)
(finished: subtest: Check that we can trigger garbage collection, in 2.85 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.11 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.97 seconds)
client: must succeed: nix-store --delete /nix/store/dp399szhjs3n13y41h7xgnwg8rwlj99z-test2.nix

client # 🕗 test2.nix            ████████████████████████████████████████ 120 B      (6.51 KiB/s)finding garbage collector roots...
client # removing stale link from '/nix/var/nix/gcroots/auto/y7zac2v8l0jsmim4ww86qpcbsg7mwhk0' to '/tmp/nix-build-1096-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.30 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 299 ms
client # warning: error: unable to download 'https://cache.nixos.org/nix-cache-info': Couldn't resolve host name (6); retrying in 629 ms
client # warning: error: unable to download 'https://cache.nixos.org/nix-cache-info': Couldn't resolve host name (6); retrying in 1016 ms
client # warning: error: unable to download 'https://cache.nixos.org/nix-cache-info': Couldn't resolve host name (6); retrying in 2040 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.84 seconds)
(finished: subtest: Check that we can include the upload info in the payload, in 6.26 seconds)
subtest: Check that we can destroy the cache
client: must succeed: attic cache info test
client #                Public: true
client #            Public Key: test:oyLiyQwyixoh4AA8h4kn5PHRd+tswycJAOG/YJWl0zM=
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.05 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.38 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.49 seconds)
(finished: run the VM test script, in 36.45 seconds)
test script finished in 36.58s
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.11 seconds)
kill vlan (pid 7)