[Infra] Update ubuntu GitHub runners#7337
Conversation
- Upgrade from `ubuntu-22.04` to `ubuntu-24.04`. - Use `ubuntu-24.04` instead of `ubuntu-latest`.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7337 +/- ##
==========================================
- Coverage 89.94% 89.94% -0.01%
==========================================
Files 276 276
Lines 14007 14007
==========================================
- Hits 12599 12598 -1
- Misses 1408 1409 +1
Flags with carried forward coverage won't be shown. Click here to find out more. |
There was a problem hiding this comment.
Pull request overview
This PR updates GitHub Actions workflow runner labels to explicitly use ubuntu-24.04 (including updating remaining ubuntu-22.04 and ubuntu-latest references), aligning CI execution environments on a consistent Ubuntu version.
Changes:
- Upgrade Ubuntu runner labels from
ubuntu-22.04toubuntu-24.04in matrix-based workflows. - Replace
ubuntu-latestwithubuntu-24.04in several standalone workflow jobs. - Update the reusable component build workflow default OS list and matrix exclusions to use
ubuntu-24.04/ubuntu-24.04-arm.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/verifyaotcompat.yml | Updates the Ubuntu OS matrix entry to ubuntu-24.04. |
| .github/workflows/survey-on-merged-pr.yml | Pins the job runner from ubuntu-latest to ubuntu-24.04. |
| .github/workflows/ossf-scorecard.yml | Pins the Scorecard job runner from ubuntu-latest to ubuntu-24.04. |
| .github/workflows/fossa.yml | Pins the FOSSA scan job runner from ubuntu-latest to ubuntu-24.04. |
| .github/workflows/concurrency-tests.yml | Updates the Ubuntu OS matrix entry to ubuntu-24.04. |
| .github/workflows/Component.BuildTest.yml | Updates default OS list and net462 exclusions to ubuntu-24.04 / ubuntu-24.04-arm. |
| .github/workflows/codeql-analysis-steps.yml | Pins the results job runner from ubuntu-latest to ubuntu-24.04. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Fyi @martincostello reason renovate is not updating it is the version is not being extracted correctly by the regex. The version should not contain Ubuntu but use the number and potentially -arm. See ruby & ruby contrib for an example of where I have gotten it working. |
|
Thanks - I could find few examples when I searched GitHub for syntax that seemed to have evidence in the Git history of it working at some point when I added this to my own personal repositories, but as they were all already using up-to-date images I didn't see any evidence either way of it working or not. The changes were in anticipation of |
|
Your approach appears to be different in that it's matching to a conventional based property name and then the Ideally I'd like it work without needing to match to a specific matrix/property name and use the comment-hint as I think it's more declarative when you need to go outside of the defaults (like how Docker |
Changes
ubuntu-22.04toubuntu-24.04.ubuntu-24.04instead ofubuntu-latest.I can see in the dashboard that renovate is detecting the runner labels, but I don't know why it isn't trying to update them.Merge requirement checklist
Unit tests added/updatedAppropriateCHANGELOG.mdfiles updated for non-trivial changesChanges in public API reviewed (if applicable)