| 7 Sep 2021 |
baloo |
| 01:36:07 |
baloo | * - boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
+ #boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
| 01:36:18 |
baloo | this breaks fetchurl for me | 01:36:26 |
tomberek | that is odd | 02:56:36 |
baloo | you tell me about it | 03:02:22 |
tomberek | i had a hunch that it has to do with old/new nix versions vs nix-daemon versions. So i'm exploring that | 03:04:03 |
baloo | got a nixos/test to reproduce | 03:14:20 |
baloo | https://github.com/NixOS/nixpkgs/pull/135689/files | 03:17:59 |
baloo | if you'd like | 03:18:01 |
tomberek | add to "all-tests.nix"? | 03:22:51 |
baloo | first time actually using nixos tests :D | 03:26:15 |
tomberek | (that will make it super easy to reproduce in a flake-y manner) | 03:30:42 |
baloo | this fixes the test https://gist.github.com/baloo/c1b1c1fd8fe1f034280cb25225f06fa0 | 03:33:48 |
baloo | \o/ | 03:33:51 |
tomberek | nix build github:baloo/nixpkgs/baloo/tests/nix-fetch#nixosTests.nix-fetch | 03:35:25 |
baloo | oooooohhh that's nice | 03:35:51 |
baloo | didn't know that syntax | 03:35:56 |
tomberek | can you put that new applied patch into another branch? | 03:36:02 |
baloo | sure | 03:36:12 |
baloo | baloo/nix/sandbox-dns-lookup | 03:37:34 |
baloo | https://github.com/baloo/nixpkgs/tree/baloo/nix/sandbox-dns-lookup | 03:37:58 |
baloo | the tarball thing should go away, but ... I haven't found the right way to do it yet | 03:39:51 |
tomberek | (flakes are great for reproducibility)
nix build github:baloo/nixpkgs/baloo/nix/sandbox-dns-lookup#nixosTests.nix-fetch -L ... nix is rebuilding... one sec | 03:40:25 |
tomberek | baloo: the lookup only succeeds after a few failures:
vm-test-run-nixos-generate-config> client # /nix/store/qfzy192fairyll5539185075jkqvh3vh-example.com.drv
vm-test-run-nixos-generate-config> client # building '/nix/store/qfzy192fairyll5539185075jkqvh3vh-example.com.drv'...
vm-test-run-nixos-generate-config> client # warning: unable to download 'http://tarballs.nixos.org/sha256/a948904f2f0f479b8f8197694b30184b0d2ed1c1cd2a1ec0fb85d299a192a447': Couldn't resolve host name (6); retrying in 264 ms
vm-test-run-nixos-generate-config> client # warning: unable to download 'http://tarballs.nixos.org/sha256/a948904f2f0f479b8f8197694b30184b0d2ed1c1cd2a1ec0fb85d299a192a447': Couldn't resolve host name (6); retrying in 608 ms
vm-test-run-nixos-generate-config> client # warning: unable to download 'http://tarballs.nixos.org/sha256/a948904f2f0f479b8f8197694b30184b0d2ed1c1cd2a1ec0fb85d299a192a447': Couldn't resolve host name (6); retrying in 1325 ms
vm-test-run-nixos-generate-config> client # warning: unable to download 'http://tarballs.nixos.org/sha256/a948904f2f0f479b8f8197694b30184b0d2ed1c1cd2a1ec0fb85d299a192a447': Couldn't resolve host name (6); retrying in 2664 ms
vm-test-run-nixos-generate-config> client # /nix/store/8sq52k8mwcl7wxm9fgps6nsbv8s0x0rg-example.com
vm-test-run-nixos-generate-config> (97.91 seconds)
vm-test-run-nixos-generate-config> (97.91 seconds)
vm-test-run-nixos-generate-config> (113.85 seconds)
vm-test-run-nixos-generate-config> test script finished in 113.87s
vm-test-run-nixos-generate-config> cleaning up
vm-test-run-nixos-generate-config> killing client (pid 28)
vm-test-run-nixos-generate-config> killing http_dns (pid 10)
vm-test-run-nixos-generate-config> (0.00 seconds)
| 03:47:04 |
baloo | Yeah that’s expected. It runs in a vacuum. It can not reach the exterior. | 03:51:18 |
baloo | Tarballs.Nixos.org is not even set in the dns | 03:51:52 |
baloo | In reply to @baloo_:matrix.org the tarball thing should go away, but ... I haven't found the right way to do it yet That is what I meant with that | 03:52:26 |
baloo | tomberek: that should be better | 04:09:32 |
baloo | deployed it to my local machine | 04:25:27 |
baloo | seems fixed | 04:25:30 |