Add e2e test for ingestion pipeline#1891
Conversation
Summary of ChangesHello @vish-cs, 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 crucial end-to-end test for the ingestion pipeline, ensuring the seamless flow and correct processing of data from import automation through to its final storage and verification in Spanner. It establishes a robust testing framework by adding a new Cloud Build configuration for staging, a Python utility for workflow management, and the necessary Spanner schema definitions. Highlights
Changelog
Activity
Using Gemini Code AssistThe 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
Customization To customize 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 Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. 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. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request adds an end-to-end test for the ingestion pipeline, which is a valuable addition for ensuring reliability. The changes include a new staging Cloud Build configuration, a Spanner schema for testing, the test script itself, and a utility for interacting with Cloud Workflows. My review identified critical issues in the cloudbuild.yaml and cloudbuild_staging.yaml files where the dir attribute for build steps is either missing or commented out. These issues will likely cause the builds to fail because they won't be able to locate necessary source files. I have also provided a minor suggestion to improve the test script's adherence to Python best practices.
9d9c320 to
dead2b1
Compare
This PR adds a new E2E test which runs the import workflow (batch job) + ingestion workflow (dataflow) and verifies data in spanner. This is used to promote the pipeline from staging to prod as part of cloud build.