Stabilize gateway test port allocation - #95
Merged
Conversation
lucarlig
force-pushed
the
user/luca/stabilize-gateway-test-ports
branch
from
August 18, 2026 08:56
de44c04 to
70605f4
Compare
lucarlig
changed the base branch from
main
to
user/luca/issue-6185-task-handles
August 18, 2026 08:57
lucarlig
marked this pull request as ready for review
August 18, 2026 08:57
dawid-nowak
previously approved these changes
Aug 18, 2026
lucarlig
force-pushed
the
user/luca/stabilize-gateway-test-ports
branch
from
August 18, 2026 09:19
70605f4 to
ea13eb8
Compare
dawid-nowak
self-requested a review
August 18, 2026 09:22
lucarlig
changed the base branch from
user/luca/issue-6185-task-handles
to
main
August 18, 2026 09:23
Signed-off-by: lucarlig <luca.carlig@ibm.com> (cherry picked from commit 4653f8f)
lucarlig
force-pushed
the
user/luca/stabilize-gateway-test-ports
branch
from
August 18, 2026 09:24
ea13eb8 to
793db5a
Compare
dawid-nowak
approved these changes
Aug 18, 2026
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.
Summary
127.0.0.1:0before publishing their portsWhy this is needed
The previous helper asked the operating system for an unused port and released it before Axum bound the server. Parallel integration tests could claim that port in the gap, causing intermittent
AddrInUsefailures unrelated to the behavior under test.Binding port zero and retaining the returned listener removes that time-of-check/time-of-use race. This changes test infrastructure only; production dataplane behavior is unchanged.
Stack
This is the base layer of native GitHub stack #100. PR #97 contains the task-handle implementation above it. This PR's review diff against
mainis limited totests/support/list_tools_gateway.rs.Validation
cargo fmt --all -- --checkcargo test --locked -p contextforge-data-plane-lib --test gateway_list_tools— 2 passedgit diff --check origin/main...HEAD