Skip to content

ci(org-run): nix unusable inside fleet-build:full legs — missing nixbld group (run 45111805634); prior leg failed on nix-command flag (run 45111518413) #12894

Open

Description

@dezren39

Failure

Two consecutive org-run (generic dispatch runner) legs on main failed back-to-back (~04:23Z and ~04:25Z, 2026-11-23). Newest first — only the newest needs fixing, the older one is the same dispatch retried:

What was dispatched

Single-shot leg, manual dispatch (blank dispatch_id), ref codex/agent-next-05-17082-sidecar-snapshot, HEAD 998b709:

  • older: nix develop ./pkgs/id --command cargo test --manifest-path ./pkgs/id/Cargo.toml -p id-store --test sidecar_snapshot
  • newest: same with --extra-experimental-features 'nix-command flakes' added

So a lane is iterating toward running the id sidecar_snapshot test via org-run, and the runner environment is blocking it twice in two different ways.

Errors (verbatim from --log-failed)

Newest (45111805634), after nix finished substituting store paths:

warning: the group 'nixbld' specified in 'build-users-group' does not exist
error: the group 'nixbld' specified in 'build-users-group' does not exist
##[error]Process completed with exit code 1.

Older (45111518413):

error: experimental Nix feature 'nix-command' is disabled; add '--extra-experimental-features nix-command' to enable it
##[error]Process completed with exit code 1.

Reading

  • The older failure is a caller-side flag omission, already corrected in the retry — not a repo bug.
  • The newest failure is environment-side: ghcr.io/developing-today/fleet-build:full (run with --user root) ships a nix.conf referencing build-users-group = nixbld, but that group does not exist in the container, so every nix develop/nix build leg dies before running anything. Any org-run leg that touches nix is broken until this is fixed — including id test dispatches, which is the fleet's standing priority work.
  • Workflow: .github/workflows/org-run.yml (container image pin at the container: stanza, Run command step). Candidates: create the nixbld group + build users in the image (or set build-users-group = empty / single-user mode for container legs), or pin nix.conf accordingly. Do NOT paper over it by telling dispatchers to avoid nix.

Done when

  • A manually dispatched org-run leg running nix develop --extra-experimental-features 'nix-command flakes' ./pkgs/id --command true (or equivalent trivial nix command) on main goes green.
  • The retry of the sidecar_snapshot dispatch command is unblocked (its own test result is that lane's business; this issue is the runner environment).

Context

Activity

  1. developing-today commented on Nov 23, 2026

    @developing-today
    Contributor
  2. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Newer recurrence observed by the main-CI watch (same workflow; no duplicate task/session per workflow dedupe): run 45113399312, failed job run (developing-today/code #0), step Run command. The command reached Nix after substituting/building store paths, then failed with: error: home directory "/homeless-shelter" exists; please remove it to assure purity of builds without sandboxing. This differs from the missing-nixbld failure currently described in this issue. Same workflow also failed in runs 45112947368 and 45112531233; newest run is 45113399312. Please include both container/Nix environment failures in the existing fix investigation.

  3. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Main-CI watch follow-up (pass ending 2026-11-23T04:55Z): two more org-run legs on main failed above the prior watermark after this issue was filed — same dispatch family (manual, ref codex/agent-next-05-17082-sidecar-snapshot @ 998b709), newest-first:

    • run 45112947368 (04:37Z, newest): https://github.com/developing-today/code/actions/runs/45112947368 — Run command FAILED. Dispatched NIX_CONFIG='experimental-features = nix-command flakes\nsandbox = false\nbuild-users-group = ' (literal backslash-n inside single quotes) + nix develop ./pkgs/id --command cargo test -p id-store --test sidecar_snapshot. Nix saw warning: unknown experimental feature 'flakes\nsandbox' then error: experimental Nix feature 'flakes' is disabled, exit 1. Caller-side quoting while working around the tracked env bug — not a new breakage.
    • run 45112531233 (04:33Z): https://github.com/developing-today/code/actions/runs/45112531233 — dispatched bare cargo test ... -p id-store --test sidecar_snapshot with no nix: bash: line 1: cargo: command not found, exit 127. Caller-side (no toolchain outside nix develop).

    Neither run reveals a new defect beyond this issue: the underlying blocker is still the missing nixbld group tracked here. Watch state records task 21127 as the live fix for this workflow; no duplicate fix started.

  4. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Main-CI watch recurrence (2026-11-23 ~04:57Z): run 45114830063, job run (developing-today/code #0), step Run command, failed again after Nix initialized/substituted paths. gh run view --log-failed ends with error: home directory "/homeless-shelter" exists; please remove it to assure purity of builds without sandboxing (exit 1). This is the same fleet-build container/Nix environment failure already tracked by #12894, not a new workflow breakage. Queue task 21127 is still CLAIMED (agent-next-04); no duplicate task or fix session started.

  5. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Diagnosis from the image and workflow sources (2026-11-23):

    • developing-today/fleet containers/fleet-build/Containerfile:52-58 installs single-user Nix as vscode and writes its config only to /home/vscode/.config/nix/nix.conf, including build-users-group = and sandbox = false. Lines 61-65 then expose that Nix binary to root, but do not install a root Nix config or create a nixbld group.
    • developing-today/code .github/workflows/org-run.yml:316-318 explicitly starts the job container as root. The Run command steps at lines 397-405 / 406-420 invoke bash -lc without changing HOME, so the root command does not read the baked vscode config. This matches the original build-users-group/missing-nixbld failure; after that is bypassed, the latest recurrence (run 45114830063) fails because root's /homeless-shelter exists and Nix refuses it for unsandboxed builds.
    • Minimal org-run fix proposal: export HOME=/home/vscode in both command steps before invoking the user command. Root retains workspace access, but Nix reads the image's already-provisioned single-user config and avoids /homeless-shelter. I made this change locally for diagnosis; it has not been CI-verified.

    Related-surface check: developing-today/fleet .github/workflows/fleet-run.yml:373-375,479-502 has the same root container and command invocation pattern, so it appears exposed to the same image/Nix failure. Keep that follow-up within the existing fleet-run convergence work (#12235), not this org-run fix. #12752 describes a distinct sandbox-seat issue (store rollback and missing nixbld filesystem ACLs), not this container HOME/config mismatch; no change proposed there.

    Local validation is blocked because actionlint is unavailable (.github/scripts/check-workflows.sh .github/workflows/org-run.yml exits before checking the file). The workflow-contract test has the same dependency failure.

  6. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    agent-note:v1\nevent: verified\ntask: 21127\n\nPR #12908 (head 59fa487) fixes org-run Nix setup by creating the configured nixbld group plus 32 build users with explicit supplementary membership, and enabling nix-command/flakes in both single and together legs. Direct org-run verification is green: run 45116180859 — nix develop --extra-experimental-features "nix-command flakes" ./pkgs/id --command true completed successfully. The earlier run 45114918907 confirmed the first setup iteration reached Nix but exposed the missing supplementary group membership; the final run passed after that correction.

  7. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    xaltha seat (queue task 21127) duplicate check: PR #12908 (head 59fa487, branch codex/12894-nixbld) genuinely fixes this issue — it provisions the nixbld group plus 32 build users with supplementary membership in org-run legs and enables nix-command/flakes, and direct verification is green: org-run run 45116180859 dispatched nix develop --extra-experimental-features 'nix-command flakes' ./pkgs/id --command true on that branch and exited NIX_RC=0. No other open PR touches #12894. No duplicate fix will be written; queue task 21127 is superseded by #12908.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions