[CORE] Add explicit tracking for disabled test suites#12512
Conversation
|
Run Gluten Clickhouse CI on x86 |
There was a problem hiding this comment.
Pull request overview
Adds an explicit “disabled suite” concept to Gluten’s UT backend settings so suites can be intentionally marked as disabled (with a human-readable reason) instead of being silently omitted.
Changes:
- Introduces
disableSuite(...)and adisabledSuitesregistry inBackendTestSettings, and makesshouldRunshort-circuit disabled suites. - Updates Spark 4.0 / 4.1 Velox test settings to explicitly disable several suites with documented reasons.
- Adds Spark 4.0 / 4.1
GlutenSubExprEvaluationRuntimeSuitewrappers so the suite can be referenced and explicitly disabled.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| gluten-ut/common/src/test/scala/org/apache/gluten/utils/BackendTestSettings.scala | Adds disabled-suite tracking + API and integrates it into suite filtering. |
| gluten-ut/spark40/src/test/scala/org/apache/gluten/utils/velox/VeloxTestSettings.scala | Converts previously “not enabled” suites into explicitly disabled suites with reasons. |
| gluten-ut/spark41/src/test/scala/org/apache/gluten/utils/velox/VeloxTestSettings.scala | Same as Spark 4.0: explicitly disables suites with documented reasons. |
| gluten-ut/spark40/src/test/scala/org/apache/spark/sql/catalyst/expressions/GlutenSubExprEvaluationRuntimeSuite.scala | Adds wrapper suite class so it can be explicitly disabled/tracked. |
| gluten-ut/spark41/src/test/scala/org/apache/spark/sql/catalyst/expressions/GlutenSubExprEvaluationRuntimeSuite.scala | Same wrapper addition for Spark 4.1 (shim trait). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| protected def disableSuite(suiteName: String, reason: String): Unit = { | ||
| require(reason.nonEmpty, "Disable reason must not be empty") | ||
| if (enabledSuites.containsKey(suiteName)) { |
|
Run Gluten Clickhouse CI on x86 |
| protected def enableSuite(suiteName: String): SuiteSettings = { | ||
| if (disabledSuites.containsKey(suiteName)) { | ||
| throw new IllegalArgumentException("Suite is already disabled: " + suiteName) | ||
| } |
| if (disabledSuites.containsKey(suiteName)) { | ||
| throw new IllegalArgumentException("Duplicated disabled suite: " + suiteName) | ||
| } |
|
@zml1206, thank you for the PR. Can we remove https://github.com/search?q=repo%3Aapache%2Fgluten+.disable%28&type=code |
|
Run Gluten Clickhouse CI on x86 |
|
Run Gluten Clickhouse CI on x86 |
| protected def disableSuite(suiteName: String, reason: String): Unit = { | ||
| require(reason.nonEmpty, "Disable reason must not be empty") | ||
| if (enabledSuites.containsKey(suiteName)) { | ||
| throw new IllegalArgumentException("Suite is already enabled: " + suiteName) | ||
| } |
|
Run Gluten Clickhouse CI on x86 |
| protected def enableSuite(suiteName: String): SuiteSettings = { | ||
| if (disabledSuites.containsKey(suiteName)) { | ||
| throw new IllegalArgumentException("Suite is already disabled: " + suiteName) | ||
| } | ||
| if (enabledSuites.containsKey(suiteName)) { | ||
| throw new IllegalArgumentException("Duplicated suite name: " + suiteName) | ||
| } |
| protected def disableSuite(suiteName: String, reason: String): Unit = { | ||
| require(reason.nonEmpty, "Disable reason must not be empty") | ||
| if (enabledSuites.containsKey(suiteName)) { | ||
| throw new IllegalArgumentException("Suite is already enabled: " + suiteName) | ||
| } | ||
| if (disabledSuites.containsKey(suiteName)) { | ||
| throw new IllegalArgumentException("Duplicated disabled suite: " + suiteName) | ||
| } | ||
| disabledSuites.put(suiteName, reason) | ||
| } |
No description provided.