Remove Ubuntu 20.04 runner pools#38335
Conversation
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 streamlines the GitHub Actions self-hosted runner infrastructure by deprecating older Ubuntu 20.04 based runner pools and upgrading the primary runner configurations to utilize Ubuntu 24.04. This change ensures the use of a more current and supported operating system for CI/CD workflows, improving maintainability and security. Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. 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. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request updates the self-hosted runner environment to Ubuntu 24.04 by renaming the main runner, updating default images, and adjusting labels. Feedback highlights that the new main runner configuration is missing critical capacity settings like max_replicas and disk_size_gb that were present in the removed blocks. Additionally, it is recommended to use specific image tags instead of :latest for deterministic deployments and to fix minor spacing inconsistencies in the label lists for better readability.
| } | ||
| additional_runner_pools = [{ |
There was a problem hiding this comment.
The max_replicas and disk_size_gb settings from the removed main-runner-2404 block (previously at lines 110 and 112) appear to be missing from this updated main_runner configuration. Since the default values in variables.tf are 1 and 100 respectively, omitting these will significantly reduce the capacity of the main runner pool and may cause disk space issues for jobs. These should be explicitly set to maintain the intended configuration for the Ubuntu 24.04 runners.
max_replicas = "240"
disk_size_gb = 200
enable_selector = true
enable_taint = true
| runner_image = "us-central1-docker.pkg.dev/apache-beam-testing/beam-github-actions/beam-arc-runner:d7cd81a1649bc665581951d2330c4b8acd19ed72" | ||
| name = "main-runner-2404" | ||
| machine_type = "e2-standard-16" | ||
| runner_image = "us-central1-docker.pkg.dev/apache-beam-testing/beam-github-actions/beam-arc-runner:latest" |
There was a problem hiding this comment.
Using the :latest tag for the runner_image is discouraged in infrastructure-as-code as it makes deployments non-deterministic and difficult to roll back. It is recommended to use a specific version tag or a container image digest, especially since the previous configuration used a specific hash and the default in variables.tf also uses a versioned tag.
| runner_image = optional(string, "summerwind/actions-runner:v2.304.0-ubuntu-20.04-30355f7") | ||
| labels = optional(list(string), ["self-hosted", "ubuntu-20.04","main"]) | ||
| runner_image = optional(string, "summerwind/actions-runner:v2.334.0-ubuntu-24.04-012f1a5") | ||
| labels = optional(list(string), ["self-hosted", "ubuntu-24.04","main"]) |
| runner_image = optional(string, "summerwind/actions-runner:v2.304.0-ubuntu-20.04-30355f7") | ||
| labels = optional(list(string), ["self-hosted", "ubuntu-20.04","changeme"]) | ||
| runner_image = optional(string, "summerwind/actions-runner:v2.334.0-ubuntu-24.04-012f1a5") | ||
| labels = optional(list(string), ["self-hosted", "ubuntu-24.04","changeme"]) |
|
R: @aIbrahiim |
|
Stopping reviewer notifications for this pull request: review requested by someone other than the bot, ceding control. If you'd like to restart, comment |
|
I think we need to confirm the new main_runner keeps the same capacity values from the 24.04 pool (max_replicas = "240" and disk_size_gb = 200 |
|
According to the terraform script it does: |
Please add a meaningful description for your change here
TESTED=
terraform plan -var-file=environments/beam.envThank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:
addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, commentfixes #<ISSUE NUMBER>instead.CHANGES.mdwith noteworthy changes.See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)
See CI.md for more information about GitHub Actions CI or the workflows README to see a list of phrases to trigger workflows.