HyukjinKwon opened a new pull request, #468: URL: https://github.com/apache/spark-connect-rust/pull/468
### What changes were proposed in this pull request? [SPARK-61359](https://issues.apache.org/jira/browse/SPARK-61359): three small build and test-infrastructure fixes from a review. - `crates/spark-connect-proto/build.rs` reads `CARGO_MANIFEST_DIR` when it runs, instead of `env!("CARGO_MANIFEST_DIR")`, which is baked in when the script is compiled. Cargo sets the variable for every build-script run. - `scripts/gen_parity_skiplist.py` pins `PYTHONHASHSEED=0` for its reference runs, as `scripts/run_official_tests.py` (and Apache's `bin/pyspark`) does. - `scripts/run_official_tests.py` gives `test_parity_udtf.py` the 1200 s cap of `test_parity_arrow_python_udf.py`. ### Why are the changes needed? - A build directory shared by several checkouts (git worktrees) can run a build script compiled in another checkout. Once that checkout is deleted, the build fails: ``` protoc failed: Could not make proto path relative: <deleted checkout>/crates/spark-connect-proto/proto/spark/connect/base.proto: No such file or directory ``` - With a random hash seed, about 7% of the runs of the official `test_crossvalidator_with_random_forest_classifier` train a fold on one label and fail, for the reference client too. So a regenerated skip manifest could pick up that flake. - `test_parity_udtf.py` runs 387 tests, most with a Python worker on the server. It takes 145-204 s on CI runners, but 466 s on a loaded machine, against the 360 s default cap. ### Does this PR introduce _any_ user-facing change? No. Build and test infrastructure only. ### How was this patch tested? - `build.rs`: two checkouts at master shared one build directory. The first built the proto crate and was deleted, and then the second built it, with the build script of the first: - without the change, the second build failed with the error above; - with it, the second build passed. - `ruff check` and `ruff format --check` on the two scripts, and `cargo fmt --all --check`. ### 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]
