The GitHub Actions job "Pull Requests" on pekko.git/fix-source-combine-single 
has failed.
Run started by GitHub user He-Pin (triggered by He-Pin).

Head commit for run:
16db3ad02336b63fa25030bc5e6584dfdbfc0e72 / He-Pin(亐) <[email protected]>
fix: Source.combine bypassing fanInStrategy for single source (#2723)

Motivation:
Source.combine with a single source bypasses fanInStrategy entirely,
doing a direct asInstanceOf cast. This is wrong for strategies like
MergeLatest where the output type differs from input (T => List[T]).

Modification:
Try fanInStrategy(1) first via GraphDSL. If strategy throws
IllegalArgumentException (Concat/Interleave require >1 inputs),
fall back to direct cast (safe because T==U for those strategies).

Result:
Source.combine(Seq(source))(MergeLatest(_)) now correctly emits
List[T] instead of raw T.

References:
- https://github.com/apache/pekko/issues/2723

Report URL: https://github.com/apache/pekko/actions/runs/23069780466

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to