Skip reservation name check validator#5248
Skip reservation name check validator#5248saara-tyagi27 wants to merge 3 commits intoGoogleCloudPlatform:developfrom
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 handling of reservation validations within the system. It introduces a mechanism to bypass certain reservation checks for variables identified as "future" reservations, providing more flexibility for dynamically created or future-dated reservations. Additionally, it updates a specific cloud build test to explicitly skip a reservation existence validator, aligning the test environment with scenarios where reservations might be created dynamically. 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
The pull request introduces a change to skip reservation name validation for variables containing "future" in pkg/validators/validators.go. Additionally, it modifies a Cloud Build daily test script to dynamically skip the test_reservation_exists validator for the hpc-slurm-static blueprint. The feedback suggests improving the robustness and maintainability of the YAML modification within the test script by using dedicated tools or separate files for complex logic, aligning with repository rules for readability and maintainability.
|
/gcbrun |
Summary
Reservation name check validation logic is not supported for dynamically created and future reservations.
Logic has been added to skip them for the respective cases.
Key Changes:
examples/hpc-slurm-static.yamlduring integration test.Submission Checklist
NOTE: Community submissions can take up to 2 weeks to be reviewed.
Please take the following actions before submitting this pull request.