added buildbot workers

This commit is contained in:
Julien Malka 2023-08-01 16:48:49 +02:00
parent c208537f49
commit ebea10d242
No known key found for this signature in database
GPG key ID: 6FC74C847011FD83
4 changed files with 7 additions and 5 deletions

View file

@ -36,6 +36,7 @@ let
./modules/network.nix
./modules/zsh.nix
./modules/ssh-cursed.nix
./modules/buildbot
disko.nixosModules.disko

View file

@ -18,6 +18,8 @@
};
};
boot.binfmt.emulatedSystems = [ "aarch64-linux" "riscv64-linux" ];
simd.arch = "znver3";
system.stateVersion = "23.05";
}

View file

@ -28,14 +28,14 @@ in
after = [ "network.target" "buildbot-master.service" ];
wantedBy = [ "multi-user.target" ];
path = [
pkgs.unstable.nix-eval-jobs
pkgs.nix-eval-jobs
pkgs.git
pkgs.gh
pkgs.nix
pkgs.nix-output-monitor
];
environment.PYTHONPATH = "${python.withPackages (_: [package])}/${python.sitePackages}";
environment.MASTER_URL = ''tcp:host=ci.julienmalka.me'';
environment.MASTER_URL = ''TCP:2a01\\:e34\\:ec2a\\:8e60\\:8ec7\\:b5d2\\:f663\\:a67a:9989'';
environment.BUILDBOT_DIR = buildbotDir;
environment.WORKER_PASSWORD_FILE = "/var/lib/buildbot-worker/password.txt";

View file

@ -34,13 +34,12 @@ def setup_worker(application: service.Application, id: int) -> None:
allow_shutdown = None
s = Worker(
None,
None,
"2a01:e34:ec2a:8e60:8ec7:b5d2:f663:a67a",
9989,
workername,
passwd,
basedir,
keepalive,
connection_string=master_url,
umask=umask,
maxdelay=maxdelay,
numcpus=numcpus,