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:
22b0518731a169c323a3f0683904ed94537c0d5c / carloea2 <[email protected]>
feat(pyamber): route ranges by unique receivers (#8246)

### What changes were proposed in this PR?

Use the unique receiver count when dividing the range. The planner
includes every sender-receiver pair, so counting channels makes the
Python bucket index too large when a range link has multiple senders.

For two senders and two receivers over -10 to 9, key 9 previously raised
`IndexError`. It now reaches receiver B, matching the JVM partitioner.

### Any related issues, documentation, discussions?

Closes #8245. Provides the receiver-count change discussed in #8258.

### How was this PR tested?

Added the OutputManager regression before changing production code: four
multi-sender cases failed with `IndexError`; both single-sender controls
passed. The six cases cover one to three senders, one or two receivers,
partition boundaries, and values outside the range.

Also executed `LinkConfig.toPartitioning` on JDK 17 and passed its
serialized configurations into Python OutputManager. All six matched the
regression configurations byte for byte and passed after the change.
This checks planner configuration and worker output dispatch, without
running a complete workflow.

With Python 3.12 and `PYTHONPATH=src/main/python`, from `amber`:

```text
python -m pytest 
src/test/python/core/architecture/packaging/test_output_manager.py 
src/test/python/core/architecture/sendsemantics -q --tb=short -p 
no:cacheprovider
83 passed

python -m pytest src/test/python/core/architecture 
src/test/python/core/runnables -q --tb=short -p no:cacheprovider
567 passed

ruff check src/main/python src/test/python
All checks passed

ruff format --check src/main/python src/test/python
217 files already formatted
```

`git diff --check` passed.

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

Generated-by: Codex (GPT-6)

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

With regards,
GitHub Actions via GitBox

Reply via email to