nandi/jolt-nativepublic Fork 0
fccae88
Commits
Clone
git clone https://git.rickub.com/nandi/jolt-native.git
git clone ssh://git@rickub.com/nandi/jolt-native.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

Cap nixbuild concurrency so the runner's daemon survives

100 in-flight remote goals OOMed the single nix daemon on the shared
runner partway through the first pipeline.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
nandi committed 2026-09-07T19:34:53-07:00 Browse files
fccae88 parent: e40b795
modified .gitlab-ci.yml +4 -2
@@ -22,7 +22,9 @@ check:
2222 # Everything heavy is offloaded to nixbuild.net; the runner only evaluates,
2323 # copies results back and uploads. max-jobs = 0 means it refuses to build
2424 # anything locally, so a misconfigured builder fails loudly instead of
25- # silently falling back to the slow runner.
25+ # silently falling back to the slow runner. 16 concurrent remote jobs, not
26+ # more: every in-flight goal costs the runner's single nix daemon an ssh-ng
27+ # connection plus the path copy, and at 100 the daemon OOMs mid-pipeline.
2628 - |
2729 set -eu
2830 mkdir -p ~/.ssh
@@ -33,7 +35,7 @@ check:
3335 printf 'eu.nixbuild.net ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPIQCZc54poJ8vqawd8TraNryQeJnvH1eLpIDgbiqymM\n' > ~/.ssh/known_hosts
3436 printf '%s\n' \
3537 'experimental-features = nix-command flakes' \
36- 'builders = ssh-ng://eu.nixbuild.net x86_64-linux - 100 1 big-parallel,benchmark' \
38+ 'builders = ssh-ng://eu.nixbuild.net x86_64-linux - 16 1 big-parallel,benchmark' \
3739 'builders-use-substitutes = true' \
3840 'max-jobs = 0' >> /etc/nix/nix.conf
3941 script:
@@ -22,7 +22,9 @@ check:
22 # Everything heavy is offloaded to nixbuild.net; the runner only evaluates,22 # Everything heavy is offloaded to nixbuild.net; the runner only evaluates,
23 # copies results back and uploads. max-jobs = 0 means it refuses to build23 # copies results back and uploads. max-jobs = 0 means it refuses to build
24 # anything locally, so a misconfigured builder fails loudly instead of24 # anything locally, so a misconfigured builder fails loudly instead of
25- # silently falling back to the slow runner.25+ # silently falling back to the slow runner. 16 concurrent remote jobs, not
26+ # more: every in-flight goal costs the runner's single nix daemon an ssh-ng
27+ # connection plus the path copy, and at 100 the daemon OOMs mid-pipeline.
26 - |28 - |
27 set -eu29 set -eu
28 mkdir -p ~/.ssh30 mkdir -p ~/.ssh
@@ -33,7 +35,7 @@ check:
33 printf 'eu.nixbuild.net ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPIQCZc54poJ8vqawd8TraNryQeJnvH1eLpIDgbiqymM\n' > ~/.ssh/known_hosts35 printf 'eu.nixbuild.net ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPIQCZc54poJ8vqawd8TraNryQeJnvH1eLpIDgbiqymM\n' > ~/.ssh/known_hosts
34 printf '%s\n' \36 printf '%s\n' \
35 'experimental-features = nix-command flakes' \37 'experimental-features = nix-command flakes' \
36- 'builders = ssh-ng://eu.nixbuild.net x86_64-linux - 100 1 big-parallel,benchmark' \38+ 'builders = ssh-ng://eu.nixbuild.net x86_64-linux - 16 1 big-parallel,benchmark' \
37 'builders-use-substitutes = true' \39 'builders-use-substitutes = true' \
38 'max-jobs = 0' >> /etc/nix/nix.conf40 'max-jobs = 0' >> /etc/nix/nix.conf
39 script:41 script: