FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

PR checks: support collections of workflows by mbg · Pull Request #3030 · github/codeql-action · GitHub

PR checks: support collections of workflows - #3030

Merged
mbg merged 6 commits into
mainfrom
mbg/workflow-collections
Aug 14, 2025
Merged

PR checks: support collections of workflows#3030
mbg merged 6 commits into
mainfrom
mbg/workflow-collections

Conversation

mbg commented Aug 12, 2025
edited
Loading

Copy link
Copy Markdown
Member

This is a sort-of experimental idea that I had in the context of #3028 where we bump the Go version in the workflows to a release candidate for testing purposes, but such PRs don't have to be merged anymore because the existing constraint of >= 1.22 would include allow new version once it is fully released.

This PR updates the sync.py script to allow "collections" of PR checks that can be triggered manually, with specific inputs. So instead of creating a PR that bumps the Go version for testing purposes only, we could instead just dispatch the collection workflow with the desired Go version.

Risk assessment

For internal use only. Please select the risk level of this change:

  • Low risk: Changes are fully under feature flags, or have been fully tested and validated in pre-production environments and are highly observable, or are documentation or test only.

Merge / deployment checklist

  • Confirm this change is backwards compatible with existing workflows.
  • Consider adding a changelog entry for this change.
  • Confirm the readme and docs have been updated if necessary.

mbg marked this pull request as ready for review August 12, 2025 11:53
mbg requested a review from a team as a code owner August 12, 2025 11:53
Copilot AI review requested due to automatic review settings August 12, 2025 11:53

Copilot AI left a comment

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Pull Request Overview

This PR adds support for collections of workflows in the PR checks system. It allows grouping related workflow checks (like Go-related checks) into collections that can be executed together.

  • Adds collection functionality to the PR checks sync script
  • Introduces workflow inputs for parameterizing check execution
  • Creates a consolidated "go" collection containing all Go-related checks

Reviewed Changes

Copilot reviewed 64 out of 64 changed files in this pull request and generated 1 comment.

File Description
pr-checks/sync.py Main implementation adding collection support and workflow input handling
pr-checks/checks/go-*.yml Go check specifications updated with collection membership and inputs
.github/workflows/__go.yml New generated collection workflow for running all Go checks together
.github/workflows/__*.yml Generated workflow files updated with workflow_call and workflow_dispatch inputs

Comment thread pr-checks/sync.py Outdated
henrymercer previously approved these changes Aug 13, 2025

henrymercer left a comment

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Nice! I like this. There is a little bit of awkwardness in the "go-version" input not being used in any of the steps, but it's not blocking.

Comment thread pr-checks/sync.py Outdated
mbg force-pushed the mbg/workflow-collections branch from c3ee05b to 20c329c Compare August 14, 2025 11:09
mbg requested a review from henrymercer August 14, 2025 11:17

mbg commented Aug 14, 2025

Copy link
Copy Markdown
Member Author

I manually dispatched a run of __go.yml with a Go RC as input to check that all works as expected with the workflow_dispatch and workflow_call triggers: https://github.com/github/codeql-action/actions/runs/16963696649

henrymercer left a comment
edited
Loading

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Looks great. Thanks for the extra cleanup!

mbg merged commit 777f917 into main Aug 14, 2025
390 checks passed
mbg deleted the mbg/workflow-collections branch August 14, 2025 12:09
github-actions Bot mentioned this pull request Aug 18, 2025
8 tasks
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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL