GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||
GeezerVison is showing github.com — github-backup(deploy): reject unrecognized arguments before any side effect (#3287) by dezren39 · Pull Request #4475 · developing-today/code Conversation
|
|
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 34 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. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
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. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Here are some automated review suggestions for this pull request.
Reviewed commit: 9bc1fab6fd
Your 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".
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| } else if (arg === "--deploy-version") { | ||
| if (deployVersion !== null) usageError("duplicate argument: --deploy-version"); | ||
| const value = args[i + 1]; | ||
| if (value === undefined) usageError("--deploy-version needs a version id"); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Reject an empty deployment version before invoking subprocesses
When invoked as --deploy-version "$VERSION" with an empty variable, this check accepts the empty string as a version ID. The script then retrieves Bitwarden secrets and invokes wrangler versions view with an empty ID instead of reporting a usage error before external calls. The previous !deployVersion check rejected this input before those operations. Reject empty strings as well as undefined and cover the quoted-empty-value case in the regression tests.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 4d05166 (queue task 5716, lane code-l): --deploy-version "" is now rejected with the same usage error (exit 2) before any bws/wrangler subprocess — the value check is value === undefined || value === "". Regression coverage added in test_deploy_unknown_args.py §3 (empty value: exit 2, error names --deploy-version, no stub call at all). Suites on the laptop at the new head: unknown-args 53/53, dry-run 11/11, rollback 16/16.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@codex review |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Codex Review: Didn't find any major issues. Already looking forward to the next diff. 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". |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
github-backup(worker deploy): unrecognized arguments are silently ignored — a typo'd --dry-rnu performs a real deploy (upload + secret reset)
There was an error while loading. Please reload this page.