Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Attempt prism for pipelines with unbounded PCollections. #34721

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

robertwb
Copy link
Contributor

Also fix error with terminal state checking.


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

  • Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
  • 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.

To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md

GitHub Actions Tests Status (on master branch)

Build python source distribution and wheels
Python tests
Java tests
Go tests

See CI.md for more information about GitHub Actions CI or the workflows README to see a list of phrases to trigger workflows.

Also fix error with terminal state checking.
@robertwb robertwb force-pushed the prism-for-unbounded branch from c70404a to f0f7a42 Compare April 24, 2025 00:40
Copy link
Contributor

Checks are failing. Will not request review until checks are succeeding. If you'd like to override that behavior, comment assign set of reviewers

@robertwb robertwb force-pushed the prism-for-unbounded branch 3 times, most recently from 640e8df to d3a6dad Compare April 25, 2025 22:18
@robertwb
Copy link
Contributor Author

An attempt at fixing #34768

Note that several tests use periodic impulse which does work with the Python in-process runner as long as the number of impulses is finite. These tests also break on PrismRunner.

@robertwb robertwb force-pushed the prism-for-unbounded branch from d3a6dad to fb543a4 Compare April 28, 2025 18:32
@Abacn
Copy link
Contributor

Abacn commented Apr 28, 2025

cc: @shunping

Copy link
Contributor

Assigning reviewers. If you would like to opt out of this review, comment assign to next reviewer:

R: @liferoad for label python.

Available commands:

  • stop reviewer notifications - opt out of the automated review tooling
  • remind me after tests pass - tag the comment author after tests pass
  • waiting on author - shift the attention set back to the author (any comment or push by the author will return the attention set to the reviewers)

The PR bot will only process comments in the main thread (not review comments).

'''
self.start_ts = start_timestamp
self.stop_ts = stop_timestamp
self.interval = fire_interval
self.apply_windowing = apply_windowing
self.is_bounded = (
stop_timestamp - start_timestamp > 60
Copy link
Collaborator

Choose a reason for hiding this comment

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

From the code comment above, I think it should be "< 60" since it is considered as bounded for a small time range.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You're right, I accidentally flipped the direction in my refactor. Fixed.

@robertwb robertwb force-pushed the prism-for-unbounded branch from fb543a4 to 9cc1da4 Compare April 28, 2025 21:44
@kennknowles
Copy link
Member

Is it ready for re-review or still under revision? (just checking on 7d < last update < 14d PRs)

@robertwb
Copy link
Contributor Author

robertwb commented May 6, 2025

Thanks for following up. This PR is plagued by the fact that it pushes more tests onto the Prism runner that used to run (just fine) on the old Python runner, but break on the Prism runner. Simply fixing the runner likely won't work well with the use of TestPipeline() to run these tests on a variety of runners. I haven't had time to figure out the best way to resolve this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants