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

   ### What changes were proposed in this pull request?
   
   A follow-up of #580 (SPARK-61587). It gave `check_block` of 
`scripts/check_doc_snippets.py` two required arguments: the rlib of 
`apache-spark-connect` and the directories of its dependencies. The unit tests 
in `scripts/tests/test_check_doc_snippets.py`, which the lint job runs 
(`python3 -m unittest discover -s scripts/tests`), call `check_block(code, 
tmpdir, 1)` with self-contained snippets. So they fail on master with 
`TypeError: check_block() missing 2 required positional arguments: 'rlib' and 
'deps'`.
   
   Both arguments are optional again. Without an rlib, a snippet is compiled 
without `--extern spark_connect`, as the tests need.
   
   ### Why are the changes needed?
   
   To fix the "rustfmt + clippy" job of the lint workflow on master.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No.
   
   ### How was this patch tested?
   
   - `python3 -m unittest discover -s scripts/tests`: 35 tests OK. Three 
errored before this change.
   - `scripts/check_doc_snippets.py`: 56 snippets, 0 failures.
   - `ruff check` and `ruff format --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]

Reply via email to