Skip to content

test: cover async boundary failure draining#3296

Merged
He-Pin merged 1 commit into
apache:mainfrom
He-Pin:fix/async-boundary-failure-drain-test
Jul 5, 2026
Merged

test: cover async boundary failure draining#3296
He-Pin merged 1 commit into
apache:mainfrom
He-Pin:fix/async-boundary-failure-drain-test

Conversation

@He-Pin

@He-Pin He-Pin commented Jul 5, 2026

Copy link
Copy Markdown
Member

Motivation

Async boundary batching should preserve elements already produced by an upstream stage before that stage fails.

Modification

Add a focused FusingSpec regression using transformed string elements upstream of an async boundary, then assert the already emitted elements arrive before the failure.

Result

Async boundary failure-draining behavior has a direct regression test.

References

None - regression coverage for async boundary batching

Motivation:
Async boundary batching should preserve elements already produced by an upstream stage before that stage fails.

Modification:
Add a focused FusingSpec regression using transformed string elements upstream of an async boundary, then assert the already emitted elements arrive before the failure.

Result:
Async boundary failure-draining behavior has a direct regression test.

Tests:
- rtk scalafmt --mode diff-ref=origin/main -- passed
- rtk scalafmt --list --mode diff-ref=origin/main -- passed
- rtk git diff --check -- passed
- rtk sbt "stream-tests / Test / testOnly org.apache.pekko.stream.FusingSpec -- -z \"deliver transformed elements already produced\"" -- passed, 1 test
- rtk qodercli --help -- passed, confirmed -p/--print, --output-format, --cwd, and --attachment
- qodercli stdout review of /tmp/project-review.diff -- passed, no must-fix findings

References:
None - regression coverage for async boundary batching
@He-Pin
He-Pin requested a review from pjfanning July 5, 2026 16:40
@He-Pin He-Pin added this to the 2.0.0-M4 milestone Jul 5, 2026

@pjfanning pjfanning left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@He-Pin
He-Pin merged commit e520a7c into apache:main Jul 5, 2026
9 checks passed
@He-Pin
He-Pin deleted the fix/async-boundary-failure-drain-test branch July 5, 2026 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants