Skip to content

fix(command): reject partial worker queries and compare TCP frontend membership - #1904

Merged
FlorentinDUBOIS merged 2 commits into
mainfrom
codex/sozu-tcp-diff-frontends
Oct 19, 2026
Merged

FlorentinDUBOIS merged 2 commits into
mainfrom
codex/sozu-tcp-diff-frontends

Conversation

@FlorentinDUBOIS

@FlorentinDUBOIS FlorentinDUBOIS commented Oct 19, 2026 •

Copy link
Copy Markdown
Collaborator

Cluster and certificate-worker queries could return Success with an incomplete worker map after timeout or refusal. Require complete valid worker responses before Success, preserving the optional main payload. A missing certificate fingerprint reported as Failure by a worker now fails the query instead of yielding an empty Success.

ConfigState diff emits TCP frontend changes with set semantics but its debug replay postcondition compared vector order. Compare frontend membership without changing stored order or emitted commands.

Upgrade-probe unit tests link to a tracked executable fixture instead of writing an executable during parallel tests. This prevents a concurrent fork from retaining its writer and causing ETXTBSY before protocol negotiation. The protocol-2 rejection, protocol-3 acceptance and exact probe-log assertions remain unchanged.

Validation: causal RED/GREEN unit and real-process regressions, including controlled writer inheritance on the real probe factory; Rust 1.93.1 workspace all-feature build; all-target/all-feature Clippy with warnings denied; workspace tests with default features (3,414 passed, 55 ignored by default, four fuzz wrappers excluded; 24 of those ignored process tests executed separately); all 24 mutable-command process tests executed with the frozen public 2.3.1 fixture; six deterministic mutable-command simulations; nightly fmt. The original full beta command passes with the static fixture. Documentation and Unreleased notes describe the behavior changes.

…membership

Reject cluster and certificate worker queries unless every expected worker returns a valid terminal response. This prevents an incomplete fleet view from being reported as a successful query.

Compare TCP frontend membership as sets in the debug diff replay postcondition. Stored vector order and emitted commands remain unchanged.

Signed-off-by: Florentin Dubois <[email protected]>
Link probe candidates to a tracked executable instead of writing scripts
during parallel unit tests. A concurrent fork can retain the temporary
writer and make Command::spawn fail with ETXTBSY before negotiation.

Preserve per-test protocol and log paths and the existing protocol-2
rejection and protocol-3 acceptance assertions.

Signed-off-by: Florentin Dubois <[email protected]>
@FlorentinDUBOIS
FlorentinDUBOIS merged commit 6064279 into main Oct 19, 2026
46 checks passed
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.

1 participant