Enable h4d-vm test to run on Spot VMs#5022
Enable h4d-vm test to run on Spot VMs#5022simrankaurb merged 1 commit intoGoogleCloudPlatform:developfrom
Conversation
Summary of ChangesHello @simrankaurb, 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 integrates Google Cloud Spot Virtual Machines into the h4d daily test suite. By configuring the test environment to provision Spot VMs and dynamically select zones, it aims to reduce testing costs and enhance flexibility without impacting the test execution logic. Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. 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 enables the h4d tests to run on Spot VMs. The changes involve updating the Cloud Build configuration to dynamically find an available zone and modify the test blueprint to use the 'SPOT' provisioning model. The corresponding test definition is also updated to remove hardcoded zones and add flags for Spot VM usage.
My review focuses on the maintainability and correctness of these changes. While the overall approach is sound, I've identified a significant maintainability issue in the sed command used to patch the blueprint in h4d-vm.yaml. The command is brittle due to hardcoded values and incorrect indentation, which could lead to silent failures or invalid configurations in the future. My feedback includes a specific suggestion to make this script more robust.
d8f03c5 to
7cdd04e
Compare
7cdd04e to
d85d867
Compare
a848af9
into
GoogleCloudPlatform:develop
This pull request enables usage of spot VMs to run tests on h4d machines
The changes involve two files:
tools/cloud-build/daily-tests/builds/h4d-vm.yaml: This file is updated to include a "SPOT" provisioning model.tools/cloud-build/daily-tests/tests/h4d-vm.yml: This file is modified to add instance labels for enabling and identifying Spot VM usage.Submission Checklist
NOTE: Community submissions can take up to 2 weeks to be reviewed.
Please take the following actions before submitting this pull request.