-
Notifications
You must be signed in to change notification settings - Fork 13
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
port in use errors in CI #3848
Comments
I have found port related errors in 3 different spots:
These 3 different areas may need to be handled separately. |
The teraslice package has a |
https://github.com/terascope/teraslice/actions/runs/11921771709/job/33226709312 This failure uses the findPort() function. I am guessing multiple tests run this function at the same time and there end up being collisions. We use |
|
This PR makes the following changes: - Adds the `--verbose` flag to the root package.json `build` script and removes `--silent` from `YARN_SETUP_ARGS`. This will hopefully reveal why the script fails occasionally. ref: #3849 - Replace unmaintained `porty` library with `get-port` library. - Within the teraslice package, many tests use `findPort()` to get a random port to start a server on. The implementation did not actually return a random port and made conflicts more likely. Update `findPort()` to use `get-port`, increase the port range, and get a truly random port in that range. ref: #3848 - When starting services, log all TCP ports just before calling `docker run`. This should give us more information about why the `docker run` commands occasionally fail with a `port already in use` error. ref: #3848
Have there been fewer or zero port errors on tests after this was merged? |
Or has the added netstat command helped narrow trouble down. |
There haven't been too many CI runs, but no port errors yet. |
We keep getting port in use errors.
I would like to try using
ss
to list all ports inTIME_WAIT
to see if they are not being shut down fast enough.The other option is to assign random ports.
Example failures:
https://github.com/terascope/teraslice/actions/runs/11981509936/job/33407933870
https://github.com/terascope/teraslice/actions/runs/11941437795/job/33286764202
The text was updated successfully, but these errors were encountered: