Repository navigation
e2e: the stand of the relay leg automaton (#69) - #93
Merged
Merged
Conversation
scripts/e2e/relay-leg.sh builds one panel, an entry and two exits in private network namespaces (documentation and RFC 1918 ranges only), with IPv4 and IPv6 on the entry-exit links and a filter in between that drops either family per relay on demand. It runs Hysteria2 UDP relays and covers the proposal, accept, reject, stale, rollback and pinned-leg cases of the relay_leg automaton; --long adds a lane for mode auto. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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.
A stand for the relay leg automaton (#69, step 2):
scripts/e2e/relay-leg.sh. Only the script is added, the product is not changed.It runs in its own
unshare -n -mnamespaces likebridge.sh(panel, an entry, two exits, a filter that drops IPv4 or IPv6 per relay with nft, a client; documentation address ranges only). Run from WSL:bash scripts/e2e/relay-leg.sh [--long].Covered (two fast runs in a row, 72 PASS, 0 FAIL, about 14.5 min; one
--longrun, 76 PASS, 41 min):ipv4 -> ipv6proposal appears, nothing moves insuggest; after accept the relay goes pending -> active on IPv6, the leg and path checks pass, client traffic flows, the capture on the filter shows IPv6 only;no_target); relays pinned to ipv4/ipv6 are left alone;--long: modeautomoves the relay by itself after the two probes.Not covered:
leg_return(the 6 h hold has no time seam; only the IPv4 probe while on IPv6 and no early proposal are checked), accepting through MCP (the admin API is used), TCP relays behind the bridge (bridge.sh).🤖 Generated with Claude Code