!zghijEASpYQWYFzriI:nixos.org

Hydra

368 Members
111 Servers

Load older messages


SenderMessageTime
26 Jun 2021
@wucke13:matrix.orgwucke13I will try and report back. On that note, is there a way to force hydra into rebuild failed builds without changing the nix files?10:56:17
@janne.hess:helsinki-systems.dedas_jYes, you can use the UI10:56:32
@wucke13:matrix.orgwucke13How that?10:56:38
@janne.hess:helsinki-systems.dedas_jimage.png
Download image.png
10:57:13
@janne.hess:helsinki-systems.dedas_jin the eval10:57:18
@janne.hess:helsinki-systems.dedas_jURL should be something like https://hydra.local/eval/1234510:57:51
@jez:petrichor.meJez (he/him) left the room.10:58:04
@janne.hess:helsinki-systems.dedas_j I think there is a second way but I can't find it 10:58:09
@wucke13:matrix.orgwucke13Ahh, now I found it. Thank you so much!10:58:34
@janne.hess:helsinki-systems.dedas_jYou're welcome :)10:58:42
@wucke13:matrix.orgwucke13 even if I have only a localhost machine, I also need to enable nix.distributedBuilds ? 10:59:17
@janne.hess:helsinki-systems.dedas_jummmm10:59:22
@janne.hess:helsinki-systems.dedas_jI'm not 100% sure10:59:25
@wucke13:matrix.orgwucke13It's not working without it. lets test it with it10:59:57
@janne.hess:helsinki-systems.dedas_jIt might only parse the file when distributed builds are enabled11:00:13
@wucke13:matrix.orgwucke13

Hmmh, still not working. I have the following relevant options set, what could be missing?

nix = {
  extraOptions = ''
    allowed-uris = https:// ssh://
  '';
                                                     
  distributedBuilds = true;
  buildMachines = [{
    hostName = "localhost";
    systems = [
      "aarch64-linux"
      "i686-linux"
      "wasm32-wasi"
      "x86_64-linux"
      "x86_64-windows"
    ];
  }];
};
                                                     
boot.binfmt.emulatedSystems =
  [ "aarch64-linux" "wasm32-wasi" "x86_64-windows" ];
11:03:51
@wucke13:matrix.orgwucke13 (the build in question is aarch64 11:04:12
@janne.hess:helsinki-systems.dedas_jdoes it show in your hydra?11:04:34
@wucke13:matrix.orgwucke13How would I check?11:04:44
@janne.hess:helsinki-systems.dedas_jhttps://hydra.local/admin/machines11:04:51
@janne.hess:helsinki-systems.dedas_jyou might need to wait 10min or restart the queue runner11:05:19
@wucke13:matrix.orgwucke13 Jup, with aarch64-linux 11:05:19
@janne.hess:helsinki-systems.dedas_joh11:05:23
@janne.hess:helsinki-systems.dedas_jso it should work11:05:27
@janne.hess:helsinki-systems.dedas_jhydra knows it can build there11:05:33
@janne.hess:helsinki-systems.dedas_jif it doesn't work, your binfmt might be misconfigured11:05:50
@janne.hess:helsinki-systems.dedas_j

we use something along the lines of

    boot.binfmt.registrations = {
      qemu-aarch64 = {
        magicOrExtension = "\\x7fELF\\x02\\x01\\x01\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x02\\x00\\xb7";
        mask = "\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\x00\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xfe\\xff\\xff";
        interpreter = "${pkgs.qemu}/bin/qemu-aarch64";
      };
    };

    nix.sandboxPaths  [ "/run/binfmt" "${pkgs.qemu}" ];

11:07:16
@wucke13:matrix.orgwucke13 I'm able to locally build the thing on that machine using nix build <the flake>#aarch64.<mypackage> though 11:09:15
@wucke13:matrix.orgwucke13So I would assume that my binfmt setup is healthy11:09:33
@janne.hess:helsinki-systems.dedas_jyeah it probably is11:09:43

Show newer messages


Back to Room ListRoom Version: 6