Skip to content

fix: repair Docker NixOS install-sh harness#5427

Merged
AceHack merged 6 commits into
mainfrom
claim/codex-docker-nixos-install-sh-test-path-20260527
May 27, 2026
Merged

fix: repair Docker NixOS install-sh harness#5427
AceHack merged 6 commits into
mainfrom
claim/codex-docker-nixos-install-sh-test-path-20260527

Conversation

@AceHack
Copy link
Copy Markdown
Member

@AceHack AceHack commented May 27, 2026

Summary

  • preserves the nixos/nix base image PATH so core tools remain visible after PATH pre-staging
  • adds the Nix userspace commands and runtime libraries needed by install.sh and .mise.toml tool downloads
  • exposes compatible glibc loader/library paths for dynamically linked Linux binaries inside the Nix image

Verification

  • git diff --check
  • bun tools/ci/docker-nixos-install-sh-test.ts

Blocks/unblocks: fixes the docker-nixos-install-sh-test failure currently blocking PR #5416.

Claim protocol note: this PR will include a release commit deleting docs/claims/codex-docker-nixos-install-sh-test-path-20260527.md.

Lior and others added 3 commits May 27, 2026 03:40
…r harness PATH repair

Co-Authored-By: Codex <noreply@openai.com>
Keep the nixos/nix base image's Nix profile on PATH so coreutils like mkdir remain visible after the Dockerfile pre-stages mise and bun shims.

Expose the architecture-specific glibc loader path from /nix/store so the pinned mise Linux release can execute inside the Nix userspace harness.

Verification: git diff --check; bun tools/ci/docker-nixos-install-sh-test.ts (gets past the prior mkdir/mise execution failures; now fails later in mise install because the minimal Nix image lacks runtime/build dependencies for .mise.toml tools).

Co-Authored-By: Codex <noreply@openai.com>
Install the Nix userspace commands and runtime libraries needed by install.sh and the dynamically linked .mise.toml toolchain inside the pinned nixos/nix Docker harness.

Keep the glibc loader/lib directory matched, expose non-glibc compatibility libraries, and provide a cc shim for native Python package builds.

Verification: git diff --check; bun tools/ci/docker-nixos-install-sh-test.ts.

Co-Authored-By: Codex <noreply@openai.com>
Copilot AI review requested due to automatic review settings May 27, 2026 08:04
@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

… PR #5427

Release the Docker harness repair claim inside the same PR that carries the work, per docs/AGENT-CLAIM-PROTOCOL.md.

Verification: git diff --check.

Co-Authored-By: Codex <noreply@openai.com>
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR repairs the NixOS Docker harness used by docker-nixos-install-sh-test by ensuring the Nix base image’s core tooling and required runtime libraries remain discoverable during tools/setup/install.sh execution, including support for dynamically linked tool downloads under .mise.toml.

Changes:

  • Extend the Docker build PATH to include the Nix default profile binaries so base tools remain available across layers.
  • Install explicit Nix userspace command/runtime dependencies via nix-env, and add compatibility symlinks for compiler and shared libraries.
  • Expose a conventional glibc loader path and set LD_LIBRARY_PATH so dynamically linked binaries can run inside the Nix container.

Reviewed changes

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.

File Description
tools/ci/dockerfiles/nixos-install-sh-test/Dockerfile Updates PATH, installs required Nix packages, and wires up loader/library paths for the install.sh test harness.
docs/claims/codex-docker-nixos-install-sh-test-path-20260527.md Adds a claim file describing the harness repair work and verification plan.

Comment thread tools/ci/dockerfiles/nixos-install-sh-test/Dockerfile Outdated
Comment thread tools/ci/dockerfiles/nixos-install-sh-test/Dockerfile Outdated
@AceHack
Copy link
Copy Markdown
Member Author

AceHack commented May 27, 2026

Vera CI inspection: docker-nixos-install-sh-test passed on this PR, and the PR diff is only tools/ci/dockerfiles/nixos-install-sh-test/Dockerfile. The blocking check is lint (tsc tools) on run 26498932520/job 78034067323, failing in unrelated installer TS files: tools/installer/zeta-cred-handlers.test.ts lines 71/77/85/124, tools/installer/zeta-cred-handlers.ts line 249, and tools/installer/zeta-creds-envelope.ts lines 129/132/135/138. No rerun taken; next safe action is to wait for or land the owner fix for the installer TS baseline, then re-check/merge this Docker repair PR.

@AceHack AceHack enabled auto-merge (squash) May 27, 2026 08:29
Co-Authored-By: Codex <noreply@openai.com>
Copilot AI review requested due to automatic review settings May 27, 2026 08:37
@AceHack AceHack merged commit 76d15c3 into main May 27, 2026
33 of 34 checks passed
@AceHack AceHack deleted the claim/codex-docker-nixos-install-sh-test-path-20260527 branch May 27, 2026 08:40
@AceHack AceHack review requested due to automatic review settings May 27, 2026 09:01
AceHack added a commit that referenced this pull request May 27, 2026
Co-Authored-By: Codex <noreply@openai.com>
AceHack added a commit that referenced this pull request May 27, 2026
* claim: codex-b0855-1-zeta-self-register-service-20260527 - scope B-0855.1

Co-Authored-By: Codex <noreply@openai.com>

* feat: codex-b0855-1-zeta-self-register-service-20260527 - add first-boot self-register service

Co-Authored-By: Codex <noreply@openai.com>

* release: codex-b0855-1-zeta-self-register-service-20260527 - opened in PR #5416

Co-Authored-By: Codex <noreply@openai.com>

* fix: codex-b0855-1-zeta-self-register-service-20260527 - derive self-register path defaults

Co-Authored-By: Codex <noreply@openai.com>

* fix: repair Docker NixOS install-sh harness (#5427)

Co-Authored-By: Codex <noreply@openai.com>

* fix: align self-register Bun runtime with mise

Co-Authored-By: Codex <noreply@openai.com>

* fix: update ISO cosign signing to bundle output

Co-Authored-By: Codex <noreply@openai.com>

* fix: write cosign bundle to runner temp

Co-Authored-By: Codex <noreply@openai.com>

* fix: retry self-register until marker exists

Address the unresolved operational review finding on the B-0855.1 service by replacing the first-boot-only gate with a marker-path gate and failure retry/backoff. Update the installer substrate audit so the retry semantics remain checked in CI.

Co-Authored-By: Codex <noreply@openai.com>

* fix: align ISO signing summary text

Address current Copilot workflow wording findings by matching the cosign bundle comment to the runner-temp output path and pointing verification guidance at the workflow run step summary rather than nonexistent workflow comments.

Co-Authored-By: Codex <noreply@openai.com>

* fix: close self-register review gaps

Co-Authored-By: Codex <noreply@openai.com>

---------

Co-authored-by: Lior <lior@zeta.dev>
Co-authored-by: Codex <noreply@openai.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants