Repository navigation
fix(git): treat Azure Pipelines and other CI providers' pipeline files as CI config - #186
Merged
adityankale190895 merged 1 commit intoNov 18, 2026
Conversation
…nfig A change to azure-pipelines.yml (or .circleci/, bitbucket-pipelines.yml, .travis.yml, Jenkinsfile, .buildkite/) was an unknown file that reference resolution narrowed to the tests reading it. Recognise them by name so the CI-definition signal forces full validation, as for GitHub and GitLab. Fixes DiffCI#183 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 at d4f4e2f.
Checked:
isConventionalCiConfigPathonly feeds the "CI definition changed, run everything" paths (computeAnalysisandplanner/path-baseline.ts), so the change only adds fallbacks.- The name rules and negative cases look right.
- Both new tests fail without the change and pass with it.
- The branch is up to date with main, and CI is green.
Fixed: I gave the PR title a conventional fix(git): prefix to match the rest of the repo. The commit subject is unchanged, since that would need a rewrite.
Open:
- An Azure pipeline with a custom YAML path set in Azure DevOps can't be recognised by name, so it still falls through as an unknown file.
docs/using-diffci.md(the fallback reasons table) still only gives a GitHub example. Optional.
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 #183
isConventionalCiConfigPathonly knew GitHub workflows and GitLab pipelines. A change to an Azure Pipelines definition, where the DiffCIObserve task runs, was treated as an unknown file. Reference resolution then narrowed it to whichever tests read the file, which is the failure the module header describes for GitLab before 2026-11-05.This PR recognises these files by name:
azure-pipelines.yml/.yamlat any depth, plus YAML files under.azure-pipelines/and.azuredevops/. Markdown templates in.azuredevops/are not claimed..circleci/**and.buildkite/**bitbucket-pipelines.ymland.travis.ymlat the rootJenkinsfileat any depthBoth callers (
computeAnalysisand the path baseline inplanner/path-baseline.ts) use this as "a CI definition changed, run everything", so the change only adds fallbacks. It never adds narrowing.Tests (in
tests/git/ci-config-paths.test.ts; both fail onmain, pass here):docs/azure-pipelines.md,.azuredevops/pull_request_template.md,src/Jenkinsfile.ts,src/travis.yml.analyzeCheckout: a test readsazure-pipelines.yml, and the pipeline changes. Onmainthe plan is SELECTIVE with only the reader test; with this PR it is FULL with "CI workflow definition(s) changed".Local results:
npm run typecheck,npm test(1169 pass, 0 fail),npm run buildandnpm run audit:boundaryall pass.