| 16 Feb 2025 |
Lily Foster | In reply to @janne.hess:helsinki-systems.de I don't really understand your point about the canonicalize() through. If I canonicalize the path in rust, and give it to nix, wouldn't that mean that nix still tries to access /private? yes but the ofborg-nixpkgs-pr in NIX_PATH would then include /private so nix would allow it under restricted eval | 17:39:13 |
Lily Foster | * yes but the ofborg-nixpkgs-pr in NIX_PATH would then include /private/... so nix would allow it under restricted eval | 17:39:31 |
Janne Heß | Ahhh I see. Thanks I will try that | 19:07:24 |
Janne Heß |  Download image.png | 19:32:18 |
Janne Heß | Currently deploying with my patented "tmux + ssh" system | 19:32:34 |
Janne Heß | Deployment done on all macs | 19:39:28 |
Janne Heß | Looking good now, thank you Lily Foster 😍 | 19:53:35 |
Janne Heß | https://logs.ofborg.org/?attempt_id=229e3574-efaf-44e0-b436-ba0fe5795c61&key=nixos%2Fnixpkgs.382641 | 19:53:39 |
| 19 Feb 2025 |
hexa | https://github.com/NixOS/infra/blob/main/macs/mac-update | 15:31:50 |
hexa | * https://github.com/NixOS/infra/blob/main/macs/mac-update
https://github.com/NixOS/infra/blob/main/macs/mac-exec | 15:31:57 |
hexa | the unpatented nixos/infra macos tooling | 15:32:18 |
hexa | error: a 'x86_64-linux' with features {} is required to build '/nix/store/vnlk0g6i2a2pk6xnlbiai03vxvz6s179-append-initrd-secrets.drv', but I am a 'x86_64-darwin' with features {apple-virt, benchmark, big-parallel, nixos-test}
| 15:33:17 |
hexa | trying to build esphome.tests | 15:33:35 |
hexa | https://logs.ofborg.org/?key=nixos/nixpkgs.383404&attempt_id=b4cf0697-ebfc-4a42-9e4a-a02e5c5d6ef4 | 15:33:44 |
hexa | frankly, that is to be expected when calling nix-build --eval-system aarch64-darwin -A esphome.tests, but at the same time that means that it doesn't build the attribute esphome itself | 15:35:43 |
hexa | $ nix-build --eval-system aarch64-darwin -A esphome -A esphome.tests --eval-system aarch64-darwin --keep-going --always-allow-substitutes
[...]
error: a 'aarch64-linux' with features {} is required to build '/nix/store/fcbvsy7z7y8p42ps667glhz6rn8kdi99-linux-6.12.15.tar.xz.drv', but I am a 'x86_64-linux' with features {benchmark, big-parallel, kvm, nixos-test}
| 15:39:00 |
hexa | 🤨 | 15:39:19 |
Janne Heß | Ummm | 17:51:10 |
Janne Heß | That's all due to the evaluator being removed and ofborg not really being able to tell what attrs actually exist :( | 17:52:49 |
Lily Foster | wait why is it not failing the meta.platforms check and throwing an eval error (which should be ignored iirc) instead of trying to build for the wrong platform | 18:01:27 |
Lily Foster | are nixos tests fucky on darwin by rewriting the system from -darwin to -linux when evaluating for a -darwin nixpkgs...? | 18:03:11 |
Lily Foster | (regardless, you should probably be building the attr list individually for this kind of reason or otherwise be using something that can handle eval errors or inability to build) | 18:04:11 |
Lily Foster | yeah they expect you to have the "remote" builder VM set up to run nixos tests on darwin (i remember this change now -- ofborg has had problems with it since it was introduced) https://github.com/NixOS/nixpkgs/pull/282401 | 18:15:54 |
emily | the actual test harness runs on macOS | 19:43:45 |
emily | it just spawns Linux VMs | 19:43:51 |
emily | though of course there is no reason for ofborg to build NixOS tests on macOS | 19:44:06 |
emily | perhaps they should have hydraPlatforms = [ ]; and ofborg should respect that | 19:45:43 |
Lily Foster | In reply to @emilazy:matrix.org it just spawns Linux VMs does it do so automatically? the log above uh indicates that it may not (or at least not usefully, e.g. if it still depends on building some derivations using linux platform before spawning vm harness) | 19:46:07 |
emily | of course, it has to build the NixOS configurations | 19:46:22 |
emily | you can set up the Linux builder with nix-darwin and then it all just works (which itself relies on the QEMU harness supporting macOS + Hydra building the base builder config) | 19:47:11 |