Skip to content

Remove Ubuntu 20.04 runner pools#38335

Merged
Abacn merged 1 commit into
apache:masterfrom
Abacn:clean-up-arc-tf
Apr 30, 2026
Merged

Remove Ubuntu 20.04 runner pools#38335
Abacn merged 1 commit into
apache:masterfrom
Abacn:clean-up-arc-tf

Conversation

@Abacn
Copy link
Copy Markdown
Contributor

@Abacn Abacn commented Apr 29, 2026

Please add a meaningful description for your change here

TESTED=terraform plan -var-file=environments/beam.env


Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

  • Mention the appropriate issue in your description (for example: 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, comment fixes #<ISSUE NUMBER> instead.
  • Update CHANGES.md with noteworthy changes.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

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)

Build python source distribution and wheels
Python tests
Java tests
Go tests

See CI.md for more information about GitHub Actions CI or the workflows README to see a list of phrases to trigger workflows.

@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 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

  • Runner Pool Deprecation: Removed specific GitHub Actions self-hosted runner pools that were configured for Ubuntu 20.04, including 'small-runner' and 'highmem-runner'.
  • Ubuntu Version Upgrade: Updated the main runner configuration and default variable definitions to use Ubuntu 24.04, reflecting a migration from the older 20.04 version.
  • Configuration Refinement: Adjusted the structure of runner pool definitions within beam.env by renaming the main runner and consolidating its configuration.

🧠 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 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.

@Abacn Abacn force-pushed the clean-up-arc-tf branch from 105e1fc to 8806129 Compare April 29, 2026 21:20
Copy link
Copy Markdown
Contributor

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

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 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.

Comment on lines 51 to 52
}
additional_runner_pools = [{
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.

high

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"
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.

medium

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"])
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.

medium

For better readability and consistency with the rest of the file, consider adding a space after the comma in the labels list.

      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"])
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.

medium

For better readability and consistency with the rest of the file, consider adding a space after the comma in the labels list.

      labels = optional(list(string), ["self-hosted", "ubuntu-24.04", "changeme"])

@Abacn
Copy link
Copy Markdown
Contributor Author

Abacn commented Apr 29, 2026

R: @aIbrahiim

@github-actions
Copy link
Copy Markdown
Contributor

Stopping reviewer notifications for this pull request: review requested by someone other than the bot, ceding control. If you'd like to restart, comment assign set of reviewers

@aIbrahiim
Copy link
Copy Markdown
Contributor

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

@Abacn
Copy link
Copy Markdown
Contributor Author

Abacn commented Apr 30, 2026

According to the terraform script it does:

https://github.com/Abacn/beam/blob/88061292b6d1f997830182fd48f227d7dbbfbb88/.github/gh-actions-self-hosted-runners/arc/environments/beam.env#L43-L45

@Abacn Abacn merged commit fffa3c0 into apache:master Apr 30, 2026
3 checks passed
@Abacn Abacn deleted the clean-up-arc-tf branch April 30, 2026 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants