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 — fix(deploy): reject trailing args and duplicate --registry (#6376) by dezren39 · Pull Request #6550 · 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 37 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 Summary: ✅ CompletedThis 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.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
071d172 to
b613ca0
Compare
|
🤖 Agent note · picked up (update, task 13310)
|
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: b613ca0095
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.
| check("duplicate registry", ["--registry", a, "--registry", b, "list"], 2, err_has="more than once") | ||
| check("duplicate registry reversed", ["--registry", b, "list", "--registry", a], 2, err_has="more than once") | ||
| check("duplicate mixed forms", ["--registry=" + a, "--registry", b, "list"], 2, err_has="more than once") |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Add property coverage for the rewritten argument parser
The rewritten parser has explicit invariants—each value flag occurs at most once, and valid option placement and spelling preserve the selected paths—but this suite covers only fixed examples, primarily for --registry. This violates the repository’s Testing doctrine requiring property coverage for meaningful parser invariants rather than example-only tests. Add generated cases covering all three value flags, both spellings, placement, and duplicates, with an invariant or model oracle. The existing test_dupkeys_property.py only exercises load_registry, so it does not cover argument parsing.
AGENTS.md reference: AGENTS.md:L41-L45
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 6a12741: added pkgs/deploy/test_argv_property.py — generated argv cases (flag/subcommand units) covering all three value flags (--registry, --state-dir, --profile-base), both spellings (--flag PATH and --flag=PATH), random placement around the subcommand, duplicate occurrences, and missing values, checked against a sequential model of the parser contract as the oracle. Stdlib-only with a fixed seed, same conventions as test_dupkeys_property.py (which, as noted, only exercises load_registry). Wired into CI as the deploy-argv-property check in lib/default.nix. Verified locally on the laptop: property holds for the default 300 cases (seed 6376) and 1000 cases at seed 42; test_argv.py and test_dupkeys_property.py still pass.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
🤖 Agent note · parked
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Dispositions the Codex P1 on PR #6550: the rewritten parser has explicit invariants (each value flag at most once across all three flags, both spellings, any placement; missing values rejected; valid placement/spelling preserves the selected registry) but test_argv.py covered only fixed examples, mainly --registry. test_argv_property.py generates argv as flag/subcommand units and checks main() against a sequential model of the parser contract (the oracle): duplicates fire the more-than-once error, valueless flags fire needs-a-path, valid cases list exactly the modelled registry. Stdlib-only, fixed seed, same conventions as test_dupkeys_property.py. Wired as the deploy-argv-property check in lib/default.nix.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
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.
deploy(deploy.py): arguments after list are silently ignored and a duplicate --registry silently overrides the first — the typo-flag class, in the parser the activation slices will build on
There was an error while loading. Please reload this page.