Repository navigation
Raise matrix per-axis variable limit from 10 to 64 - #7526
Merged
Merged
Conversation
Fixes woodpecker-ci#7523 Signed-off-by: Alex Castillo <alex.castillog33@gmail.com>
Contributor
|
Surge PR preview deployment succeeded. View it at https://woodpecker-ci-woodpecker-pr-7526.surge.sh |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7526 +/- ##
=======================================
Coverage 66.22% 66.23%
=======================================
Files 449 449
Lines 22422 22422
=======================================
+ Hits 14850 14851 +1
+ Misses 7572 7571 -1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
6543
approved these changes
Nov 9, 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.
Fixes #7523
Cause: #7353 made
limitVariablesinpipeline/frontend/yaml/matrix/matrix.goa hard check, so any matrix axis (orincludeentry) with more than 10 values is now rejected with "matrix config has more than 10 variables in an axis". Configs with a 26-value axis ran before v3.20; since then they fail the configuration check.Fix: raise
limitVariablesto 64, following @6543's suggestion in the issue. This matchesmaxWorkflows, so a single axis can use the whole workflow budget; the total-workflow check is unchanged. Docs updated.Scope: this only bumps the limit. A matrix above the new limit still fails the config check for the repository's other workflows, as described in the issue. If @LukeSilva already has a patch in progress, this PR can be closed in favour of theirs.
Test:
TestMatrixMaxAxesnow covers a 26-value axis and a 64-value axis (accepted) and a 65-value axis (rejected withErrorMaxAxisVariablesReached); the two old cases that used 13 values were moved to 65. The 26- and 64-value cases fail before the change.This PR was prepared with the assistance of an AI coding tool (Claude Code); the changes were generated by it and have not been reviewed line by line by a human before submission.