Skip to content

fix: split MOBB_EXEC from MOBB_ARGS for test tooling compatibility [E-1815]#34

Open
jonathansantilli wants to merge 1 commit intomainfrom
fix/E-1815-v2
Open

fix: split MOBB_EXEC from MOBB_ARGS for test tooling compatibility [E-1815]#34
jonathansantilli wants to merge 1 commit intomainfrom
fix/E-1815-v2

Conversation

@jonathansantilli
Copy link
Copy Markdown
Collaborator

@jonathansantilli jonathansantilli commented Apr 8, 2026

Summary

Fixes the autofixer CI test failure caused by PR #33.

Splits the command array into two parts:

  • `MOBB_EXEC=(npx --yes mobbdev@latest), the executable, which test tooling sed-replaces
  • MOBB_ARGS=(review -r ... --ref ...), the flags and arguments

Execution: env "${MOBB_EXEC[@]}" "${MOBB_ARGS[@]}"

Root Cause

The autofixer test uses sed to replace npx --yes mobbdev@latest with API_URL=http://... node .../dist/index.mjs. With a single array, the replacement becomes one element and env treats the whole thing as a single var assignment. With two arrays, env correctly separates API_URL=... (var), node (command), and the rest (args).

Test plan

  • autofixer CI test passes (Mobb Github Action Tests)
  • Normal workflow on this repo still works

The autofixer CI uses sed to replace `npx --yes mobbdev@latest` with
`API_URL=http://... node .../dist/index.mjs` in action.yml.

With a single MOBB_ARGS array, the sed replacement puts
`API_URL=... node .../index.mjs` as part of the first array element,
and `env` treats the whole thing as one var assignment instead of
separating the env var from the command.

Splitting into MOBB_EXEC (the npx command, sed-replaceable) and
MOBB_ARGS (the flags/arguments) ensures that after sed replacement,
`env` correctly handles `API_URL=...` as a var and `node` as the command.

Ref: E-1815
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