Repository navigation
[Data] Run HiveServer2 integration tests in premerge CI - #67144
Conversation
Signed-off-by: Silas <[email protected]>
Signed-off-by: Silas <[email protected]>
Signed-off-by: Silas <[email protected]>
There was a problem hiding this comment.
Code Review
This pull request introduces HiveServer2 integration tests to the Data pipeline by adding a new bash script (run_hive_integration.sh) to orchestrate a disposable HiveServer2 Docker container, along with a Python test suite (test_run_hive_integration.py) to verify its behavior. It also updates Buildkite configurations, Bazel targets, and dependencies (adding impyla). Feedback on the changes suggests running the timeout command on the host rather than inside the container to avoid relying on container utilities, and using textwrap.dedent to improve the readability of the inline Python script in the test file.
Signed-off-by: Silas <[email protected]>
RayCI mounts the host's /tmp/artifacts at /artifact-mount in the Forge job container, so the previous default wrote the Hive server and readiness logs outside the artifact mount and they were lost after the build. Default to /artifact-mount/hive so a failing run's logs are retained as downloadable build artifacts; RAY_HIVE_LOG_DIR still overrides the location for local debugging. Signed-off-by: Silas <[email protected]>
|
No further concerns from my side. LGTM. |
|
This looks good — the cleanup verification is thorough, the orchestration tests are a nice One thing before merging: the new Hive step hasn't actually run in Ray's CI yet. The PR's only (FYI for later: #67114's direct-read tests need HDFS/S3, so they'll stay manual even with this |
apache/hive:4.2.0 could be republished upstream, and the Beeline readiness probe depends on the image's exact JDK. Pin the manifest list digest so the fixture stays reproducible, and assert the pin in the orchestration tests. Signed-off-by: Silas <[email protected]>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Reviewed by Cursor Bugbot for commit 7c85f4e. Configure here.
Thanks for the clarification. Once #67114 and the follow-up PRs tracked by #67182 (Hive partitions) and #67183 (Iceberg/Delta tables) are merged, I'll add CI coverage for direct mode. |
|
Premerge #75397 is fully green, including the new |
|
hmm, i'm not sure this is the right way to do this. Is the main thing that you need to start a hive server during the testing? cc @elliot-barn for review |
Hi @richardliaw I think the main requirement is to make a real HS2 service available in CI so the existing read_hive integration tests can run automatically. Mocks alone cannot validate actual query execution and type conversion through the Hive client. The isolated, disposable service in this PR seems reasonable for that purpose and could also support follow-up projection, filter, and limit pushdown tests. With additional storage setup, it could also support direct-read tests. |
|
OK got it. |

Description
Adds the HiveServer2 integration tests to premerge CI. These tests were previously marked
manual.The job starts Hive 4.2.0, waits for a SQL query to succeed, runs the tests, and cleans up the service. It uses the existing Data integration image with Impyla installed and skips
docstring-onlyPRs.Related issues
Fixes #67042. Follow-up to #66573. No other open PR was found covering this CI setup.
Testing
python -m pytest -q ci/ray_ci/data/test_run_hive_integration.py— 14 passed, including cleanup failures and already absent resources.python -m pytest -q python/ray/data/tests/datasource/test_hive.py— 17 passed.python -m pytest -q python/ray/data/tests/datasource/test_hive_lifecycle.py python/ray/data/tests/datasource/test_hive_no_replay.py— 18 passed.git diff --checkpassed.python -m pytest -v -rs python/ray/data/tests/datasource/test_hive_integration.py— 3 passed, 1 skipped. TLS is skipped because the fixture uses PLAIN/NONE authentication without TLS.Ray tests used this branch's Python code with nightly Ray Core wheels. The linked Linux run used host pytest and Dockerized Hive; it did not exercise the full Buildkite Docker/Bazel path.
AI tools assisted with the code and tests.