The GitHub Actions job "Required Checks" on texera.git/main has succeeded.
Run started by GitHub user github-merge-queue[bot] (triggered by 
github-merge-queue[bot]).

Head commit for run:
d32395cd52da6550577a1487a757d77b02b7cf61 / carloea2 <[email protected]>
fix(amber): reject duplicate worker initialization (#8083)

### What changes were proposed in this PR?

`OperatorExecution.initWorkerExecution` now checks whether the worker ID
is already a key in the execution map. This prevents a repeated
initialization from silently replacing the existing execution.

The old characterization and pending tests are replaced with one active
regression test. It verifies both that the repeated initialization fails
and that the original execution remains registered.

Before: A repeated worker ID replaced the original execution.

After: A repeated worker ID raises `AssertionError` and preserves the
original execution.

This change removes 19 lines overall.

### Any related issues, documentation, discussions?

Closes #8082

### How was this PR tested?

The regression test failed before the production change with 13 tests
passing and 1 test failing. It passed after the change with all 14 tests
passing.

```shell
sbt "set DAO / Compile / sourceGenerators := Seq.empty" 
"WorkflowExecutionService / Test / testOnly 
org.apache.texera.amber.engine.architecture.coordinator.execution.OperatorExecutionSpec"
sbt "set DAO / Compile / sourceGenerators := Seq.empty" "scalafixAll --check"
sbt scalafmtCheckAll
```

### Was this PR authored or co-authored using generative AI tooling?

Generated-by: OpenAI Codex, GPT-5

Report URL: https://github.com/apache/texera/actions/runs/33428141865

With regards,
GitHub Actions via GitBox

Reply via email to