aglinxinyuan opened a new pull request, #9510:
URL: https://github.com/apache/texera/pull/9510
### What changes were proposed in this PR?
Consolidate repeated actor-system, coordinator, execution-client, and E2E
database test scaffolding across Amber engine test suites into shared test
fixtures without altering production code or test assertions:
- **`AmberSerdeTestSupport`:** Extracts suite-local `ActorSystem` /
`AmberRuntime` serialization lifecycle binding (with eager/lazy initialization
and restore/clear teardown policies) and recursive temp-directory cleanup
across 8 coordinator, log-replay, runtime, checkpoint, and storage specs.
- **`CoordinatorMessageFixture`:** Shares `CoordinatorProcessor` + FIFO
output capture initialization, physical-op/worker identity helpers, and
control-invocation filters across 6 coordinator promise-handler specs.
- **`RecordingExecutionClient`:** Extracts a shared empty-plan `AmberClient`
test double supporting callback registration/delivery/disposal tracking and
proxy coordinator invocation recording across
`ExecutionReconfigurationServiceSpec`, `ExecutionRuntimeServiceSpec`, and
`WorkflowExecutionServiceSpec`.
- **`RetryingDatabaseE2ESpec`:** Shares retrying `TestKit`, single-node
cluster listener registration, PostgreSQL database lifecycle
(`setUpWorkflowExecutionData` / `cleanupWorkflowExecutionData`), and
Python-worker warmup across 3 E2E specs and 2 integration E2E specs.
- **`BatchSizePropagationSpec` & `DPThreadSpec`:** Consolidates partitioning
batch-size diagnostic assertions, pause/resume drivers, multi-source batch
feeding, and mid-batch stall verification into scoped suite helpers.
### Any related issues, documentation, discussions?
Closes #9509.
### How was this PR tested?
Verified with `STORAGE_JDBC_URL` and `UDF_PYTHON_PATH` configured after the
final edit:
```bash
STORAGE_ICEBERG_CATALOG_TYPE=hadoop AMBER_TEST_FILTER=skip-integration sbt \
"WorkflowExecutionService/scalafixAll --check" \
"WorkflowExecutionService/scalafmtCheckAll" \
"WorkflowExecutionService/testOnly
org.apache.texera.amber.engine.architecture.coordinator.ClientEventSpec
org.apache.texera.amber.engine.architecture.logreplay.LogreplayPrimitivesSpec
org.apache.texera.amber.engine.architecture.logreplay.ReplayLogGeneratorSpec
org.apache.texera.amber.engine.common.AmberRuntimeSpec
org.apache.texera.amber.engine.common.CheckpointSubsystemSpec
org.apache.texera.amber.engine.common.storage.HDFSRecordStorageSpec
org.apache.texera.amber.engine.common.storage.SequentialRecordStorageSpec
org.apache.texera.amber.engine.common.storage.VFSRecordStorageSpec
org.apache.texera.amber.engine.architecture.coordinator.promisehandlers.ConsoleMessageHandlerSpec
org.apache.texera.amber.engine.architecture.coordinator.promisehandlers.DebugCommandHandlerSpec
org.apache.texera.amber.engine.architecture.coordinator.promisehandlers.EvaluatePythonExpressionHandlerSpec
org.apache.texera.amber.engine.architecture.coordinator.promisehandlers.RetryWorkflowHandlerSpec
org.ap
ache.texera.amber.engine.architecture.coordinator.promisehandlers.TakeGlobalCheckpointHandlerSpec
org.apache.texera.amber.engine.architecture.coordinator.promisehandlers.WorkerStateUpdatedHandlerSpec
org.apache.texera.web.service.ExecutionReconfigurationServiceSpec
org.apache.texera.web.service.ExecutionRuntimeServiceSpec
org.apache.texera.web.service.WorkflowExecutionServiceSpec
org.apache.texera.amber.engine.e2e.BatchSizePropagationSpec
org.apache.texera.amber.engine.architecture.worker.DPThreadSpec
org.apache.texera.amber.engine.e2e.DataProcessingSpec
org.apache.texera.amber.engine.e2e.PauseSpec
org.apache.texera.amber.engine.e2e.ReconfigurationSpec"
```
Observed result: `WorkflowExecutionService/scalafixAll --check` and
`WorkflowExecutionService/scalafmtCheckAll` passed; 22 suites completed, 223
tests succeeded (0 failed, 0 canceled/skipped).
```bash
STORAGE_ICEBERG_CATALOG_TYPE=postgres AMBER_TEST_FILTER=integration-only sbt
\
"WorkflowExecutionService/testOnly
org.apache.texera.amber.engine.e2e.MultiRegionWorkflowIntegrationSpec
org.apache.texera.amber.engine.e2e.ReconfigurationIntegrationSpec"
```
Observed result: 2 suites completed, 4 tests succeeded (0 failed, 0
canceled/skipped). Across all 24 affected suites (227 tests total), JUnit XML
test names and pass outcomes matched the `origin/main` baseline 1:1.
### Was this PR authored or co-authored using generative AI tooling?
Generated-by: Antigravity
--
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]