Repository navigation
test(e2e): cover TCP and UDP lifecycle boundaries - #1849
Merged
Merged
Conversation
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.
Problem
Sōzu's TCP and UDP lifecycle behavior was implemented but lacked end-to-end regression coverage at the boundaries where old resources coexist with replacement configuration. This left half-close draining, all three PROXY roles, labelled metrics incarnation fencing, and UDP flow ownership dependent on unit-level or indirect evidence.
Resulting behavior covered
RemoveClusterstops new UDP admission without closing an established flow. A replacement client opens a concurrent flow, idle expiry releases both connected upstream sockets, and the original client then creates a fresh flow. Counters move from(2 created, 2 evicted, 0 active)to(3, 2, 1)on reopen; the test does not assume the kernel chooses a never-before-used ephemeral port after all prior sockets are closed.doc/testing.mdrecords the focused commands and the TCP/UDP lifecycle distinction.Validation
crypto-ring, with three successful internal repetitions; the controlled mutation that closes flows onRemoveClusterfailed 0/1 and the restored code passed again.crypto-ring,crypto-aws-lc-rs,crypto-openssl, andfips. The correction retains every protocol, resource, metric, and coexistence witness.cargo +nightly fmt --all -- --check, repository Clippy withopentelemetry,splice,simd, documentation citations, and scope checks passed. Full workspace and E2E suites remain CI gates.Closes #1823
Refs #1840