-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Conversation
Signed-off-by: Jeffrey Kinard <[email protected]>
R: @robertwb |
Stopping reviewer notifications for this pull request: review requested by someone other than the bot, ceding control |
Codecov Report
@@ 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
Flags with carried forward coverage won't be shown. Click here to find out more.
... 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: |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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]>
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:
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, commentfixes #<ISSUE NUMBER>
instead.CHANGES.md
with noteworthy changes.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)
See CI.md for more information about GitHub Actions CI or the workflows README to see a list of phrases to trigger workflows.