HyukjinKwon opened a new pull request, #417: URL: https://github.com/apache/spark-connect-rust/pull/417
### What changes were proposed in this pull request? [SPARK-61240](https://issues.apache.org/jira/browse/SPARK-61240): Run the official Spark Connect test suites against the drop-in in CI. - `scripts/run_official_tests.py` gets a `--dropin` mode. It builds an overlay of our `python/` tree with the built `_pyspark.so` and the official test packages our tree lacks (never overwriting our files), and runs each official Connect file with our own `pyspark` on the path, without the Rust transport injection. Discovery covers `sql/tests/connect`, `ml/tests/connect`, `errors/tests/connect` and `logger/tests/connect`, minus the three local-cluster-only files. Retries for `FLAKY_FILES`, the exit-code gate and the drift check are unchanged. - `scripts/dropin_deselect_plugin.py` is a small pytest plugin that applies the node-id suffix deselection, without loading the extension. - `scripts/dropin_known_failures.txt` is the manifest: whole files by design (gRPC client internals; the torch-based `pyspark.ml.connect` API replaced by the native ML API) and the four tests the official 4.3.0 reference also fails here. Real open gaps are not listed. - `.github/workflows/build_python_connect.yml` gets a `connect-dropin` job, parallel to `connect-parity`, with the same setup, serial run, and log upload. - Unit tests for discovery, overlay construction, dropin/transport runner selection and the deselect plugin. ### Why are the changes needed? The official Connect suites reach our code only through the transport in CI, with official PySpark building every plan. So the drop-in's own Rust-backed classes (DataFrame, Column, functions, readers) are only covered by our own tests. Locally the official files run against the drop-in with 2688 passed; nothing in CI gates that. Running them as a gate exposes the remaining gaps, which are listed in the PR description and tracked separately: `test_connect_session.py`, `test_connect_context.py`, `test_connect_error.py`, `test_connect_column.py`, and `ml/tests/connect/test_connect_cache.py` and `test_connect_model_offloading.py`. The new job fails until those are fixed. ### Does this PR introduce _any_ user-facing change? No. Test infrastructure only. ### How was this patch tested? - Local run of `run_official_tests.py --dropin` on master against a Spark 4.3.0 Connect server, all 119 discovered files: 2688 passed, 9 failed, 2 collection errors, 553 skipped. The 11 failing items are the open gaps above; the manifest entries are the reference-also-fails tests, which the official 4.3.0 PySpark also fails on the same server. - New unit tests in `scripts/tests/test_run_official_tests.py` (discovery scope and exclusions, overlay adds official files without overwriting ours, dropin runner uses the deselect plugin and not the transport, transport mode unchanged, manifest lists no open gap, deselect plugin select/deselect semantics). - ruff check and ruff format --check on `scripts/` pass (ruff 0.14.0). - `python3 -m unittest discover -s scripts/tests` (22 tests) and ruff 0.14.0 on `scripts/` pass. A local run of the new `--dropin` mode over its whole scope (119 files) on master's build against a Spark 4.3.0 Connect server (cwd `SPARK_HOME`, `SPARK_TESTING=1`): 2688 passed, 9 failed, 2 collection errors, 553 skipped, 15 files skipped by the manifest. The failures are the open drop-in gaps, which are deliberately not in the manifest and are fixed by SPARK-61235 (#416, `test_connect_column.py`), SPARK-61238 (`ml/tests/connect/test_connect_cache.py`, `test_connect_model_offloading.py`) and the session/client PR (`test_connect_session.py`, `test_connect_context.py`, `test_connect_error.py`); the new job turns green once they merge. ### Was this patch authored or co-authored using generative AI tooling? Generated-by: Claude Opus 5.5 This pull request and its description were written by Isaac. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
