Repository navigation
fix(id): roc-test recipe via bash script — shebang recipes cannot exec in the Nix sandbox (#813) - #3968
Conversation
…c in the Nix sandbox (#813)
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Warning Review limit reachedYou'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 10 minutes. View limit details
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. |
|
@codex review |
|
Codex Review: Didn't find any major issues. Keep it up! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Fix-forward for #813 (task 4856), following up PR #3779.
Root cause (from CI, not a guess): the post-merge main run 41326392144's roc-test job failed with
The
roc-testjust recipe added in PR #3779 is a shebang recipe.justwrites shebang recipes to a temp file and execs it via the shebang line, but the Nix check sandbox (mkCheckbuildPhase runsjust roc-test) has no/usr/bin/env, so the recipe could never execute there. (The same job log also shows Magic Nix Cache 418 throttling early on; the build recovered past it and the shebang exec is the terminal failure.)Fix: move the recipe's bash body verbatim into
pkgs/id/scripts/roc-test.shand make the recipe a plainbash scripts/roc-test.shline — the same patternjust-recipes-checkalready uses. The script alsocds to the package root so module paths resolve from any invocation directory. No behavior change: same guard, same modules, same messages.just-recipes.jsonneeds no regen — the drift check projects out recipe bodies and the recipe's doc/params/deps are unchanged.Verified on the laptop (pinned nightly-2026-10-06):
bash scripts/roc-test.sh→ RocJson 29/29, Screen 15/15, Key 13/13 expectations pass, exit 0rocoff PATH → exit 1 with the refusing-to-skip message (no silent skip)expect 1 == 2copy →roc testexit 1, 1 failed (failure propagates; copy deleted, not committed)Refs #813 — issue stays open until this lands and the post-merge roc-test check is green.
Need help on this PR? Tag
@codesmith-botwith what you need.