GeezerVison is showing github.com — pkgs/id standalone flake build: world_compile version_probe fails in sandbox (root composition unaffected) · Issue #5926 · developing-today/code
pkgs/id standalone flake build: world_compile version_probe fails in sandbox (root composition unaffected) #5926Labels app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/mMedium: expected under 1 day of workkind/bugSomething isn't working (prefixed form of the classic bug label)meta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/lowNice to have; do when convenientstatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted teststask/triageQueue packet kind: verify, reproduce, and route this item DescriptionObservation (found while fixing #5736, 2026-11-04)
Building the id package from its standalone flake (nix build ./pkgs/id#id-web) fails its checkPhase on a test that does not fail in the root-flake composition:
---- world_compile::tests::version_probe_records_the_reported_version stdout ----
thread 'world_compile::tests::version_probe_records_the_reported_version' panicked at src/world_compile.rs:794:9:
assertion `left == right` failed
left: ""
right: "roc version 9.9-test"
test result: FAILED. 2809 passed; 1 failed; 6 ignored
The test writes a fake compiler script with a #!/bin/sh shebang (fake_compiler in src/world_compile.rs) and expects probe_compiler_version to record its output. In the standalone composition's build sandbox the probe returns "" — consistent with the sandbox lacking /bin/sh for the shebang (hypothesis, not proven).
Why this is filed as an observation, not a regression:
Ask: confirm whether the standalone flake is a supported build path for pkgs/id. If yes, make the probe test robust to a /bin/sh-less sandbox (skip when the fake compiler cannot execute, or invoke it via an explicit interpreter). If the root composition is the only supported path, record that in pkgs/id's docs so the standalone failure stops surprising people.
Acceptance criteria
-
nix build ./pkgs/id#id-web (standalone flake) passes its checkPhase, including world_compile::tests::version_probe_records_the_reported_version.
- The root-flake composition build of the same package still passes — the fix does not just move the failure.
- The fix addresses the sandbox environment difference (what
probe_compiler_version sees under the standalone build) rather than weakening or deleting the assertion.
Activitydeveloping-today commented on Nov 5, 2026 added kind/bugSomething isn't working (prefixed form of the classic bug label) effort/mMedium: expected under 1 day of work app/idPackage/app: id (pkgs/ or apps/ in this repo) meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added on Nov 5, 2026dezren39 commented on Nov 5, 2026 Intake review
Related: Found while fixing #5736 (2026-11-04). Root-flake composition is unaffected, which is the key diagnostic fact.
Still-live check: searched merged PRs referencing this issue at 2026-11-05T04:31:57Z — none found; the issue stands as filed.
Notes / risks: Standalone-vs-root differences are usually env/ PATH /sandbox-tool availability; a fix that special-cases the test would hide a real probe fragility that end users building standalone would hit.
Suggested approach: Reproduce standalone, diff the effective build environment (env vars, available tools, /bin/sh target) against the root composition, then fix the probe or the package's build inputs accordingly.
Acceptance criteria were appended to the issue body and labels normalised by the fleet monitor's intake pass.
dezren39 commented on Nov 10, 2026
🤖 Agent note · correction to note 6781741167 (lane code-m)
dezren39 commented on Nov 10, 2026 Fixed by PR #7134 (merged bd9cbc1): fake-compiler probe tests now take their shebang interpreter from ID_TEST_FAKE_SH, wired in both the package preCheck and the mkCheckWith check derivations; verified on the laptop (cargo test --lib world_compile, 31 passed, all three version_probe tests executed). Closing per queue task 14671 (lane code-x); full record on PR #7134. dezren39 commented on Nov 11, 2026
Agent note — task 10541 verified already done (lane any-a)
- The fix landed via PR Fix id fake compiler shebang in sandbox tests #7134 (merged 2026-11-10T23:17:14Z, commit
0424f8c3be "Fix id fake compiler shebang in sandbox tests"): current origin/main carries the mechanism — pkgs/id/flake.nix exports the stdenv shell as ID_TEST_FAKE_SH in preCheck and pkgs/id/src/world_compile.rs consumes it, so the fake-compiler tests use an interpreter that exists in the nix check sandbox. Issue pkgs/id standalone flake build: world_compile version_probe fails in sandbox (root composition unaffected) #5926 is CLOSED.
- The task branch's own recorded evidence agrees (version_probe_ tests 3 passed, rustfmt clean, flake parses, derivation evaluation confirms the preCheck export). This lane additionally started the version_probe_ suite at current main in a detached worktree; it was still compiling dependencies when this note was written, so the completion rests on the merged PR + main-source verification above, not on that rerun.
- Leftover queue/work/status labels from the landing are cleared with this note.
MetadataMetadataapp/idPackage/app: id (pkgs/ or apps/ in this repo)effort/mMedium: expected under 1 day of workkind/bugSomething isn't working (prefixed form of the classic bug label)meta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/lowNice to have; do when convenientstatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted teststask/triageQueue packet kind: verify, reproduce, and route this item DevelopmentNo branches or pull requestsIssue actions
|