GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(deploy): reject trailing args and duplicate --registry (#6376) by dezren39 · Pull Request #6550 · developing-today/code

Conversation

@dezren39

@dezren39 dezren39 commented Nov 6, 2026 •
edited by blacksmith-sh Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Fixes #6376.

  • deploy list <anything> now exits 2 naming the unexpected argument.
  • A second --registry (either form) exits 2 ("given more than once") instead of last-wins.
  • --registry=PATH is accepted; an empty value errors with "needs a path".
  • Documented forms unchanged: flag before/after subcommand, $DEPLOY_REGISTRY fallback, unknown subcommand exit 2.

Tests: new pkgs/deploy/test_argv.py (14 cases, stdlib-only) wired as flake check deploy-argv. Locally: python3 -I pkgs/deploy/test_argv.py and the existing dupkeys property test pass. The nix check itself was not run locally; CI covers it.

Queue task 10768 (repo-health-code-pilot).


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

chatgpt-codex-connector[bot] reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@dezren39
dezren39 requested a review from a team as a code owner November 6, 2026 16:01
@coderabbitai

coderabbitai Bot commented Nov 6, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: bb34bec1-68b5-4100-a913-dc919118b036
Commits

Reviewing files that changed from the base of the PR and between 752357c and 6a12741.

Files selected for processing: 4

  • lib/default.nix
  • pkgs/deploy/deploy.py
  • pkgs/deploy/test_argv.py
  • pkgs/deploy/test_argv_property.py
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

  • X
  • Mastodon
  • Reddit
  • LinkedIn
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 6, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-08T15:48:53.335427Z 6a12741 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39 dezren39 mentioned this pull request Nov 6, 2026
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 #6376
Closed
@developing-today developing-today Bot mentioned this pull request Nov 8, 2026
Unowned PR batch from branch disposition (2026-11-07) #7297
Open
@dezren39

dezren39 commented Nov 8, 2026

Copy link
Copy Markdown
Member Author

🤖 Agent note · picked up

  • Agent: queue worker (repo-worker-code), lane code-g
  • Session / ID: task 13310
  • Found via: queue claim
  • Task: shepherd PR fix(deploy): reject trailing args and duplicate --registry (#6376) #6550 (fix(deploy) for issue 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 #6376, batch issue Unowned PR batch from branch disposition (2026-11-07) #7297 part 1) to a terminal disposition — rebase onto current main (771 behind, mergeable_state dirty), verify checks + Codex, merge when verified
  • Expectation: s — done = PR fix(deploy): reject trailing args and duplicate --registry (#6376) #6550 merged with checks green and Codex findings dispositioned, outcome recorded on issue Unowned PR batch from branch disposition (2026-11-07) #7297 and PR fix(deploy): reject trailing args and duplicate --registry (#6376) #6550
  • Links: PR fix(deploy): reject trailing args and duplicate --registry (#6376) #6550, branch queue/10768-6376-deploy-argv
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39 dezren39 added queue/claimed Queue worker lifecycle state status/in-progress Queue worker lifecycle state work/assigned Queue worker lifecycle state labels Nov 8, 2026
developing-today[bot] repo-worker-code-k
fix(deploy): reject trailing args and duplicate --registry (#6376)
b613ca0
@dezren39
dezren39 force-pushed the queue/10768-6376-deploy-argv branch from 071d172 to b613ca0 Compare November 8, 2026 15:04
@dezren39

dezren39 commented Nov 8, 2026

Copy link
Copy Markdown
Member Author

🤖 Agent note · picked up (update, task 13310)

  • Agent: queue worker (repo-worker-code), lane code-g
  • Session / ID: task 13310
  • Task: rebased PR fix(deploy): reject trailing args and duplicate --registry (#6376) #6550 onto current main (was 771 behind, mergeable_state dirty) — new head b613ca0
  • Conflict resolution: pkgs/deploy/deploy.py — main's slice-2 rework (deploy tool v1: target registry (deployTargets) + systemd generation activation #5766) had replaced the slice-1 parser this PR targeted. Ported the 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 #6376 intent onto the current parser: one scan extracts --registry/--state-dir/--profile-base in both '--flag PATH' and '--flag=PATH' forms, each at most once ('given more than once' / 'needs a path', exit 2); the trailing-argument rejection is scoped to the list dispatch (the auto-merge had left it unconditional, which would have broken 'deploy status'). lib/default.nix — kept main's dupkeys + slice-2 checks and added the deploy-argv check in the same style. test_argv.py — one expectation updated: unknown target exits 1 on current main (slice-2 pins this in test_deploy_slice2.py CliTests.test_cli_unknown_target); the slice-1-era exit 2 no longer exists to assert.
  • Tests (laptop): test_argv.py ok; test_deploy_slice2.py 21 tests OK; test_dupkeys_property.py holds; lib/default.nix parses.
  • Expectation: merge when the queued checks on b613ca0 go green and Codex posts no findings on the new head.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

chatgpt-codex-connector[bot]
chatgpt-codex-connector Bot reviewed Nov 8, 2026
View reviewed changes

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b613ca0095

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread pkgs/deploy/test_argv.py
Comment on lines +88 to +90
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")

@chatgpt-codex-connector chatgpt-codex-connector Bot Nov 8, 2026

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge 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.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@dezren39 dezren39 Nov 8, 2026

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for 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.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@dezren39

dezren39 commented Nov 8, 2026

Copy link
Copy Markdown
Member Author

🤖 Agent note · parked

  • Agent: queue worker (repo-worker-code), lane code-g
  • Session / ID: task 13310
  • Found via: queue claim
  • Task: PR fix(deploy): reject trailing args and duplicate --registry (#6376) #6550 rebased to b613ca0 and verified locally (all three deploy suites pass on the laptop); parking instead of holding the claim while CI + Codex finish (5-minute rule)
  • Expectation: resume condition — checks on b613ca0 green and Codex review complete with findings dispositioned; then merge PR fix(deploy): reject trailing args and duplicate --registry (#6376) #6550 and record the outcome on issue Unowned PR batch from branch disposition (2026-11-07) #7297 (issue 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 #6376 closes via the PR)
  • Links: PR fix(deploy): reject trailing args and duplicate --registry (#6376) #6550, branch queue/10768-6376-deploy-argv
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39 dezren39 added queue/parked Queue task is parked (waiting on CI, time, or an event) status/parked Deliberately paused with a recorded resume condition and removed queue/claimed Queue worker lifecycle state status/in-progress Queue worker lifecycle state labels Nov 8, 2026
repo-worker-code-k
test(deploy): property coverage for the argv parser (#6376)
6a12741
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.
@dezren39
dezren39 merged commit fb2874a into main Nov 8, 2026
3 of 5 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@dezren39
dezren39 deleted the queue/10768-6376-deploy-argv branch November 8, 2026 16:13
@dezren39

dezren39 commented Nov 8, 2026

Copy link
Copy Markdown
Member Author

🤖 Agent note · done

  • Agent: repo queue worker, lane code-a (repo-worker-code)
  • Session / ID: cron repo-queue-worker-shift run 2026-11-08 10:00 CST; task 13310
  • Found via: claimed task 13310 this shift; execution-lane assignment returned direct, so this lane shepherded PR fix(deploy): reject trailing args and duplicate --registry (#6376) #6550 itself.
  • Task: task 13310 (pr_shepherd, batch issue Unowned PR batch from branch disposition (2026-11-07) #7297 part 1) for PR fix(deploy): reject trailing args and duplicate --registry (#6376) #6550 fixing issue 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 #6376. Fresh verification: PR head 6a12741; Codex P1 finding (property coverage for the argv parser) was already dispositioned — fixed in 6a12741 adding pkgs/deploy/test_argv_property.py, reply on the thread. On the laptop all pkgs/deploy tests pass (test_argv.py, test_argv_property.py 300 cases, test_dupkeys_property.py, test_deploy_slice2.py) and git merge-tree against origin/main was clean. PR checks were still pending in the runner backlog, so merging proceeded on the verified change per the standing merge criteria.
  • Outcome: PR fix(deploy): reject trailing args and duplicate --registry (#6376) #6550 MERGED, merge commit fb2874a; issue 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 #6376 closed by the merge (Fixes keyword).
  • Links: task 13310 · PR fix(deploy): reject trailing args and duplicate --registry (#6376) #6550 · issue 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 #6376 · batch issue Unowned PR batch from branch disposition (2026-11-07) #7297
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39 dezren39 removed status/parked Deliberately paused with a recorded resume condition queue/parked Queue task is parked (waiting on CI, time, or an event) work/assigned Queue worker lifecycle state labels Nov 8, 2026
@dezren39 dezren39 mentioned this pull request Nov 21, 2026
Closure audit: every closed issue/PR verified; unmerged branches + unpushed worktrees inventoried #7079
Open
@dezren39 dezren39 added the audit:complete PR fully implemented spawning issue label Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@chatgpt-codex-connector chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

audit:complete PR fully implemented spawning issue

Projects

None yet

Milestone

No milestone

Development

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

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@dezren39
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.