Skip to content

Raise matrix per-axis variable limit from 10 to 64 - #7526

Merged
6543 merged 1 commit into
woodpecker-ci:mainfrom
pcbeingused33:fix/matrix-axis-limit-7523
Nov 9, 2026
Merged

6543 merged 1 commit into
woodpecker-ci:mainfrom
pcbeingused33:fix/matrix-axis-limit-7523

Conversation

@pcbeingused33

Copy link
Copy Markdown
Contributor

Fixes #7523

Cause: #7353 made limitVariables in pipeline/frontend/yaml/matrix/matrix.go a hard check, so any matrix axis (or include entry) 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 limitVariables to 64, following @6543's suggestion in the issue. This matches maxWorkflows, 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: TestMatrixMaxAxes now covers a 26-value axis and a 64-value axis (accepted) and a 65-value axis (rejected with ErrorMaxAxisVariablesReached); 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.

Fixes woodpecker-ci#7523

Signed-off-by: Alex Castillo <alex.castillog33@gmail.com>
@6543 6543 changed the title fix(matrix): raise per-axis variable limit from 10 to 64 Raise matrix per-axis variable limit from 10 to 64 Nov 9, 2026
@6543 6543 added server enhancement improve existing features labels Nov 9, 2026
@woodpecker-bot

Copy link
Copy Markdown
Contributor

Surge PR preview deployment succeeded. View it at https://woodpecker-ci-woodpecker-pr-7526.surge.sh

@codecov

codecov Bot commented Nov 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 66.23%. Comparing base (96614b3) to head (d6352ed).
⚠️ Report is 1 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@6543
6543 merged commit b714a76 into woodpecker-ci:main Nov 9, 2026
9 checks passed
@woodpecker-bot woodpecker-bot mentioned this pull request Nov 9, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement improve existing features server

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unable to run any workflow in repository with >10 axis matrix workflow

3 participants