dongjoon-hyun opened a new pull request, #60488:
URL: https://github.com/apache/spark/pull/60488
### What changes were proposed in this pull request?
This PR aims to add a new test tag, `DataSourceV2Test`, and a new GitHub
Actions test group, `sql - DSv2 tests`, so that the `sql` module tests run in
four groups instead of three.
- Add `org.apache.spark.tags.DataSourceV2Test`.
- Tag the Data Source V2 test suites of `sql/core` (201 Scala suites) with
`DataSourceV2Test`.
- All suites in `org.apache.spark.sql.connector`.
- All suites in `org.apache.spark.sql.execution.datasources.v2`, except
`v2.state`, which tests the streaming state data source.
- All suites in `org.apache.spark.sql.execution.command.v2` and
`org.apache.spark.sql.jdbc.v2`.
- The V2 variants of other suites, e.g. `ParquetV2FilterSuite`,
`OrcV2SchemaPruningSuite`, `CSVv2Suite`, `JsonV2Suite`,
`DynamicPartitionPruningV2SuiteAEOn`, `JDBCV2Suite` and
`DataFrameWriterV2Suite`. Structured Streaming suites and the suites where `V2`
means something else (`TPCDSV2_7_*` and the checkpoint format V2 suites) are
not included.
- 23 of them were `ExtendedSQLTest` and 4 were `SlowSQLTest`. Their old
tags are replaced.
- Add `sql - DSv2 tests` to `build_and_test.yml` and `maven_test.yml`, and
exclude `DataSourceV2Test` from `sql - other tests`.
### Why are the changes needed?
The `sql` test jobs are the longest jobs of every full CI run. SPARK-61675
moved the two largest suites of `sql - slow tests` to `sql - extended tests`,
which shortened `sql - slow tests` but made `sql - extended tests` longer. In
addition, `sql - other tests` keeps growing because new suites go there by
default, and DSv2 suites are among the most actively added ones.
The following is the sum of the suite times (minutes) of each group,
recomputed from the JUnit reports of four recent `master` runs with the suites
regrouped by the tags after SPARK-61675 (Before) and after this PR (After).
Each job additionally spends about 8.5 minutes on the setup and the SBT startup.
| Run | Before: extended / slow / other | Longest | After: extended / slow /
other / DSv2 | Longest |
|---|---|---|---|---|
| [42790260308](https://github.com/apache/spark/actions/runs/42790260308)
(2026-11-10) | 132.9 / 105.0 / 115.9 | 132.9 | 112.6 / 102.9 / 96.7 / 41.6 |
112.6 |
| [42976246038](https://github.com/apache/spark/actions/runs/42976246038)
(2026-11-11) | 104.2 / 100.9 / 121.3 | 121.3 | 88.3 / 98.8 / 102.0 / 37.4 |
102.0 |
| [43172927742](https://github.com/apache/spark/actions/runs/43172927742)
(2026-11-12) | 110.8 / 115.5 / 105.8 | 115.5 | 94.4 / 113.0 / 88.2 / 36.5 |
113.0 |
| [43338041496](https://github.com/apache/spark/actions/runs/43338041496)
(2026-11-13) | 106.8 / 97.7 / 122.0 | 122.0 | 90.4 / 95.8 / 100.9 / 39.5 |
100.9 |
| Average | 113.7 / 104.8 / 116.2 | 116.2 | 96.4 / 102.6 / 96.9 / 38.8 |
102.6 |
The new group is the smallest one, so it leaves room for the DSv2 test
suites that will be added in the future.
### Does this PR introduce _any_ user-facing change?
No, this is a test-only change.
### How was this patch tested?
- Pass the CIs with the new `sql - DSv2 tests` job.
- Compile the test code and run Scalastyle.
```
$ build/sbt sql/Test/compile sql/Test/scalastyle
```
- Run sample suites with the same system properties that `dev/run-tests`
passes to SBT, and check which tests run.
```
$ build/sbt -Dtest.include.tags=org.apache.spark.tags.DataSourceV2Test
"sql/testOnly org.apache.spark.sql.connector.DataSourceV2OptionSuite
org.apache.spark.sql.execution.datasources.text.TextV2Suite
org.apache.spark.sql.execution.datasources.text.TextV1Suite"
```
| Filter | `DataSourceV2OptionSuite` | `TextV2Suite` | `TextV1Suite` |
|---|---|---|---|
| `-Dtest.include.tags=...DataSourceV2Test` (DSv2 tests) | 56 | 30 | 0 |
|
`-Dtest.exclude.tags=...ExtendedSQLTest,...SlowSQLTest,...DataSourceV2Test`
(other tests) | 0 | 0 | 29 |
| `-Dtest.include.tags=...ExtendedSQLTest` (extended tests) | 0 | 0 | 0 |
### Was this patch authored or co-authored using generative AI tooling?
Generated-by: Claude Opus 5.5
--
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]