aglinxinyuan opened a new pull request, #9597:
URL: https://github.com/apache/texera/pull/9597

   ### What changes were proposed in this PR?
   
   Remove unused ScalaTest mixin traits and unread local exception bindings 
across 18 test specs in `amber`, `common/workflow-core`, and 
`common/workflow-operator` without changing production code or test assertions:
   
   - **Unused `MockFactory` mixin (`amber`):** Remove the unused `MockFactory` 
trait and import in `NetworkInputGatewaySpec`.
   - **Unused `BeforeAndAfterEach` mixin (`common/workflow-core`):** Remove the 
unused `BeforeAndAfterEach` trait and import in `FileResolverSpec`, 
`LargeBinaryInputStreamSpec`, `LargeBinaryOutputStreamSpec`, and 
`S3StorageClientSpec`, which define no per-test hooks.
   - **Unused `BeforeAndAfter` mixin and unread `val ex =` bindings 
(`common/workflow-operator`):** Remove the unused `BeforeAndAfter` trait and 
import in `URLFetcherOpExecSpec`, `TypeCastingOpExecSpec`, and 
`HtmlVizOpExecSpec`, and drop 17 unread `val ex =` assignments on 
`expectError[AssertionError](...)` calls across 10 visualization operator specs 
(`ImageVisualizerOpDescSpec`, `ScatterMatrixChartOpDescSpec`, 
`ContinuousErrorBandsOpDescSpec`, `FigureFactoryTableOpDescSpec`, 
`HistogramChartOpDescSpec`, `TablesPlotOpDescSpec`, `TernaryContourOpDescSpec`, 
`TernaryPlotOpDescSpec`, `WaterfallChartOpDescSpec`, and 
`WindRoseChartOpDescSpec`).
   
   ### Any related issues, documentation, discussions?
   
   Closes #9595.
   
   ### How was this PR tested?
   
   Ran on `9fb9b50b63` (JDK 17.0.14, `sbt 1.12.9`, 
`STORAGE_ICEBERG_CATALOG_TYPE=hadoop`, Docker RustFS running for `WorkflowCore` 
S3 specs):
   
   ```bash
   sbt --batch \
     "WorkflowCore/scalafmtCheckAll" \
     "WorkflowOperator/scalafmtCheckAll" \
     "WorkflowExecutionService/scalafmtCheckAll" \
     "WorkflowCore/scalafixAll --check" \
     "WorkflowOperator/scalafixAll --check" \
     "WorkflowExecutionService/scalafixAll --check" \
     "WorkflowExecutionService/testOnly 
org.apache.texera.amber.engine.architecture.messaginglayer.NetworkInputGatewaySpec"
 \
     "WorkflowCore/testOnly org.apache.texera.amber.storage.FileResolverSpec 
org.apache.texera.service.util.LargeBinaryInputStreamSpec 
org.apache.texera.service.util.LargeBinaryOutputStreamSpec 
org.apache.texera.service.util.S3StorageClientSpec" \
     "WorkflowOperator/testOnly 
org.apache.texera.amber.operator.source.fetcher.URLFetcherOpExecSpec 
org.apache.texera.amber.operator.typecasting.TypeCastingOpExecSpec 
org.apache.texera.amber.operator.visualization.ImageViz.ImageVisualizerOpDescSpec
 
org.apache.texera.amber.operator.visualization.ScatterMatrixChart.ScatterMatrixChartOpDescSpec
 
org.apache.texera.amber.operator.visualization.continuousErrorBands.ContinuousErrorBandsOpDescSpec
 
org.apache.texera.amber.operator.visualization.figureFactoryTable.FigureFactoryTableOpDescSpec
 
org.apache.texera.amber.operator.visualization.histogram.HistogramChartOpDescSpec
 org.apache.texera.amber.operator.visualization.htmlviz.HtmlVizOpExecSpec 
org.apache.texera.amber.operator.visualization.tablesChart.TablesPlotOpDescSpec 
org.apache.texera.amber.operator.visualization.ternaryContour.TernaryContourOpDescSpec
 
org.apache.texera.amber.operator.visualization.ternaryPlot.TernaryPlotOpDescSpec
 org.apache.texera.amber.operator.visualization.waterfall
 Chart.WaterfallChartOpDescSpec 
org.apache.texera.amber.operator.visualization.windRoseChart.WindRoseChartOpDescSpec"
   ```
   
   - `scalafmtCheckAll` and `scalafixAll --check` across `WorkflowCore`, 
`WorkflowOperator`, and `WorkflowExecutionService`: passed.
   - `WorkflowExecutionService`: `1` suite, `4` passed (`0` failed, `0` 
skipped).
   - `WorkflowCore`: `4` suites, `116` passed (`0` failed, `0` skipped).
   - `WorkflowOperator`: `13` suites, `73` passed (`0` failed, `0` skipped).
   
   ### Was this PR authored or co-authored using generative AI tooling?
   
   Generated-by: Antigravity (Gemini 4 Neon)
   


-- 
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]

Reply via email to