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

   ### What changes were proposed in this pull request?
   
   Add six integration tests that exercise reattachable execution cleanup 
through a loopback tonic gRPC service. They cover nonblocking completion 
cleanup, incremental release, early drop inside and outside Tokio, cleanup 
retries, error preservation, and reattachment after EOF or disconnection. The 
tests also check release request identity and authentication/custom metadata.
   
   The fixture lives entirely in the core integration tests and uses a 
test-only `tonic-prost` dependency. It requires no Spark server.
   
   ### Why are the changes needed?
   
   [SPARK-60739](https://issues.apache.org/jira/browse/SPARK-60739) fixed 
execution cleanup in the Rust client. These tests protect that behavior at the 
gRPC boundary, including failure paths and background cleanup that must not 
delay query completion.
   
   Tracks [SPARK-60966](https://issues.apache.org/jira/browse/SPARK-60966).
   
   ### Does this PR introduce _any_ user-facing change?
   
   No. Tests only; the production fix is already present in master.
   
   ### How was this patch tested?
   
   All Cargo commands used `CARGO_NET_OFFLINE=true 
CARGO_REGISTRIES_CRATES_IO_PROTOCOL=git`.
   
   - `cargo test -p apache-spark-connect-core --release --test 
reattach_cleanup`: 6 passed.
   - `cargo test -p apache-spark-connect --release --lib`: 419 passed.
   - All `apache-spark-connect` integration targets compiled with `--release 
--no-run`, both with and without `--features wasm-udf`.
   - `cargo fmt --all --check`: passed.
   - `cargo clippy -p apache-spark-connect-core --test reattach_cleanup`: 
passed.
   - Built the native extension and compared 12 public API classes with 
official Spark 4.3.0: no unexpected gaps.
   - Ran `scripts/run_official_tests.py` against an isolated Spark 4.3.0 
server, scoped to `test_parity_collection` and 
`test_parity_dataframe_query_context`: 21 passed, 1 skipped.
   
   `cargo clippy --workspace --all-targets` fails on the clean upstream base 
(`014674e`) as well, including existing numeric-literal test lints. Every error 
reported for this branch points to a source file byte-identical to that base; 
the new integration test passes its focused Clippy check.
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   Generated-by: OpenAI Codex (GPT-6)
   
   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