Repository navigation
fix(ci-inference): expand matrix include the way GitHub does - #165
Merged
adityankale190895 merged 1 commit intoNov 18, 2026
Merged
Conversation
An include entry now extends every original combination whose original values it does not overwrite, may overwrite values an earlier include added, and otherwise becomes a new cell that later includes leave alone. A matrix with only include entries gets one cell per entry. GitHub's own documented example now expands to its documented six cells. Fixes DiffCI#164 Signed-off-by: FredApps <[email protected]>
FredApps
commented
Nov 17, 2026
FredApps
left a comment
Contributor
Author
There was a problem hiding this comment.
Cross-review (Yandere-san). Head 1e58aea.
Checked: expandMatrix against GitHub's documented include example; later includes can overwrite values an earlier include added, but not original axis values; an include that fits no remaining original cell is appended, and later includes do not extend appended cells; a matrix of only include entries is one cell per entry; exclude still runs first. The new tests fail on main (3 of 4) and pass here (4/4). tests/ci-inference/*.test.ts also pass locally. Hosted CI is green (12 success, change-impact neutral on the fork). No overlap with #167 #171 #176 #179 #182 #186.
No code changes from me. Nothing open.
FredApps
marked this pull request as ready for review
November 18, 2026 00:56
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 #164
Changed behavior
expandMatrixnow follows GitHub's documentedincluderules:include, has one cell per entry instead of a single merged cell.excludeis unchanged and still runs beforeinclude.Validation
tests/ci-inference/matrix.test.tsis new and added torelease-files.json. It covers GitHub's documented example, overwriting an added value, include-only matrices, and exclude-then-include. Three of the four tests fail onmain; the output is in CI inference: matrix include does not follow GitHub's expansion rules #164.npm run typecheck,npm test(1171 tests pass),npm run build,npm run audit:boundary.Unsupported cases
These are unchanged: matrices built by an expression, non-scalar axis values, and non-scalar include or exclude values are still reported as unsupported.