Skip to content

create yaml blueprint matching workflow - #4424

Merged
derrickaw merged 5 commits into
mainfrom
20261012_setupAlertWorkflow
Oct 18, 2026
Merged

derrickaw merged 5 commits into
mainfrom
20261012_setupAlertWorkflow

Conversation

@derrickaw

@derrickaw derrickaw commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Problem: Currently no mechanism for detecting irregularities within and amongst dataflow yaml blueprints.
Plan: Create a yaml blueprint parameter matching workflow to find discrepancies in blueprint parameters used and the official beam documentation within and amongst the dataflow yaml blueprints.

@codecov

codecov Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 37.99%. Comparing base (67178b8) to head (671f5e9).

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #4424      +/-   ##
============================================
+ Coverage     34.31%   37.99%   +3.68%     
+ Complexity      528      517      -11     
============================================
  Files           216      195      -21     
  Lines         13354    11879    -1475     
  Branches       1344     1212     -132     
============================================
- Hits           4583     4514      -69     
+ Misses         8398     6994    -1404     
+ Partials        373      371       -2     
Components Coverage Δ
spanner-templates ∅ <ø> (∅)
spanner-import-export ∅ <ø> (∅)
spanner-live-forward-migration ∅ <ø> (∅)
spanner-live-reverse-replication ∅ <ø> (∅)
spanner-bulk-migration ∅ <ø> (∅)
gcs-spanner-dv ∅ <ø> (∅)
see 21 files with indirect coverage changes
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
@derrickaw derrickaw added the addition New feature or request label Oct 14, 2026
@derrickaw
derrickaw force-pushed the 20261012_setupAlertWorkflow branch from 9756c78 to bb30821 Compare October 14, 2026 14:51
@derrickaw

Copy link
Copy Markdown
Contributor Author

/gemini review

@gemini-code-assist gemini-code-assist Bot left a comment

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.

Code Review

This pull request introduces a new Python script, check_yaml_config_params.py, along with corresponding unit tests, to compare YAML blueprint transform config parameters against the Beam YAML documentation. Feedback on the changes points out potential runtime exceptions (such as AttributeError) and logic bugs in extract_blueprint_transforms when parsing malformed or non-dictionary YAML structures, and suggests adding defensive type-checking.

@derrickaw

Copy link
Copy Markdown
Contributor Author

Initial issue and report - #4425

@derrickaw
derrickaw marked this pull request as ready for review October 14, 2026 19:00
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces a new validation workflow for Dataflow YAML blueprints. By scraping the official Apache Beam YAML documentation, the tool automatically identifies configuration mismatches, such as invalid parameters or missing required fields, ensuring that blueprints remain consistent with the latest Beam specifications. This change improves the reliability of dataflow deployments by catching potential configuration errors early in the development cycle.

Highlights

  • New YAML Blueprint Validation Tool: Introduced a Python utility to compare Dataflow YAML blueprint configurations against official Apache Beam documentation to detect parameter discrepancies.
  • Automated Reporting: Added functionality to generate Markdown-formatted reports summarizing invalid, missing, or undocumented configuration parameters.
  • Test Coverage: Implemented a comprehensive test suite to verify the parsing of Beam documentation and the validation logic for blueprint configurations.
Ignored Files
  • Ignored by pattern: .github/workflows/** (1)
    • .github/workflows/yaml-config-params-report.yml
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize the Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counterproductive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution. ↩

@gemini-code-assist gemini-code-assist Bot left a comment

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.

Code Review

This pull request introduces a Python script and associated unit tests to compare YAML blueprint transform config parameters against Beam YAML documentation. The review feedback identifies several robustness issues in the parsing and rendering logic, such as potential crashes from invalid Jinja or YAML syntax, non-dictionary return values, and type mismatches during set operations and sorting. Addressing these issues with try-except blocks and explicit string conversions will make the script much more resilient.

@chamikaramj chamikaramj left a comment

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.

Thanks. LGTM.

@chamikaramj chamikaramj left a comment

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.

Thanks!

@derrickaw
derrickaw merged commit c5c0b8b into main Oct 18, 2026
25 checks passed
@derrickaw
derrickaw deleted the 20261012_setupAlertWorkflow branch October 18, 2026 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

addition New feature or request size/XL

2 participants