This is an automated email from the ASF dual-hosted git repository.

philo-he pushed a commit to branch agents-md-test-placement
in repository https://gitbox.apache.org/repos/asf/gluten.git

commit 9ea74b60da118b4c76807dfed2ecb02b06d25ba0
Author: Philo He <[email protected]>
AuthorDate: Mon Nov 23 05:09:18 2026 +0000

    [MINOR][DOC] Document where to put tests in AGENTS.md
---
 AGENTS.md | 23 +++++++++++++++++++++--
 1 file changed, 21 insertions(+), 2 deletions(-)

diff --git a/AGENTS.md b/AGENTS.md
index 6354d21592..ee551f3dae 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -104,8 +104,8 @@ Do not commit code that fails CI checks.
 
 ## Testing
 
-Add at least one unit test (under `gluten-ut/`) for any fix or feature not
-covered by existing Spark UTs.
+Add at least one unit test for any fix or feature not covered by existing
+UTs.
 
 ```bash
 # gluten-ut — must select backend, Spark and Scala profiles
@@ -118,6 +118,25 @@ covered by existing Spark UTs.
 # Run Gluten Clickhouse CI
 ```
 
+### Where to put 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/`.
+
 ## PR Title Convention
 
 Use `[GLUTEN-<issue ID>]` when a GitHub issue exists ("if necessary" per


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to