Skip to content

fleet-proxy(connect-udp): give fleet-connect-udp a real argument surface - #6143

Merged
dezren39 merged 1 commit into
mainfrom
queue/9933-6134-connect-udp-args
Nov 5, 2026
Merged

dezren39 merged 1 commit into
mainfrom
queue/9933-6134-connect-udp-args

Conversation

@dezren39

@dezren39 dezren39 commented Nov 5, 2026 •

Copy link
Copy Markdown
Member

Fixes #6134 (queue task 9933).

fleet-connect-udp ignored argv entirely — --help and typo'd flags started the CONNECT-UDP endpoint (the #5488/#5568 class, on a bin that starts a network endpoint).

Change

Verification (laptop, this branch)

  • cargo test -p fleet-proxy — 46/46 pass, including new pinning test bin_args_help_usage_error_and_bare (help / unknown-arg / bare shapes + usage-text contract). cargo fmt -p fleet-proxy -- --check clean.
  • Real-binary probes: --help and -h print usage on stdout, exit 0; --bogus-junk exits 2 naming the argument; bare with a non-opted-in config exits 69 (stays dark, unchanged); bare with connect_udp = true on 127.0.0.1:39299 serves (timeout-killed at 124, unchanged).

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

…ace (#6134)

fleet-connect-udp ignored argv entirely: --help and typod flags started the CONNECT-UDP endpoint (#6134, the #5488/#5568 class). Add classify_bin_args + CONNECT_UDP_USAGE in connect_udp.rs, checked by the bin before any config load or bind: -h/--help print usage on stdout and exit 0, any other argument is a usage error naming it on stderr at EXIT_USAGE (2), bare invocation is unchanged in both config states. Pinning test bin_args_help_usage_error_and_bare covers help, unknown-arg, and bare shapes; cargo test -p fleet-proxy 46/46 on the laptop, plus real-binary probes of all four shapes (help 0, bogus 2, bare-dark 69, bare-opted-in serves).
@dezren39
dezren39 requested a review from a team as a code owner November 5, 2026 07:51
@coderabbitai

coderabbitai Bot commented Nov 5, 2026

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 4 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: be7d3bf4-2f2b-4e59-89a4-1026459ab824
Commits

Reviewing files that changed from the base of the PR and between 31ee14f and f25264a.

Files selected for processing: 2

  • pkgs/fleet/crates/fleet-proxy/src/bin/fleet-connect-udp.rs
  • pkgs/fleet/crates/fleet-proxy/src/connect_udp.rs
  • 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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-05T07:53:04.289169Z f25264a PR opened
ℹ️ 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.

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.

fleet-proxy(connect-udp): fleet-connect-udp ignores argv entirely — --help and typo'd flags start the CONNECT-UDP endpoint

1 participant