Add Time to live labels in A* slurm Integration tests#5283
Conversation
Summary of ChangesHello @saara-tyagi27, 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 enhances the daily test infrastructure by implementing automatic Time-To-Live (TTL) labeling for resources provisioned during A* Slurm integration tests. By programmatically adding a TTL label set for 4 hours into the test blueprints, the change ensures that temporary test environments are marked for eventual cleanup, thereby improving resource hygiene and reducing potential cloud costs associated with forgotten or lingering test instances. 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 a time-to-live label to various SLURM integration tests, which is a good practice for ensuring cleanup of test resources. While the intent is good, the implementation introduces significant code duplication across five separate Cloud Build YAML files. This repeated logic could be centralized into a shared script for better maintainability. Additionally, the sed command used to inject the label is brittle and could cause build failures if the target blueprint files are modified in the future. My review includes suggestions to address these points.
ded4987
into
GoogleCloudPlatform:develop
Summary
Add Time-to-live label which is current_time+4 hrs in A* Slurm integration tests.
Submission Checklist
NOTE: Community submissions can take up to 2 weeks to be reviewed.
Please take the following actions before submitting this pull request.