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/network.nix
./modules/zsh.nix ./modules/zsh.nix
./modules/ssh-cursed.nix ./modules/ssh-cursed.nix
./modules/buildbot
disko.nixosModules.disko disko.nixosModules.disko

View file

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

View file

@ -28,14 +28,14 @@ in
after = [ "network.target" "buildbot-master.service" ]; after = [ "network.target" "buildbot-master.service" ];
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];
path = [ path = [
pkgs.unstable.nix-eval-jobs pkgs.nix-eval-jobs
pkgs.git pkgs.git
pkgs.gh pkgs.gh
pkgs.nix pkgs.nix
pkgs.nix-output-monitor pkgs.nix-output-monitor
]; ];
environment.PYTHONPATH = "${python.withPackages (_: [package])}/${python.sitePackages}"; 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.BUILDBOT_DIR = buildbotDir;
environment.WORKER_PASSWORD_FILE = "/var/lib/buildbot-worker/password.txt"; 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 allow_shutdown = None
s = Worker( s = Worker(
None, "2a01:e34:ec2a:8e60:8ec7:b5d2:f663:a67a",
None, 9989,
workername, workername,
passwd, passwd,
basedir, basedir,
keepalive, keepalive,
connection_string=master_url,
umask=umask, umask=umask,
maxdelay=maxdelay, maxdelay=maxdelay,
numcpus=numcpus, numcpus=numcpus,