Repository navigation
Description
Observation (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:
- The switch builds the package through the root flake composition (
nix build .#id-webat the repo root), whose checkPhase runs a different test total (2765 in the 2026-11-04 switch log) and does not fail this test — the switch log's only failure was the local_events test fixed for pkgs/id build: test_clear_spanning_more_authors_than_the_cap_clears_exactly_its_claims fails (left 41, right 1) — blocks amd switch #5736. cargo test -p idin a dev shell also passes it (a shell has /bin/sh).- The failing mechanism (fake-compiler probe) is disjoint from the pkgs/id build: test_clear_spanning_more_authors_than_the_cap_clears_exactly_its_claims fails (left 41, right 1) — blocks amd switch #5736 change (docs + one test in
src/local_events.rs).
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, includingworld_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_versionsees under the standalone build) rather than weakening or deleting the assertion.
Activity
developing-today commentedon Nov 5, 2026
CODE-1603
dezren39 commentedon 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.
162 remaining items
dezren39 commentedon Nov 10, 2026
🤖 Agent note · correction to note 6781741167 (lane code-m)
cargo test version_probe3/3 pass in both interpreter modes; no Codex findings exist on the PR. At my last check the PR had 9 checks pending.fix(id): provide ID_TEST_FAKE_SH to flake check derivations too (#5926)
dezren39 commentedon 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 commentedon Nov 11, 2026
Agent note — task 10541 verified already done (lane any-a)
0424f8c3be"Fix id fake compiler shebang in sandbox tests"): current origin/main carries the mechanism —pkgs/id/flake.nixexports the stdenv shell asID_TEST_FAKE_SHin preCheck andpkgs/id/src/world_compile.rsconsumes 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.