gengliangwang commented on code in PR #59520:
URL: https://github.com/apache/spark/pull/59520#discussion_r4569980853
##########
dev/sparktestsupport/modules.py:
##########
@@ -1793,6 +1794,18 @@ def __hash__(self):
],
)
+# The Rust SDK of native data sources, a Cargo workspace that neither Maven
nor SBT builds. The
+# rust-sdk job of build_and_test.yml tests it with its examples, against the C
header it binds.
+rust_sdk = Module(
+ name="rust-sdk",
+ dependencies=[],
+ source_file_regexes=[
+ "sql/native/rust/",
+ "examples/src/main/rust/",
+
r"sql/core/src/main/resources/org/apache/spark/sql/datasource/spark_datasource\.h",
Review Comment:
Selecting `rust-sdk` for those files would run CI without catching anything
new. The rust-sdk job (build_and_test.yml, "Build, test, and lint the SDK and
its examples") only runs cargo build/test/clippy/fmt/doc, against the header
and a fake host. It never loads `NativeLibrary.java` or
`NativeDataSource.scala`, so a JVM-only change can't make it fail. The real
check of the JVM host against the contract is on the JVM side:
`NativeDataSourceSuite` and `NativeDataSourceClusterSuite` drive the host
against the C test libraries under
`sql/core/src/test/resources/native-datasource`, and they already run for
changes to `sql/core`. A real end-to-end Rust-on-JVM check would need a Spark
build in the rust-sdk job. That is worth doing, but it is a separate CI change,
not a regex here.
--
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]