Skip to content
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

Skip runner Dataflow v1 steps when a job will run on v2 #30604

Merged
merged 4 commits into from
Mar 13, 2024

Conversation

kennknowles
Copy link
Member

Fixes #30469

Currently there is inconsistent rewriting and validation.


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.

Copy link
Contributor

@damccorm damccorm left a comment

Choose a reason for hiding this comment

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

LGTM if it goes green

@kennknowles
Copy link
Member Author

R: @damccorm

Copy link
Contributor

Stopping reviewer notifications for this pull request: review requested by someone other than the bot, ceding control

@damccorm
Copy link
Contributor

Can we keep the files to run the postcommits?

@kennknowles
Copy link
Member Author

Sure. I dropped them because the only risk of this change is catastrophically making all Dataflow v1 jobs fail, and we already have them on precommit. I can add them back.

@github-actions github-actions bot added the build label Mar 11, 2024
@kennknowles
Copy link
Member Author

Looks like there are some replacements and also things that happen in traversal that are explicitly expected by tests. TBD what the deal is. I expect we have an anti-pattern of doing some replacements and then producing a "portable" pipeline that is specialized to Dataflow on the client side.

@kennknowles
Copy link
Member Author

Nope, it looks like there are just tests that set use_runner_v2 but then check that things happen during the v1 translation. Specifically the runner v1 translation was used to do client-side validation of what features were supported on v2. That definitely needs to be service-side so that service can evolve support without an SDK release. So actually this PR is a major upgrade in that sense, but we need to check that the service-side translation has adequate validation. Might commit a smaller version like your PR first, considering all this.

@kennknowles
Copy link
Member Author

R: @scwhittle for the removed tests. They were testing things that honestly wouldn't work right, but curious where are your thoughts on this, as it pertains to the status of the service's level of care in v2 codepaths:

  • level of validation for SetState and MapState support which should happen in the backend
  • don't really understand what is the deal with the GroupIntoBatches stuff
  • whether there is something in the service that somehow was trying to depend on the pubsub sink v1 translation even in v2?

To be clear, all these tests are testing whether the v1 translation has some behavior when the actual pipeline is running on v2.

@kennknowles
Copy link
Member Author

R: @reuvenlax

@kennknowles
Copy link
Member Author

Laughing to myself that the response to failing tests here was to delete the tests, but I think it is the right thing to do.

@kennknowles
Copy link
Member Author

Test failures were GCE quota.

@kennknowles
Copy link
Member Author

Green, but conflicts in the trigger files. I will drop that commit then merge.

@kennknowles
Copy link
Member Author

Internal tests green as well.

@github-actions github-actions bot removed the build label Mar 13, 2024
@kennknowles kennknowles merged commit c79b6e1 into apache:master Mar 13, 2024
13 of 15 checks passed
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.

[Bug]: KafkaIO cannot enable Dynamic Reads on Dataflow Runner V2
3 participants