Repository navigation
Enhance matrix feature - #7353
Merged
Merged
Conversation
Contributor
|
Surge PR preview deployment was removed |
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 Report❌ Patch coverage is
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. 🚀 New features to boost your workflow:
|
6543
marked this pull request as ready for review
October 21, 2026 09:22
xoxys
requested changes
Oct 22, 2026
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>
Co-authored-by: Robert Kaussow <xoxys@rknet.org>
xoxys
requested changes
Oct 22, 2026
xoxys
left a comment
Member
There was a problem hiding this comment.
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?
Co-authored-by: Robert Kaussow <xoxys@rknet.org>
3 tasks done
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.
Increase limit and report error