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:
412a76f045277e23eaf87bbde407e26687b36048 / Xinyuan Lin <[email protected]>
test(amber): add EmbeddedControlMessageManager alignment tests (#6158)

### What changes were proposed in this PR?

Adds `EmbeddedControlMessageManagerSpec` (new) for the amber worker's
`EmbeddedControlMessageManager`, which had no spec. Using
directly-constructed collaborators (`NetworkInputGateway` +
`InputManager`, no actor system), it covers the `isECMAligned` /
`getChannelsWithinScope` branches:

- `ALL_ALIGNMENT` (empty scope) — not aligned until every data channel
has delivered the ECM;
- `PORT_ALIGNMENT` — aligns on the port's channel set;
- `NO_ALIGNMENT` — triggers only on the first ECM;
- an unsupported ECM type throws `IllegalArgumentException`;
- the non-empty-scope filter path.

No production code changed.

### Any related issues, documentation, discussions?

Coverage gaps identified from the Codecov report for `apache/texera`
(amber module coverage push toward 80%).

### How was this PR tested?

```
sbt "WorkflowExecutionService/testOnly *EmbeddedControlMessageManagerSpec"
```

All 5 pass. `scalafmt` and `scalafixAll --check` are clean.

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

Generated-by: Claude Code (Opus 4.8 [1M context])

---------

Co-authored-by: Claude Opus 4.8 <[email protected]>

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

With regards,
GitHub Actions via GitBox

Reply via email to