Skip to content

[Java] Ensure Pipeline Execution Requires Configuration Options or Logs Warning#34220

Closed
Suvrat1629 wants to merge 2 commits intoapache:masterfrom
Suvrat1629:pipeline-warn
Closed

[Java] Ensure Pipeline Execution Requires Configuration Options or Logs Warning#34220
Suvrat1629 wants to merge 2 commits intoapache:masterfrom
Suvrat1629:pipeline-warn

Conversation

@Suvrat1629
Copy link
Contributor

Please add a meaningful description for your change here


This change ensures that running a Pipeline without specifying configuration options is either prevented with an error or flagged with a prominent warning.

Closes #18699

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.

@github-actions github-actions bot added the java label Mar 8, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Mar 8, 2025

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

@Suvrat1629
Copy link
Contributor Author

assign set of reviewers

@github-actions
Copy link
Contributor

github-actions bot commented Mar 8, 2025

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

R: @kennknowles for label java.

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).

@Suvrat1629
Copy link
Contributor Author

Suvrat1629 commented Mar 12, 2025

@kennknowles Gentle ping! Could you please take a look and provide comments to improve this pr.
Thank you.

@github-actions
Copy link
Contributor

Reminder, please take a look at this pr: @kennknowles

@github-actions
Copy link
Contributor

Assigning new set of reviewers because Pr has gone too long without review. If you would like to opt out of this review, comment assign to next reviewer:

R: @robertwb for label java.

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)

@github-actions
Copy link
Contributor

github-actions bot commented Apr 4, 2025

Reminder, please take a look at this pr: @robertwb

@github-actions
Copy link
Contributor

github-actions bot commented Apr 8, 2025

Assigning new set of reviewers because Pr has gone too long without review. If you would like to opt out of this review, comment assign to next reviewer:

R: @kennknowles for label java.

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)

@github-actions
Copy link
Contributor

Reminder, please take a look at this pr: @kennknowles

@github-actions
Copy link
Contributor

Assigning new set of reviewers because Pr has gone too long without review. If you would like to opt out of this review, comment assign to next reviewer:

R: @robertwb for label java.

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)

public static Pipeline create() {
Pipeline pipeline = new Pipeline(PipelineOptionsFactory.create());
PipelineOptions options = PipelineOptionsFactory.create();
if (options.getRunner() == null) {
Copy link
Member

Choose a reason for hiding this comment

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

We don't want this. The runner is intentionally not something the pipeline should know about while it is being created.

Copy link
Member

Choose a reason for hiding this comment

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

(we actually did a lot of work to remove the runner a while back :-)

@github-actions
Copy link
Contributor

Reminder, please take a look at this pr: @robertwb

@github-actions
Copy link
Contributor

github-actions bot commented May 2, 2025

Assigning new set of reviewers because Pr has gone too long without review. If you would like to opt out of this review, comment assign to next reviewer:

R: @kennknowles for label java.

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)

@github-actions
Copy link
Contributor

Reminder, please take a look at this pr: @kennknowles

@kennknowles
Copy link
Member

waiting on author

@claudevdm
Copy link
Collaborator

Hi @Suvrat1629 is this still in progress?

@derrickaw
Copy link
Collaborator

waiting on author

@Suvrat1629 Suvrat1629 closed this Aug 24, 2025
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.

It should be an error to run a Pipeline without ever specifying options

4 participants