The GitHub Actions job "Required Checks" on texera.git/main has failed. Run started by GitHub user github-merge-queue[bot] (triggered by github-merge-queue[bot]).
Head commit for run: 6a16e1a58926368a3e9ea4cfad61cfb20daacd26 / Xinyuan Lin <[email protected]> test(amber, common): remove unused spec mixins and bindings (#9597) ### What changes were proposed in this PR? Remove unused ScalaTest mixin traits, unread local exception bindings, and type checks that cannot fail across 31 test specs in `amber`, `common/workflow-core`, and `common/workflow-operator`, and shut down the actor systems of the two `TestKit` specs that never did. No production code changes: - **Unused `MockFactory` mixin (`amber`):** Remove the `MockFactory` trait and import in `NetworkInputGatewaySpec`, `CostBasedScheduleGeneratorSpec`, `RangeBasedShuffleSpec`, and `WorkerSpec`, which create no mocks or stubs. - **Unused `BeforeAndAfterEach` mixin (`amber`, `common/workflow-core`):** Remove the trait and import in `BatchSizePropagationSpec`, `DataProcessorSpec`, `TrivialControlSpec`, `FileResolverSpec`, `LargeBinaryInputStreamSpec`, `LargeBinaryOutputStreamSpec`, and `S3StorageClientSpec`, which define no per-test hooks. - **Unused or redundant `BeforeAndAfterAll` mixin (`amber`, `common/workflow-core`):** Remove it from `DefaultCostEstimatorSpec`, `IcebergDocumentConsoleMessagesSpec`, and `LakeFSStorageClientMtimeSpec`, which define no suite hooks, and from `LargeBinaryInputStreamSpec`, `LargeBinaryOutputStreamSpec`, and `S3StorageClientSpec`, whose `S3StorageTestBase` already extends it; their `super.beforeAll()`/`super.afterAll()` chains are unchanged. - **Missing actor-system shutdown (`amber`):** `LoggingSpec` and `ReplaySpec` mixed in `BeforeAndAfterAll` with no hook and never shut down their `TestKit` actor systems; they now call `TestKit.shutdownActorSystem(system)` in `afterAll`, like the other `TestKit` specs. - **Unused `BeforeAndAfter` mixin (`common/workflow-operator`):** Remove the trait and import in `URLFetcherOpExecSpec`, `TypeCastingOpExecSpec`, `HtmlVizOpExecSpec`, and `KeywordSearchOpExecSpec`, which have no `before`/`after` blocks. - **Unread `val ex =` bindings and type checks that cannot fail (`common/workflow-operator`):** 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`). In `ContinuousErrorBandsOpDescSpec`, `NestedTableOpDescSpec`, `WaterfallChartOpDescSpec`, and `WindRoseChartOpDescSpec`, also replace each `val ex = expectError[AssertionError](...)` followed by `ex shouldBe a[AssertionError]` with a bare `expectError` call, since `expectError` already returns the intercepted `AssertionError`. ### Any related issues, documentation, discussions? Closes #9595. ### How was this PR tested? Ran on `7e79747ea8` (JDK 17.0.14, `sbt 1.12.9`, `STORAGE_ICEBERG_CATALOG_TYPE=hadoop`, Docker running for the `WorkflowCore` RustFS and LakeFS test containers): ```bash sbt --batch \ "WorkflowCore/scalafmtCheckAll" \ "WorkflowOperator/scalafmtCheckAll" \ "WorkflowExecutionService/scalafmtCheckAll" \ "WorkflowCore/scalafixAll --check" \ "WorkflowOperator/scalafixAll --check" \ "WorkflowExecutionService/scalafixAll --check" sbt --batch "WorkflowOperator/testOnly org.apache.texera.amber.operator.keywordSearch.KeywordSearchOpExecSpec 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.nestedTable.NestedTableOpDescSpec org.apache.texera.amber.operator.visualization.tablesChart.TablesPlotOpDescSpec org.apache.texera.amber.operator.visualization.ternaryContour.Ter naryContourOpDescSpec org.apache.texera.amber.operator.visualization.ternaryPlot.TernaryPlotOpDescSpec org.apache.texera.amber.operator.visualization.waterfallChart.WaterfallChartOpDescSpec org.apache.texera.amber.operator.visualization.windRoseChart.WindRoseChartOpDescSpec" sbt --batch "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 org.apache.texera.amber.core.storage.util.LakeFSStorageClientMtimeSpec" sbt --batch "WorkflowExecutionService/testOnly org.apache.texera.amber.engine.architecture.messaginglayer.NetworkInputGatewaySpec org.apache.texera.amber.engine.architecture.messaginglayer.RangeBasedShuffleSpec org.apache.texera.amber.engine.architecture.scheduling.CostBasedScheduleGeneratorSpec org.apache.texera.amber.engine.architecture.scheduling.DefaultCostEstimatorSpec org.apache.texera.amber.engine.architecture.worker.DataProcessorSpec org.apache.texera.amber.engine.architecture.worker.WorkerSpec org.apache.texera.amber.engine.architecture.control.TrivialControlSpec org.apache.texera.amber.engine.e2e.BatchSizePropagationSpec org.apache.texera.amber.engine.faulttolerance.LoggingSpec org.apache.texera.amber.engine.faulttolerance.ReplaySpec org.apache.texera.amber.storage.result.iceberg.IcebergDocumentConsoleMessagesSpec" ``` - `scalafmtCheckAll` and `scalafixAll --check` across `WorkflowCore`, `WorkflowOperator`, and `WorkflowExecutionService`: passed. - `WorkflowOperator`: `15` suites, `94` passed (`0` failed, `0` skipped). - `WorkflowCore`: `5` suites, `118` passed (`0` failed, `0` skipped). - `WorkflowExecutionService`: `11` suites, `65` passed (`0` failed, `0` skipped). ### Was this PR authored or co-authored using generative AI tooling? Generated-by: Antigravity (Gemini 4 Neon), Claude Code (Claude Opus 5.5) Report URL: https://github.com/apache/texera/actions/runs/45184304721 With regards, GitHub Actions via GitBox
