Skip to content

fix(id): roc-test recipe via bash script — shebang recipes cannot exec in the Nix sandbox (#813) - #3968

Merged
dezren39 merged 1 commit into
mainfrom
queue/4856-813-roc-test-env-fix
Nov 1, 2026
Merged

dezren39 merged 1 commit into
mainfrom
queue/4856-813-roc-test-env-fix

Conversation

@dezren39

@dezren39 dezren39 commented Nov 1, 2026 •

Copy link
Copy Markdown
Member

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

error: recipe `roc-test` with shebang `#!/usr/bin/env bash` execution error: No such file or directory (os error 2)

The roc-test just recipe added in PR #3779 is a shebang recipe. just writes shebang recipes to a temp file and execs it via the shebang line, but the Nix check sandbox (mkCheck buildPhase runs just 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.sh and make the recipe a plain bash scripts/roc-test.sh line — the same pattern just-recipes-check already uses. The script also cds to the package root so module paths resolve from any invocation directory. No behavior change: same guard, same modules, same messages. just-recipes.json needs 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 0
  • with roc off PATH → exit 1 with the refusing-to-skip message (no silent skip)
  • a deliberately failing expect 1 == 2 copy → roc test exit 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.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

@dezren39
dezren39 requested a review from a team as a code owner November 1, 2026 20:52
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-01T20:54:13.028382Z 1786c0e Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Nov 1, 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 10 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: cbff5e06-06de-414f-bd20-be66e07b7f8d
Commits

Reviewing files that changed from the base of the PR and between e860d3a and 1786c0e.

Files selected for processing: 2
  • pkgs/id/justfile
  • pkgs/id/scripts/roc-test.sh
  • 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

dezren39 commented Nov 1, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep it up!

Reviewed commit: 1786c0e20a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

@dezren39
dezren39 merged commit 83709fa into main Nov 1, 2026
1 check passed
@dezren39
dezren39 deleted the queue/4856-813-roc-test-env-fix branch November 1, 2026 21:16
dezren39 added a commit that referenced this pull request Nov 2, 2026
…-check (#4122)

style(id): shfmt-clean roc-test.sh (2-space indent) — flake shfmt-check diff from PR #3968 CI (#813)
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