Skip to content

Fix host-related issues re start_arkouda_server() - #4454

Merged
ajpotts merged 2 commits into
Bears-R-Us:masterfrom
vasslitvinov:fix-start_arkouda_server
May 30, 2025
Merged

ajpotts merged 2 commits into
Bears-R-Us:masterfrom
vasslitvinov:fix-start_arkouda_server

Conversation

@vasslitvinov

@vasslitvinov vasslitvinov commented May 29, 2025 •

Copy link
Copy Markdown
Contributor

Fix a bug that prevents tests/optioned-server/conftest.py added in #4391 from connecting to the server that's not on "localhost".

While there, clarify the handling of the server host and port in the test suites:

  • "Host" that comes from a command-line argument or environment variable and defaults to localhost is used only in the CLIENT running mode.
  • "Host" is obtained from start_arkouda_server(), which reads it from ak-server-info that's created by the server, in GLOBAL_SERVER and CLASS_SERVER modes.
  • "Port" comes from a command-line argument or environment variable and defaults to 5555; the port produced by start_arkouda_server() is expected to be the same.

The testing frameworks store the host and the port for use in ak.connect() as follows:

suite tests/ benchmarks/ benchmark_v2/
host pytest.server get_server_info() pytest.host
port pytest.port get_server_info() pytest.port
file conftest.py run_benchmarks.py conftest.py

The host argument of start_arkouda_server() has not been used for its intended purpose since it was added in #374. I propose to remove it, which will increase the clarity of code.

@vasslitvinov
vasslitvinov force-pushed the fix-start_arkouda_server branch from bb86e1c to cc9f21b Compare May 29, 2025 17:36
@ShreyasKhandekar
ShreyasKhandekar self-requested a review May 29, 2025 18:21

@ShreyasKhandekar ShreyasKhandekar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Thanks for making these improvements, Vass!

@vasslitvinov
vasslitvinov force-pushed the fix-start_arkouda_server branch from cc9f21b to d13d94e Compare May 30, 2025 02:26
@ajpotts
ajpotts added this pull request to the merge queue May 30, 2025
@ajpotts

ajpotts commented May 30, 2025

Copy link
Copy Markdown
Contributor

Thank you!

@ajpotts
ajpotts removed this pull request from the merge queue due to the queue being cleared May 30, 2025
@ajpotts
ajpotts added this pull request to the merge queue May 30, 2025

@jaketrookman jaketrookman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@1RyanK 1RyanK left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Merged via the queue into Bears-R-Us:master with commit 03141b6 May 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants