Skip to content

fix(just): pass smoke args through to smoke.sh - #3873

Merged
kixelated merged 1 commit into
mainfrom
fix/just-smoke-positional-args
Sep 22, 2026
Merged

kixelated merged 1 commit into
mainfrom
fix/just-smoke-positional-args

Conversation

@kixelated

Copy link
Copy Markdown
Collaborator

Problem

test/justfile's smoke *args recipe (from #3823) is a #!/usr/bin/env bash recipe that tests "${1:-}" == --all and forwards "$@", but neither justfile sets positional-arguments, so a shebang recipe sees no args at all. just test smoke --all silently ran the default rust-to-rust check and just test smoke --publishers ... dropped its flags.

Approach

set positional-arguments in test/justfile. This keeps "$@" quoting intact; interpolating {{ args }} into the bash script would re-split any quoted flag values.

Verified with a stub smoke.sh that echoes its argv (--dry-run prints the script body but not the positional args it receives, so it cannot show the difference):

invocation before after
just smoke --all [] full publisher x subscriber matrix, --timeout 30
just smoke --publishers rust,python --subscribers rust,c --timeout 5 [] flags pass through unchanged
just smoke [] []

Swept every justfile in the repo for other shebang recipes reading $1/$@/$*: the remaining hits are shell-function parameters (fail(), scoped(), access()) or awk fields, not recipe args. The other test/justfile recipes use {{ args }} and are unaffected.

Impact

  • No public API or wire changes. just test smoke --all now actually runs the full interop matrix.

Alternatives

  • {{ args }} interpolation: breaks quoting of any flag value with spaces.

Follow-ups

  • None.

(Written by Claude Opus 5)

🤖 Generated with Claude Code

`test/justfile`'s `smoke *args` recipe reads `$1`/`$@`, but the module
never set `positional-arguments`, so a shebang recipe saw no args at all.
`just test smoke --all` silently ran the default rust-only check and any
`--publishers`/`--subscribers` flags were dropped.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@kixelated
kixelated marked this pull request as ready for review September 21, 2026 23:44
@kixelated

Copy link
Copy Markdown
Collaborator Author

Ran just test smoke --all locally with the fix: all 32 publisher x subscriber pairs pass (rust/python/go/js -> rust/python/go/js/js-native-node/js-native-bun/c/gst), smoke: all checks passed. Before this fix the same command ran only rust -> rust.

(Written by Claude Opus 5)

@coderabbitai

coderabbitai Bot commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

Next included review available in 8 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available.

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

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 9a0529bd-bf5a-4563-9cba-44a23fa361fa

📥 Commits

Reviewing files that changed from the base of the PR and between d5832fd and 471d4a3.

📒 Files selected for processing (1)
  • test/justfile

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

Comment @coderabbitai help to get the list of available commands.

@moq-bot

moq-bot Bot commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

No issues found.
Verdict: approve
(Written by Muse Spark)

New%20session%20-%202026-09-21T23%3A45%3A10.785Z
opencode session  |  github run

@kixelated
kixelated enabled auto-merge (squash) September 22, 2026 00:50
@kixelated
kixelated merged commit 65c1b51 into main Sep 22, 2026
7 checks passed
@kixelated
kixelated deleted the fix/just-smoke-positional-args branch September 22, 2026 00:50
kixelated pushed a commit that referenced this pull request Sep 22, 2026
Main is red for every PR: #3873 added a file-wide setting on line 7
while #3870's scoped one on line 19 remained, and just rejects the
redefinition. Line 7 already covers all shebang recipes.

Drive-by for #3871 CI; split or cherry-pick as preferred.
kixelated pushed a commit that referenced this pull request Sep 22, 2026
#3873 added a second 'set positional-arguments' (line 19) alongside the
one on line 7. Newer just rejects the redefinition, so 'just check' and
'just test' fail to parse on every PR. Keep the line 7 setting and the
smoke comment; drop the duplicate.
kixelated added a commit that referenced this pull request Sep 22, 2026
#3870 and #3873 each added `set positional-arguments` to test/justfile, and
just refuses a setting that is set twice, so every `just` invocation on main
fails before reaching a recipe.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
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