Bug #17199
closed[tests] Avoid random port conflicts when bringing up integration test services
100%
Description
Occasionally this code in source:sdk/python/tests/run_test_server.py chooses the same port twice, which causes the test suite to fail:
def setup_config():
rails_api_port = find_available_port()
controller_port = find_available_port()
controller_external_port = find_available_port()
websocket_port = find_available_port()
websocket_external_port = find_available_port()
workbench1_port = find_available_port()
workbench1_external_port = find_available_port()
# ...
Updated by Tom Clegg about 4 years ago
17199-available-port-race @ 3083521d8b6c83b0d80e4f63c56ee434ad8fa697 -- developer-run-tests: #2210
Updated by Ward Vandewege about 4 years ago
Tom Clegg wrote:
17199-available-port-race @ 3083521d8b6c83b0d80e4f63c56ee434ad8fa697 -- developer-run-tests: #2210
LGTM. Of course it won't protect against port numbers being reused accidentally when running multiple copies of run_test_server.py on the same machine...
Updated by Tom Clegg about 4 years ago
port numbers being reused accidentally when running multiple copies of run_test_server.py on the same machine...
Indeed, reliably avoiding that would be a different story...
Updated by Anonymous about 4 years ago
- Status changed from In Progress to Resolved
Applied in changeset arvados|b43a1bccda8980c6fcb9b3fbaad36b986c472028.