philo-he commented on code in PR #13727: URL: https://github.com/apache/gluten/pull/13727#discussion_r4673476500
########## AGENTS.md: ########## @@ -118,6 +118,29 @@ covered by existing Spark UTs. # Run Gluten Clickhouse CI ``` +### Where to put Scala and Java tests + +This section covers JVM tests only. C++ tests stay with the native code they +test, under `cpp/<component>/tests/` (for example `cpp/core/tests/` or +`cpp/velox/tests/`). + +- **`gluten-ut/spark<version>/` is only for Spark tests and Spark test + variants.** A `Gluten<Name>Suite` there extends Spark's `<Name>Suite` so + Spark's tests run with Gluten. Besides those, it may only hold Spark test + variants: copies of Spark tests with small changes to fit Gluten, usually + written with `testGluten` to replace an excluded Spark test. Do not add new + Gluten tests to these suites or to traits mixed into them. +- **Prefer re-enabling Spark tests over keeping Spark test variants.** When a + fix makes an excluded Spark test pass, remove its `.exclude(...)` entry from + the backend test settings (for example `VeloxTestSettings` and + `ClickHouseTestSettings`) for each Spark version, and delete its Spark test + variant if one exists. +- **New Gluten tests that are not specific to a backend** go under + `gluten-ut/test/`. +- **New tests that are specific to a backend** (for example, assertions on native + plans or fallback) go in that backend's module, such as + `backends-velox/src/test/` or `backends-clickhouse/src/test/`. + Review Comment: @infvg, just updated to clarify this. Thanks! -- 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]
