dongjoon-hyun opened a new pull request, #60688:
URL: https://github.com/apache/spark/pull/60688

   ### What changes were proposed in this pull request?
   
   This PR removes 9 test tag annotations that have no effect, and 3 imports 
that are unused after the removal.
   
   | Kind | Class | Tag |
   |---|---|---|
   | Non-Suite class | `FakeDataStream` | `@SlowSQLTest` |
   | Trait | `V2JDBCTest`, `V2JDBCNamespaceTest` | `@DockerTest` |
   | Trait | `RocksDBStateStoreTest` | `@SlowSQLTest` |
   | Abstract class | `StateStoreDecoupledMaintenanceSuiteBase` | 
`@ExtendedSQLTest` |
   | Abstract class | `StreamingInnerJoinBase`, `StreamingOuterJoinBase`, 
`StreamingFullOuterJoinBase`, `StreamingLeftSemiJoinBase` | `@SlowSQLTest` |
   
   ### Why are the changes needed?
   
   The Spark test tags under `common/tags` are not `@Inherited`, and ScalaTest 
collects class-level tags only from the concrete suite class via 
`theSuite.getClass.getAnnotations` ([Suite.scala in release-3.2.19 
(2024-04-20)](https://github.com/scalatest/scalatest/blob/release-3.2.19/jvm/core/src/main/scala/org/scalatest/Suite.scala#L1983-L1989)).
 So, a tag on a non-test class, a trait, or an abstract base class is never 
applied to any test. It only misleads readers into thinking that the subclasses 
are tagged.
   
   All concrete subclasses already have their own tags.
   - `@DockerTest`: `DB2IntegrationSuite`, `DB2NamespaceSuite`, and the other 
implementations of `V2JDBCTest` and `V2JDBCNamespaceTest`
   - `@SlowSQLTest`: `RocksDBStateStore*Suite`, 
`StreamingInnerJoinWithVCFSuite` and the other 
`Streaming*JoinWith(out)VCFSuite`s, and `Streaming*JoinV4Suite`
   - `@ExtendedSQLTest`: `RocksDBDecoupledMaintenanceSuite`
   
   `StateStoreDecoupledMaintenanceSuite` has no tag because the tag of its base 
class was never inherited, so it keeps running in the same test group as before.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No. This is a test-only change, and the set of tests selected by each tag is 
unchanged.
   
   ### How was this patch tested?
   
   Pass the CIs. I also checked that the test code compiles.
   
   ```
   $ build/sbt -Pdocker-integration-tests sql/Test/compile 
docker-integration-tests/Test/compile
   ```
   
   ### 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]

Reply via email to