Repository navigation
fix(command): reject partial worker queries and compare TCP frontend membership - #1904
Merged
Merged
Conversation
…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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
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.