multi-tier provisioning strategy#5226
multi-tier provisioning strategy#5226kvenkatachala333 merged 8 commits intoGoogleCloudPlatform:developfrom
Conversation
Summary of ChangesHello @kvenkatachala333, 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 robust multi-tier provisioning strategy for integration tests, significantly improving their resilience and cost-efficiency. By first attempting to provision resources using Spot VMs and gracefully falling back to On-Demand VMs when necessary, the system ensures that tests can reliably acquire the required infrastructure while minimizing operational costs. This change centralizes the provisioning logic, making it more adaptable to varying cloud resource availability. Highlights
Changelog
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
|
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request introduces a multi-tier provisioning strategy, falling back from Spot to Standard VMs for the h4d-vm integration test. The changes look good and correctly implement the fallback logic in both the zone-finding script and the Cloud Build configuration. I have a small suggestion to improve clarity in the shell script. Overall, a solid implementation of the new strategy.
tools/cloud-build/daily-tests/ansible_playbooks/tasks/add-instance-labels.yml
Outdated
Show resolved
Hide resolved
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request introduces a fallback strategy from Spot to Standard VMs for the h4d-vm integration test, which is a valuable improvement for test reliability. The changes in find_available_zone.sh correctly implement the core fallback logic. However, I have some suggestions to improve maintainability and robustness. In add-instance-labels.yml, several redundant conditional checks have been added. Finally, the find_available_zone.sh script has become quite complex and would benefit from refactoring to improve readability.
tools/cloud-build/daily-tests/ansible_playbooks/tasks/add-instance-labels.yml
Outdated
Show resolved
Hide resolved
f7b69e3
into
GoogleCloudPlatform:develop
I have implemented the Spot to On-Demand waterfall strategy for the h4d-vm integration test.
Note: Ensure $$PROVISIONING_MODEL and $$SPOT_VAR are used in h4d-vm.yaml to prevent Cloud Build from attempting to substitute them as build variables.