fix: use **/* glob pattern for agentic_rag and adk_live E2E triggers#798
fix: use **/* glob pattern for agentic_rag and adk_live E2E triggers#798eliasecchig merged 1 commit intomainfrom
Conversation
The ** glob may not match files in Cloud Build included_files. Switch to **/* to ensure file changes within these directories actually trigger the E2E builds.
Summary of ChangesHello @eliasecchig, 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 addresses a critical issue where End-to-End (E2E) builds for the 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 correctly fixes the glob patterns for E2E build triggers by changing ** to **/*, ensuring that file changes within the agentic_rag and adk_live directories trigger the builds as intended. I've added one suggestion to remove a redundant glob pattern to improve the configuration's clarity. Overall, the change is a good fix.
| "agent_starter_pack/agents/agentic_rag/**", | ||
| "agent_starter_pack/agents/agentic_rag/data_ingestion/**", | ||
| "agent_starter_pack/agents/agentic_rag/**/*", | ||
| "agent_starter_pack/agents/agentic_rag/data_ingestion/**/*", |
There was a problem hiding this comment.
This glob pattern is redundant because the pattern agent_starter_pack/agents/agentic_rag/**/* on the preceding line already includes all files and subdirectories under agent_starter_pack/agents/agentic_rag/, which covers the data_ingestion path. This line can be safely removed to simplify the configuration.
Summary
included_filesglob patterns for agentic_rag and adk_live E2E build triggers**to**/*so file changes within these directories actually trigger buildsProblem
E2E builds for agentic_rag and adk_live were not being triggered when files in their agent directories changed. The
**glob pattern may not match files in Cloud Buildincluded_files.Changes
.cloudbuild/terraform/build_triggers.tf: Update glob patterns from**to**/*for agentic_rag and adk_live entries ine2e_agent_deployment_included_files