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 jinja preprocessing to YamlTemplate #1500
Add jinja preprocessing to YamlTemplate #1500
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1500 +/- ##
============================================
+ Coverage 39.88% 40.18% +0.29%
- Complexity 2782 2792 +10
============================================
Files 750 737 -13
Lines 42568 42768 +200
Branches 4555 4578 +23
============================================
+ Hits 16980 17186 +206
+ Misses 24121 24101 -20
- Partials 1467 1481 +14
|
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.
Comments are minor, overall looks good to me.
cc/ @robertwb
pipeline_yaml = os.linesep.join( | ||
[s for s in pipeline_yaml.splitlines() if s.strip()]) |
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.
One downside here is that we lose the original parameters in our pipeline options/display data. I think this is fine, probably a no-op for this PR, but left a comment in https://github.com/apache/beam/pull/30976/files#r1588005108
f715a98
to
f6e9709
Compare
@damccorm @robertwb After reconsidering, I decided just to copy over the main from apache/beam#30976 for the time being. There were too many issues involving overridden pipeline args, and it makes more sense to me to just copy over the same logic that will be in Beam 2.57.0 instead of trying to stitch pieces together. Once 2.57.0 is release, assuming the jinja PR is merged, I will revert the template back to how it was before. |
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.
Could we add a GitHub issue to track the work to remove these pieces before proceeding? Otherwise LGTM
|
Signed-off-by: Jeffrey Kinard <jeff@thekinards.com>
5597215
into
GoogleCloudPlatform:main
Adds ability to perform jinja preprocessing to Beam YAML jobs run on YamlTemplate until the functionaiity is added to vanilla Beam YAML in Beam 2.47.0
Adds template parameter
--jinja_variables