Skip to content

[BEAM-9382] Changes TestStreamTranscriptTest to only inserts two elements#10969

Merged
robertwb merged 1 commit intoapache:masterfrom
acrites:combining-accumulation-mode
Feb 26, 2020
Merged

[BEAM-9382] Changes TestStreamTranscriptTest to only inserts two elements#10969
robertwb merged 1 commit intoapache:masterfrom
acrites:combining-accumulation-mode

Conversation

@acrites
Copy link
Contributor

@acrites acrites commented Feb 25, 2020

This will ensure that it's behavior is the same across all runners. Right now a runner must only emit after receiving at least 2 elements since it uses early Count(2) trigger so there's no guarantee the third element will be emitted in the GroupBy.

R: @robertwb


Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

  • Choose reviewer(s) and mention them in a comment (R: @username).
  • Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
  • Update CHANGES.md with noteworthy changes.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

Post-Commit Tests Status (on master branch)

Lang SDK Apex Dataflow Flink Gearpump Samza Spark
Go Build Status --- --- Build Status --- --- Build Status
Java Build Status Build Status Build Status
Build Status
Build Status
Build Status
Build Status
Build Status Build Status Build Status
Build Status
Build Status
Python Build Status
Build Status
Build Status
Build Status
--- Build Status
Build Status
Build Status
Build Status
--- --- Build Status
XLang --- --- --- Build Status --- --- Build Status

Pre-Commit Tests Status (on master branch)

--- Java Python Go Website
Non-portable Build Status Build Status
Build Status
Build Status Build Status
Portable --- Build Status --- ---

See .test-infra/jenkins/README for trigger phrase, status and link of all Jenkins jobs.

Copy link
Member

@kennknowles kennknowles left a comment

Choose a reason for hiding this comment

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

I agree with this change. The prior test selected one out of multiple allowed behaviors. With this change there is only one allowed behavior. On the other hand, it would be nice to be able to specify a test loosely so that we can test cases that are not edge cases.

Copy link
Contributor

@robertwb robertwb left a comment

Choose a reason for hiding this comment

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

I also think this make sense for this test case.

@robertwb robertwb merged commit e6b988d into apache:master Feb 26, 2020
@acrites acrites deleted the combining-accumulation-mode branch February 5, 2024 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants