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

Add PIPELINE_OPTIONS_FILE environment variable to allow PIPELINE_OPTIONS to be read from a file #27841

Merged
merged 1 commit into from
Aug 8, 2023

Conversation

byronellis
Copy link
Contributor

Add an option to the FnApi harness PIPELINE_OPTIONS_FILE that overrides the old PIPELINE_OPTIONS environment variable with the contents of a file. This allows us to circumvent kernel limits on the combined size of environment variables and commandl ine arguments.

Addresses #27839

Please add a meaningful description for your change here


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.

…es the old PIPELINE_OPTIONS environment variable with the contents of a file. This allows us to circumvent kernel limits on the combined size of environment variables and commandline arguments.
PipelineOptionsTranslation.fromJson(environmentVarGetter.apply(PIPELINE_OPTIONS));

String pipelineOptionsJson = environmentVarGetter.apply(PIPELINE_OPTIONS);
// Try looking for a file first. If that exists it should override PIPELINE_OPTIONS to avoid
Copy link
Contributor

Choose a reason for hiding this comment

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

Technically we're not looking for the file first, so I say the comment needs adjusting. Otherwise LGTM.

@lostluck
Copy link
Contributor

lostluck commented Aug 4, 2023

I'm of the opinion that most of the failures are unrelated.

@github-actions
Copy link
Contributor

github-actions bot commented Aug 4, 2023

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

@Abacn
Copy link
Contributor

Abacn commented Aug 4, 2023

Run Java PreCommit

@Abacn
Copy link
Contributor

Abacn commented Aug 4, 2023

GitHub Action failures are due to #27854 , not related

@lostluck
Copy link
Contributor

lostluck commented Aug 4, 2023

Run Java PreCommit

1 similar comment
@lostluck
Copy link
Contributor

lostluck commented Aug 7, 2023

Run Java PreCommit

@lostluck
Copy link
Contributor

lostluck commented Aug 7, 2023

Run Dataflow ValidatesRunner

@lostluck
Copy link
Contributor

lostluck commented Aug 7, 2023

Run PortableJar_Flink PostCommit

@lostluck
Copy link
Contributor

lostluck commented Aug 7, 2023

Run Java Dataflow V2 ValidatesRunner

@lostluck lostluck merged commit 29ea352 into apache:master Aug 8, 2023
System.out.format("Problem loading pipeline options from file: %s%n", e.getMessage());
}

System.out.format("Pipeline options %s%n", pipelineOptionsJson);
Copy link
Contributor

Choose a reason for hiding this comment

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

Intentionally not using logger?

Copy link
Contributor

Choose a reason for hiding this comment

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

Nevermind, I see it just continued the trend from before.

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.

4 participants