Skip to content

Fix for branch protection rules + dynamic matrix jobs #2353

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 21, 2025

Conversation

michaeldwan
Copy link
Member

I ran into an issue over in #2327 where branch protection rules will never pass when referring to matrix jobs.

The rule requires a check named "Test Integration" to be successful, but after making that GHA job a matrix, names are now "Test Integration (matrix-param)", which obviously won't match.

This PR adds a new meta job named "Test Results" which depends on the integration matrix job, as well as the other tests that were probably not required because of the same issue.

@tempusfrangit once this is merged can you change the required check name to "Test Results"?

@michaeldwan michaeldwan requested review from tempusfrangit, a team and Copilot May 21, 2025 17:04
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR addresses an issue in branch protection rules by introducing a new meta job that aggregates results from multiple test jobs.

  • Introduces a new meta job "Test Results" that depends on "test-go", "test-python", and "test-integration".
  • Updates the workflow to consolidate test outcomes and better align with branch protection checks.
Comments suppressed due to low confidence (1)

.github/workflows/ci.yaml:58

  • Consider renaming the job id from 'test' to 'test-results' to improve clarity and better align with its display name 'Test Results'.
test:

@tempusfrangit
Copy link
Member

I ran into an issue over in #2327 where branch protection rules will never pass when referring to matrix jobs.

The rule requires a check named "Test Integration" to be successful, but after making that GHA job a matrix, names are now "Test Integration (matrix-param)", which obviously won't match.

This PR adds a new meta job named "Test Results" which depends on the integration matrix job, as well as the other tests that were probably not required because of the same issue.

@tempusfrangit once this is merged can you change the required check name to "Test Results"?

Happy to make the update as soon as this has landed.

@michaeldwan michaeldwan merged commit 37397b9 into main May 21, 2025
22 checks passed
@michaeldwan michaeldwan deleted the md/fix-required-ci-checks branch May 21, 2025 19:32
@michaeldwan
Copy link
Member Author

@tempusfrangit this has been merged!

@tempusfrangit
Copy link
Member

tempusfrangit commented May 21, 2025

@michaeldwan protection rules have been updated. - please verify they are working as you expect

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