-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add auto yaml to java generation #2984
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
Merged
chamikaramj
merged 26 commits into
GoogleCloudPlatform:main
from
derrickaw:addAutoYamlToJavaGeneration
Dec 4, 2025
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
b339532
initial generate code
derrickaw 1fccd9b
update yaml to jive with java template file
derrickaw 3b64df9
add java template file
derrickaw 3549765
update generate file
derrickaw 996004d
add new workflow for yaml blueprint to java template
derrickaw 457ba94
add the resulting changes to the KafkaToBigQueryYaml.java file that w…
derrickaw 0d50633
with mvn spotless
derrickaw f660460
remove mvn spotless
derrickaw 148006f
update template
derrickaw 83437e8
update a different template :)
derrickaw 455936e
add distribution for jdk
derrickaw 893cea5
spotless apply on yaml template
derrickaw 7797e73
make spotless run only on yaml module
derrickaw b477955
add -B
derrickaw fdc8a8e
add more comments
derrickaw 2ef9170
remove redundant workflow step since changed script to handle both di…
derrickaw 4d772af
remove workflow for now - will revisit on next iteration
derrickaw e741603
add note abote spotless
derrickaw b007e38
add generic readme on how to add new templates
derrickaw ded6680
update readme per comments
derrickaw 437942b
update generate script per comments
derrickaw 5f5e779
update to handle any test.py files
derrickaw 7721fd0
move files to test location
derrickaw 10988af
__init__.py to allow import for test file
derrickaw 01fe746
forgot input yaml file for unit test
derrickaw 906e80e
update readme based on updated path
derrickaw File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| # Creating a YAML Template | ||
|
|
||
| This document outlines the steps required to create a new YAML template for Dataflow. | ||
| More detailed instructions on how to run the template can be found in the associated README files for each template. | ||
|
|
||
| ## Steps | ||
|
|
||
| 1. **Contribution Instructions:** Read the code contributions located [here](https://github.com/GoogleCloudPlatform/DataflowTemplates/blob/main/contributor-docs/code-contributions.md). | ||
|
|
||
| 1. **Add YAML Blueprint:** Create the YAML blueprint file that defines the template's structure and parameters. | ||
| Place this file in [here](https://github.com/GoogleCloudPlatform/DataflowTemplates/yaml/src/main/yaml). | ||
|
|
||
| 1. **Generate YAML Template (Optional):** If desired, create the YAML template using the generation script. | ||
|
|
||
| ```shell | ||
| python yaml/src/main/python/generate_yaml_java_templates.py yaml/src/main/yaml | ||
| ``` | ||
|
|
||
| 1. **Create Integration Test:** Develop an integration test to validate the functionality of the new template. | ||
| Place this file in [here](https://github.com/GoogleCloudPlatform/DataflowTemplates/yaml/src/test/java). | ||
| Additional instructions can be located [here](https://github.com/GoogleCloudPlatform/DataflowTemplates/blob/main/contributor-docs/add-integration-or-load-test.md). | ||
|
|
||
| 1. **Generate Documentation:** Run the documentation generation script to create the official documentation for the template. You can find instructions on how to do this in the [contributor documentation](https://github.com/GoogleCloudPlatform/DataflowTemplates/blob/main/contributor-docs/code-contributions.md#generated-documentation). | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.