HyukjinKwon opened a new pull request, #592:
URL: https://github.com/apache/spark-connect-rust/pull/592

   ### What changes were proposed in this pull request?
   
   The Contributing guide (`docs/contributing.md`) covered only the Rust 
crates. It now has:
   - a short map of the repository (the Rust crates, the `pyspark` package and 
the `pyspark-rs` extension);
   - **A local Spark Connect server**: start the bundled server (no 
`--packages`) with CI's settings: `TZ=UTC`, `SPARK_TESTING=1`, a 
`PYSPARK_PYTHON` with pandas and pyarrow of the tests' Python version, and the 
driver memory and local-relation limit. Also how to stop it and where it logs;
   - **Python drop-in**:
     - set up Python with the packages CI installs (pandas below 3.0);
     - build the extension and use `python/` as the `pyspark` package through 
`PYTHONPATH`, as CI does, or build a wheel with maturin;
     - run the offline and live tests, the CI file lists, and coverage with its 
floor;
     - run Apache Spark's official Connect suites with 
`scripts/run_official_tests.py`, in both modes;
     - keep the vendored PySpark code verbatim, and regenerate the generated 
files;
   - **Style**: `cargo fmt`, `-D warnings`, the no-stub audit, and ruff as CI 
runs it (`--force-exclude` when given paths);
   - corrected Rust parts: the e2e tests run only with `SPARK_REMOTE`, CI runs 
them on one thread, and clippy is advisory, since `cargo clippy --workspace 
--all-targets` does not pass on master;
   - a pre-push checklist.
   
   ### Why are the changes needed?
   
   A contributor to the Python drop-in had nothing to follow.
   
   ### Does this PR introduce _any_ user-facing change?
   
   Docs only.
   
   ### How was this patch tested?
   
   Every command on the page was run on a checkout of master. The exceptions 
are the Linux `cp` (run on macOS), network installs, and the official suites in 
full; one file was run in each mode.
   - The build, and the offline suites (3261 passed, 8 skipped).
   - The live suites against a local Spark 4.3.0 server started with the 
documented command (358 passed, 1 skipped), and `test_parity_column.py` in both 
official modes (137 passed each).
   - The coverage command (93%), ruff 0.14.0, the vendored drift check, 
`gen_fn_dispatch.py --check`, and the Rust commands.
   - `mkdocs build --strict`.
   
   ### 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]

Reply via email to