Skip to content

Also use config pattern for yaml providers.#27884

Merged
robertwb merged 3 commits intoapache:masterfrom
robertwb:yaml-config
Aug 10, 2023
Merged

Also use config pattern for yaml providers.#27884
robertwb merged 3 commits intoapache:masterfrom
robertwb:yaml-config

Conversation

@robertwb
Copy link
Copy Markdown
Contributor

@robertwb robertwb commented Aug 7, 2023


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.

@robertwb
Copy link
Copy Markdown
Contributor Author

robertwb commented Aug 7, 2023

R: @damccorm

@github-actions github-actions bot added the python label Aug 7, 2023
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Aug 7, 2023

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

@codecov
Copy link
Copy Markdown

codecov bot commented Aug 7, 2023

Codecov Report

Merging #27884 (051872e) into master (d227b81) will decrease coverage by 0.27%.
Report is 60 commits behind head on master.
The diff coverage is 72.50%.

@@            Coverage Diff             @@
##           master   #27884      +/-   ##
==========================================
- Coverage   70.86%   70.59%   -0.27%     
==========================================
  Files         861      857       -4     
  Lines      105010   103951    -1059     
==========================================
- Hits        74413    73382    -1031     
+ Misses      29038    29010      -28     
  Partials     1559     1559              
Flag Coverage Δ
python 79.55% <72.50%> (-0.28%) ⬇️

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

Files Changed Coverage Δ
sdks/python/apache_beam/yaml/yaml_provider.py 69.96% <72.50%> (+1.88%) ⬆️

... and 25 files with indirect coverage changes

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

'appendix'
]
}))
lambda: subprocess_server.JavaJarServer.path_to_maven_jar(**config))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should we have some validation here or elsewhere to make sure that we're passing in a valid value (one of

'artifact_id',
'group_id',
'version',
'repository',
'classifier',
'appendix'

)? I'm a little worried that the error we return here if passing in a bad config would be hard for users to understand

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good point. Fixed it up so the errors will be earlier and cleaner.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice, thanks

There is a bit of redundancy here, but I think the tradeoff is worth it.
Copy link
Copy Markdown
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

@robertwb robertwb merged commit 47e8de3 into apache:master Aug 10, 2023
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.

2 participants