Skip to content

Check the reserved ports' guarantees, not exact numbers - #265

Merged
slachiewicz merged 1 commit into
masterfrom
agent/it-free-ports
Oct 13, 2026
Merged

slachiewicz merged 1 commit into
masterfrom
agent/it-free-ports

Conversation

@slachiewicz

Copy link
Copy Markdown
Member

reserve-ports-with-min asserted exact ports, but reserve-network-port skips any port another process holds. On a Linux runner something held 40000, the plugin correctly returned 40001–40003, and the IT failed master (run 38399321483). The verify script now checks what the goal promises: every port at or above its minPortNumber, all nine distinct, and increasing within each range.

Verified: mvn -P run-its verify -Dinvoker.test=reserve-ports-with-min → passes on Maven 3.9.16 and JDK 17.

reserve-network-port skips ports another process holds; on a CI runner 40000 was taken and the plugin correctly returned 40001-40003.
@slachiewicz slachiewicz added the maintenance Cleanup, refactoring or other internal change label Oct 13, 2026
@slachiewicz
slachiewicz marked this pull request as ready for review October 13, 2026 13:14
@slachiewicz
slachiewicz merged commit 28d7ed1 into master Oct 13, 2026
18 checks passed
@slachiewicz
slachiewicz deleted the agent/it-free-ports branch October 13, 2026 13:14
@github-actions github-actions Bot added this to the 3.6.3 milestone Oct 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Cleanup, refactoring or other internal change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant