Repository navigation
fix(ci-inference): compare if: strings ignoring case, as GitHub does - #170
Merged
adityankale190895 merged 1 commit intoNov 18, 2026
Merged
Conversation
GitHub ignores case when comparing strings, so matrix.os == 'Ubuntu-Latest' is true on an ubuntu-latest cell. DiffCI evaluated it as FALSE, which marks the step as not running and drops it from the reproduced path. Fixes DiffCI#169 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 2ea72f4.
Checked: == / != now compare with toUpperCase(), which is safe because operandValue always returns a string. That matches GitHub's "ignores case when comparing strings". Both new tests fail on main and pass here. Number/boolean coercion is still unmodelled, as the PR says. Hosted CI is green (12 success, change-impact neutral on the fork). No overlap with our PRs.
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 #169
Changed behavior
evaluateConditionnow compares==and!=operands ignoring case, which matches GitHub Actions ("GitHub ignores case when comparing strings"). A step withif: matrix.os == 'Ubuntu-Latest'on anubuntu-latestcell is nowTRUEandwillExecute: true. Before, it wasFALSEand silently left the reproduced path.Validation
tests/ci-inference/expression.test.tsis new and added torelease-files.json. It has a unit test for==and!=, plus aninferPipelinetest showing the step stays in the path. Both fail onmain; the output is in CI inference: step if: comparisons are case-sensitive, GitHub's are not #169.npm run typecheck,npm test(1169 pass, 0 fail),npm run build,npm run audit:boundary.Unsupported cases
GitHub's number and boolean coercion is still not modelled. For example,
'true'compared with a YAML boolean is false in GitHub.matrix.tsstringifies scalars before evaluation, so that information is lost. Conditions with functions or operators beyond a single==or!=stayUNRESOLVED, as before.