Update the default HTCondor and packer versions#5921
Conversation
Update packer version to 1.15.4
update packer version
Summary of ChangesHello, 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 performs routine dependency maintenance by upgrading the default HTCondor version to the 25.0 release series and updating the Packer version to 1.15.4. These changes ensure that the infrastructure components remain current with the latest stable releases. Highlights
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 the 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 counterproductive. 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
|
There was a problem hiding this comment.
Code Review
This pull request updates the HTCondor installation scripts and variables to target version 25.0 (up from 23.0) and bumps the Packer version to 1.15.4 in the Dockerfile and update script. Feedback highlights that pkg/dependencies/checksums_generated.go must be regenerated to reflect the new Packer version, and points out a minor typo with an extra closing parenthesis in the condor_version variable description.
Update HTCondor autoscaler script to be compatible with HTCondor v25 classes
|
Hi @toscar82 The pre-commit checks are failing in this PR. Could you please resolve the pre-commit issues. Thanks! |
Neelabh94
left a comment
There was a problem hiding this comment.
Please fix the pre-commit failure as well.
|
/gcbrun |
|
Triggered the relevant tests, will review once they finish successfully |
|
@Neelabh94 could you help me with fixing the pre-commit failures? I have no idea what that problem is, nor how to fix it. |
|
@toscar82 the issue is a go formatting issue. Running go fmt locally and staging the changes will help you resolve it. Also, you can follow the guide here: https://github.com/GoogleCloudPlatform/cluster-toolkit#development to install all pre-commit hooks locally. This will help you catch such failures early locally. |
|
pre-commit hook has been set. the unit test fails: |
|
@Neelabh94 found the problem with my pre-commit tests. It was caused by a non-hashicorp packer package on my system. |
|
/gcbrun |
| idle_job_query = classad.ExprTree(f"JobStatus == 1 && QDate < {last_negotiation_cycle_time}") | ||
| idle_job_ads = schedd.query(constraint=idle_job_query.and_(spot_query), | ||
| projection=job_attributes) | ||
| combined_query_str = combined_query_str = f'JobStatus == 1 && QDate < {last_negotiation_cycle_time} && RequireId == "{self.instance_group_manager}"' |
There was a problem hiding this comment.
nit: seems like a typo where we are repeating combined_query_str twice
Updating the default HTCondor version from the ancient 23. to 25.
Updating packer version