Skip to content

Fix test scheduling constraints#5383

Merged
saara-tyagi27 merged 2 commits into
GoogleCloudPlatform:developfrom
saara-tyagi27:update-scheduling-constraint
Apr 1, 2026
Merged

Fix test scheduling constraints#5383
saara-tyagi27 merged 2 commits into
GoogleCloudPlatform:developfrom
saara-tyagi27:update-scheduling-constraint

Conversation

@saara-tyagi27

Copy link
Copy Markdown
Contributor

Summary

Removes the temporal constraint set (("ml-a4-highgpu-slurm", "gke-a4"), 2*60) from list_tests.py. The test ml-a4-highgpu-slurm was listed in the constraints but was missing a corresponding build file in the builds/ directory, which caused the scheduling script to crash with a KeyError during the Terraform plan.

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, 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 resolves a scheduling issue by removing an unnecessary temporal constraint. The constraint involved a test that lacked a corresponding build file, leading to a crash during the Terraform plan execution. Removing this constraint prevents the scheduling script from crashing.

Highlights

  • Constraint Removal: Removed the temporal constraint between 'ml-a4-highgpu-slurm' and 'gke-a4' tests.
  • Fixes Scheduling Crash: Addresses a KeyError that occurred during Terraform plan due to a missing build file for 'ml-a4-highgpu-slurm'.
Using Gemini Code Assist

The 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 /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

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 .gemini/ folder in the base of the repository. Detailed instructions can be found here.

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.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request correctly fixes a crash in the test scheduling script by removing a temporal constraint that referenced missing test build files. My review includes one suggestion to improve maintainability by adding a comment to explain the removal, in line with the project's documentation standards.

I am having trouble creating individual review comments. Click here to see my feedback.

tools/cloud-build/provision/list_tests.py (55-58)

medium

To improve maintainability and provide context for future developers, it's better to leave a comment explaining why this constraint was removed, rather than just deleting it. This helps anyone looking at the code to understand the history without needing to check the git blame. This aligns with the style guide's emphasis on documentation and explaining the 'why'.

    # Constraint for ("ml-a4-highgpu-slurm", "gke-a4") removed due to missing build files.
References
  1. The repository style guide (line 34) states that in-code comments should explain the 'why' behind the code. Instead of silently removing this configuration, adding a comment explains the reason for the removal, which improves code maintainability. (link)

@saara-tyagi27 saara-tyagi27 marked this pull request as ready for review March 23, 2026 12:26
@saara-tyagi27 saara-tyagi27 requested review from a team and samskillman as code owners March 23, 2026 12:26
@saara-tyagi27 saara-tyagi27 added the release-chore To not include into release notes label Mar 23, 2026
Comment thread tools/cloud-build/provision/list_tests.py

@shubpal07 shubpal07 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but we may need to make the check_resource_constraints function more defensive to future regressions.

@saara-tyagi27 saara-tyagi27 merged commit 9dabd02 into GoogleCloudPlatform:develop Apr 1, 2026
19 of 81 checks passed
simrankaurb pushed a commit to simrankaurb/cluster-toolkit that referenced this pull request Apr 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-chore To not include into release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants