Skip to content

fix(nix): scope pristine bun to dev shells; sandbox checks use nixpkgs bun (#13751) - #13826

Merged
dezren39 merged 2 commits into
mainfrom
xaltha/13751-flake-check
Nov 24, 2026
Merged

dezren39 merged 2 commits into
mainfrom
xaltha/13751-flake-check

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Refs #13751 — partial: fixes the bun root cause of the main-tier flake-check failure; does not yet close the issue (see Remaining below).

Root cause

The pristine upstream bun 1.4.5 binary (#13337) needs the system loader (/lib64/ld-linux), which does not exist in the nix build sandbox, so it cannot execute there. It was added to the shared nativeBuildInputs, so the bun2nix hook resolved bun to it in every check derivation and ~35 checks failed with exit 127 ('cannot execute: required file not found') in nix flake check on main (run 45260211824, first main run after #13337 merged).

Change

Verification (remote dispatch; fleet queue dispatch is blocked by TLS defect #13185, so fleet-command.yml was used)

  • Fleet-command run 45277298696 (branch xaltha/13751-flake-check): zero 'cannot execute' errors; bun install v1.4.2 runs in the sandbox; vitest executed (884 tests passed, 44/45 files); nix-fmt-check built successfully.
  • cargo-check solo re-run: fleet-command run 45280715002 (in flight at PR time; it was still building clippy when the combined run aborted on the test-web-unit failure below).

Remaining (separate root causes, follow-up slices)

  • test-web-unit: src/world-keyboard.parity.test.ts fails — the kitty-disambiguate-v1 corpus is reached via the pkgs/id/doc -> ../../doc symlink, which dangles in the sandbox source tree (id: Phase 13 F13.5 kitty keyboard protocol on the raw input path #787 Slice D, commit 2db3d06). Independent of bun; needs its own slice.
  • Formatting drift (prettier 45 files, biome, rustfmt, treefmt, statix — exit 1 in the main run) is also independent and stays for a follow-up slice.
{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-23T22:33:06Z",
    "session_id": null,
    "lane": null,
    "host": "htch-runtime",
    "worktree": "/home/hatch/workspace/github-work/code-13751",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/hatch/workspace/github-work/code-13751",
      "repo": "developing-today/code",
      "branch": "xaltha/13751-flake-check",
      "sha": "9b2728a25617bff95d679bf6e90418a963809d51"
    },
    "auth_subject": "xaltha",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Start Proof
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

…s bun (#13751)

The pristine upstream bun 1.4.5 binary (#13337) needs the system
loader (/lib64/ld-linux), which does not exist in the nix build
sandbox, so it cannot execute there. It was added to the shared
nativeBuildInputs, so the bun2nix hook resolved bun to it in every
check derivation and ~35 checks failed with exit 127
('cannot execute: required file not found') in nix flake check on
main (run 45260211824).

The shared set now carries the patchelf'd nixpkgs bun, which works
in the sandbox; dev shells swap it for the pristine build via
shellNativeBuildInputs, preserving the #13337 vitest fix on fleet
hosts where the loader exists.

Formatting drift (prettier/biome/rustfmt/statix, exit 1) is a
separate root cause and stays for a follow-up slice.
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 34 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 04e8ba7e-cdff-45d7-ac07-117e686ec428
Commits

Reviewing files that changed from the base of the PR and between f033916 and 9b2728a.

Files selected for processing: 3

  • pkgs/id/flake.nix
  • pkgs/id/nix-common.nix
  • pkgs/id/shell.nix
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

dezren39 added a commit that referenced this pull request Nov 23, 2026
…ix drift

Refs #13751 — follow-up slice to #13826 (bun root cause).

The main-tier flake check failed five formatter checks with exit 1,
independent of the bun exit-127 cascade:
- prettier-check: 44 md files (book, READMEs, BASELINES, WEB)
- biome-check: 35 errors across 20 ts/json files
- rustfmt-check: long-line joins across tests and src
- statix-check: nix-common.nix:65 hash = zip.hash -> inherit
- treefmt-check: aggregate of the above

Fixed by running the repo's own treefmt write (pinned binaries via
nix develop) scoped to pkgs/id/treefmt.toml. No vendor, generated, or
lockfile paths touched.
@dezren39
dezren39 merged commit 2d9286d into main Nov 24, 2026
2 checks passed
@dezren39
dezren39 deleted the xaltha/13751-flake-check branch November 24, 2026 00:13
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.

1 participant