Group tests and execute groups in parallel#225
Merged
Conversation
Currently we're not able to require all tests ran in branch protection rules. This is because the build matrix is dynamic and the branch protection rules would need to be kept in sync with the ruby versions. Instead, we're introducing a job that checks whether all matrix jobs have succeeded. The branch protection requirement can depend on this singular job.
bobvanderlinden
added a commit
that referenced
this pull request
Apr 15, 2026
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.
Currently CI sometimes needs to build all ruby versions when a global change is made. This takes 6h+, which is over the GHA limit. The timed out build doesn't get pushed, so none of the internal builds of Ruby are being cached.
It would be nice if we could execute the build without hitting a GHA timeout. We can create a job per ruby version so that GHA will run many builds in parallel, each a normal amount of time and the 6h limit isn't hit.
I've split up the tests into 'groups'. Each ruby version is a group and there is an additional group for 'common' tests. The groups are being read in GHA and a matrix strategy, which is filled with all groups. Then all tests within each group is build within a separate job using the additional 'all' test, which is basically a linkFarm of the other tests in the group.