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

Avoid reserved ports in test_adaptive_localization #8886

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/ert/cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ def run_cli(args: Namespace, plugin_manager: Optional[ErtPluginManager] = None)
raise ErtCliError(f"{args.mode} was not valid, failed with: {e}") from e

if args.port_range is None and model.queue_system == QueueSystem.LOCAL:
# This is within the range for ephemeral ports as defined by
# most unix flavors https://en.wikipedia.org/wiki/Ephemeral_port
args.port_range = range(49152, 51819)

evaluator_server_config = EvaluatorServerConfig(custom_port_range=args.port_range)
Expand Down
2 changes: 0 additions & 2 deletions tests/ert/ui_tests/cli/analysis/test_adaptive_localization.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ def run_cli_ES_with_case(poly_config):
"--realizations",
"1-50",
poly_config,
"--port-range",
"1024-65535",
"--experiment-name",
"test-experiment",
)
Expand Down