Update slurm_cluster_name regex#5261
Update slurm_cluster_name regex#5261saara-tyagi27 merged 1 commit 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 addresses an inconsistency and a bug in the validation logic for the 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
|
There was a problem hiding this comment.
Code Review
This pull request effectively addresses inconsistencies in the slurm_cluster_name validation across Terraform modules and the Go backend. The changes correctly update the regular expression to allow for a maximum of 20 characters (starting with a lowercase letter, followed by lowercase letters, numbers, or hyphens) and ensure that all associated error messages and documentation reflect these new requirements. The updates to the Go test file config_test.go are comprehensive and accurately validate the new regex and length constraints. Overall, these changes improve the correctness and maintainability of the codebase by standardizing the slurm_cluster_name validation logic.
community/modules/scheduler/schedmd-slurm-gcp-v6-controller/modules/slurm_files/variables.tf
Show resolved
Hide resolved
community/modules/scheduler/schedmd-slurm-gcp-v6-controller/variables.tf
Show resolved
Hide resolved
bd7d176
into
GoogleCloudPlatform:develop
Summary
Update slurm_cluster_name regex to match in upfront and TF Validations and address a bug in TF validations as it took 21 instead of 20 chars max.
Submission Checklist
NOTE: Community submissions can take up to 2 weeks to be reviewed.
Please take the following actions before submitting this pull request.