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

[yaml] support gcs location for main.py yaml input file #29014

Merged
merged 2 commits into from
Oct 20, 2023

Conversation

Polber
Copy link
Contributor

@Polber Polber commented Oct 16, 2023

This PR adds support for specifying a GCS YAML file when running main.py

i.e. python -m apache_beam.yaml.main --pipeline_spec_file="gs://path/to/yaml/file"


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.

@Polber
Copy link
Contributor Author

Polber commented Oct 16, 2023

R: @robertwb

@github-actions
Copy link
Contributor

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

@codecov
Copy link

codecov bot commented Oct 16, 2023

Codecov Report

Merging #29014 (b69b834) into master (6b32a3f) will decrease coverage by 0.02%.
Report is 75 commits behind head on master.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master   #29014      +/-   ##
==========================================
- Coverage   38.39%   38.38%   -0.02%     
==========================================
  Files         686      686              
  Lines      101624   101654      +30     
==========================================
- Hits        39018    39017       -1     
- Misses      61026    61057      +31     
  Partials     1580     1580              
Flag Coverage Δ
python 30.00% <0.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
sdks/python/apache_beam/yaml/main.py 0.00% <0.00%> (ø)

... and 6 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@@ -43,8 +44,8 @@ def _pipeline_spec_from_args(known_args):
raise ValueError(
"Exactly one of pipeline_spec or pipeline_spec_file must be set.")
elif known_args.pipeline_spec_file:
with open(known_args.pipeline_spec_file) as fin:
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we still want to use the with syntax to make sure it gets closed properly.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

Signed-off-by: Jeffrey Kinard <[email protected]>
@robertwb robertwb merged commit 97a52af into apache:master Oct 20, 2023
72 of 73 checks passed
kkdoon pushed a commit to twitter-forks/beam that referenced this pull request Oct 21, 2023
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.

2 participants