Repository navigation
fix(id-mail): name duplicate --dry-run truthfully in deploy guard and pin arg shapes (#7855) - #8106
Conversation
… pin arg shapes (#7855)
Codex Review Summary: ❌ FailedThis 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. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
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 25 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. |
Fixes #7855.
What
deploy.mjs: the strict-arg guard's duplicate case (--dry-run --dry-run) now reportsduplicate argument(s): --dry-runinstead of mislabeling a known flag as "unrecognized". The duplicate branch is reached only whenunknownArgsis empty (every arg was--dry-run), so typo/unknown-flag messages are byte-identical to before, and exit code 2 / fail-closed ordering are unchanged.deploy.test.mjs: pins the three previously unpinned shapes — a stray positional, duplicate--dry-run --dry-run, and--dry-run+ a bogus flag — each asserting exit 2, the truthful message, the usage line, and zero external calls in the stub harness.Test
Oracle: acceptance criteria on issue #7855.
node --test deploy.test.mjson the laptop — 9/9 pass (6 pre-existing cases unchanged and passing, 3 new).Queue: task 14484, lane code-j.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.