Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[8.1] Reduce port range re-use in tests (#85777) #85859

Merged
merged 1 commit into from
Apr 13, 2022

Conversation

DaveCTurner
Copy link
Contributor

Backports the following commits to 8.1:

Today we select the port range to use in tests by taking the Gradle
worker ID mod 223. We now use significantly more than 223 Gradle workers
in each test run which means port ranges are re-used, resulting in
spurious failures.

This commit replaces the magic number 223 with a computation defined in
terms of the available ports and the number of ports to allocate per
worker. It also reduces the number of ports per worker to 30 to try and
reduce the frequency of port clashes.
@DaveCTurner DaveCTurner added auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport labels Apr 13, 2022
@elasticsearchmachine elasticsearchmachine merged commit ef8ca62 into elastic:8.1 Apr 13, 2022
@DaveCTurner DaveCTurner deleted the backport/8.1/pr-85777 branch April 13, 2022 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport v8.1.4
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants