Skip to content

Enhance matrix feature - #7353

Merged
6543 merged 28 commits into
woodpecker-ci:mainfrom
6543-forks:enhance-matrix-feature
Oct 23, 2026
Merged

6543 merged 28 commits into
woodpecker-ci:mainfrom
6543-forks:enhance-matrix-feature

Conversation

@6543

@6543 6543 commented Oct 20, 2026

Copy link
Copy Markdown
Member

Increase limit and report error

@6543 6543 added enhancement improve existing features security labels Oct 20, 2026
@woodpecker-bot

woodpecker-bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Surge PR preview deployment was removed

6543 and others added 10 commits October 20, 2026 15:52
Keep schema lint aligned with matrix constraints: each axis has at most 10 values, include lists at most 64 entries, and combined matrix counts are checked by the parser.
The previous patch decoded the same input several times and fell back to Cartesian parsing when include was empty. Parse one YAML AST, dispatch by matrix shape, and pass nodes to the subparsers. Preserve the refreshed PR head’s expectation that duplicate include axes yield one workflow. Follow the repository import aliases for both YAML packages.
Exercise matrices whose permutation products overflow int and ensure oversized inputs return matrix limit errors without panicking.
@codecov

codecov Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 91.66667% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 64.63%. Comparing base (49aa827) to head (6168307).
⚠️ Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
pipeline/frontend/yaml/matrix/matrix.go 91.56% 7 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7353      +/-   ##
==========================================
+ Coverage   64.57%   64.63%   +0.06%     
==========================================
  Files         448      448              
  Lines       22052    22088      +36     
==========================================
+ Hits        14240    14277      +37     
+ Misses       7812     7811       -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 marked this pull request as ready for review October 21, 2026 09:22
@6543
6543 requested a review from a team October 21, 2026 09:46
@6543
6543 requested a review from lafriks October 21, 2026 13:26

@lafriks lafriks 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.

Otherwise LGTM

Comment thread pipeline/frontend/yaml/matrix/matrix.go Resolved
Comment thread pipeline/frontend/yaml/matrix/matrix.go Resolved
Comment thread pipeline/frontend/yaml/matrix/matrix.go Resolved
Comment thread pipeline/frontend/yaml/matrix/matrix.go Resolved
claude and others added 2 commits October 22, 2026 15:51
Its only caller was TestMatrix, which used it as a map key to check that
all permutations are distinct. Outside the package every Axis is passed
on as a plain map[string]string, so the Stringer was never used.

The test now keys on fmt.Sprint, which prints map keys sorted and so is
deterministic, unlike the random map iteration order String relied on.

v2: rebased onto pull request woodpecker-ci#7353, v1 was made against main and did
not apply there.
Co-authored-by: Robert Kaussow <xoxys@rknet.org>
@6543
6543 requested a review from xoxys October 22, 2026 15:12

@xoxys xoxys left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Not what I ment. The check is still valid and should exist, just at the "correct" location. Can you also add t.Parallel() to all tests in matrix_test.go?

Comment thread pipeline/frontend/yaml/matrix/matrix.go Resolved
6543 and others added 3 commits October 23, 2026 10:23
@6543
6543 requested a review from xoxys October 23, 2026 09:15

@xoxys xoxys left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks!

@6543
6543 merged commit 532731e into woodpecker-ci:main Oct 23, 2026
9 checks passed
@6543
6543 deleted the enhance-matrix-feature branch October 23, 2026 11:11
@woodpecker-bot woodpecker-bot mentioned this pull request Oct 23, 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 security

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants