Repository navigation
Read the runner-images check's images from a file when it runs - #4360
Open
henrymercer wants to merge 6 commits into
Open
henrymercer wants to merge 6 commits into
henrymercer wants to merge 6 commits into
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…now GA Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
The runtime-derived matrix adds a shared prerequisite for required runner-image checks, changing CI scheduling, failure propagation, and retry behavior enough to warrant human review.
No open issues 🎉
1 file not reviewed
.github/workflows/__runner-images.yml: Excluded by your content exclusion settings
What changed in this PR
Moves the runner-image list into a separate data file that the CodeQL integration check reads at runtime. This prepares for automated image updates without requiring permission to modify workflows.
Changes:
- Replaces the generated check with a hand-written workflow while preserving existing check names.
- Adds the image list, exclusion reasons, and schema validation.
- Keeps the workflow registered for automatic retries.
| File | Description |
|---|---|
pr-checks/runner-images.yml |
Defines tested images, exclusions, and required-check update guidance. |
pr-checks/runner-images.test.ts |
Validates the image file against its schema. |
pr-checks/runner-images.schema.json |
Defines the image file’s format and constraints. |
pr-checks/package.json |
Adds the schema-validation dependency. |
pr-checks/deflake.ts |
Registers the hand-written workflow for retries. |
pr-checks/checks/runner-images.yml |
Removes the former generated-check template. |
package-lock.json |
Records the workspace dependency change. |
.github/workflows/runner-images.yml |
Reads the image list and runs the integration-test matrix. |
Review effort: Balanced (adaptive)
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This moves the runner images that the
runner-imagesPR check runs on topr-checks/runner-images.yml, which the check's workflow reads when it runs. It prepares for a weekly gh-aw agentic workflow that keeps the images up to date, which a follow-up PR will add. That workflow's PRs will then only change this file, so it can push them withGITHUB_TOKEN, which can't change workflows, rather than needing an app token that can.pr-checks/sync.tsgenerates workflows with a fixed matrix, so the check moves to a hand-written workflow,.github/workflows/runner-images.yml. Its newRead runner imagesjob outputs the labels listed underimagesin the file, and the check runs on each of them. The workflow and job keep their names, and the matrix keeps its keys, so the existing check runs keep theirs. Unlike the generated workflow, it doesn't have theworkflow_calltrigger or theworkflow_dispatchinputs for the Go and .NET versions, which nothing uses.The file also lists the images that the check leaves out, with the reasons.
pr-checks/runner-images.schema.jsondescribes the file's format, and apr-checkstest checks the file against it. The reason for leaving outxcode-27now says that CodeQL doesn't support traced analysis on it, rather than that it's a preview image, since it's now generally available (actions/runner-images#15397).Risk assessment
For internal use only. Please select the risk level of this change:
Which use cases does this change impact?
Environments:
How did/will you validate this change?
.test.tsfiles).pr-checks).If something goes wrong after this change is released, what are the mitigation and rollback strategies?
How will you know if something goes wrong after this change is released?
runner-imagescheck fails, or its required checks stay pending.Are there any special considerations for merging or releasing this change?
Merge / deployment checklist