Skip to content

fix(git): treat Azure Pipelines and other CI providers' pipeline files as CI config - #186

Merged
adityankale190895 merged 1 commit into
DiffCI:mainfrom
FredApps:fix/ci-config-other-providers
Nov 18, 2026
Merged

adityankale190895 merged 1 commit into
DiffCI:mainfrom
FredApps:fix/ci-config-other-providers

Conversation

@FredApps

Copy link
Copy Markdown
Contributor

Fixes #183

isConventionalCiConfigPath only 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 / .yaml at any depth, plus YAML files under .azure-pipelines/ and .azuredevops/. Markdown templates in .azuredevops/ are not claimed.
  • .circleci/** and .buildkite/**
  • bitbucket-pipelines.yml and .travis.yml at the root
  • Jenkinsfile at any depth

Both callers (computeAnalysis and the path baseline in planner/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 on main, pass here):

  • Name recognition for each provider, plus negative cases: docs/azure-pipelines.md, .azuredevops/pull_request_template.md, src/Jenkinsfile.ts, src/travis.yml.
  • End-to-end analyzeCheckout: a test reads azure-pipelines.yml, and the pipeline changes. On main the 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 build and npm run audit:boundary all pass.

…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 FredApps changed the title Treat Azure Pipelines and other CI providers' pipeline files as CI config fix(git): treat Azure Pipelines and other CI providers' pipeline files as CI config Nov 17, 2026

@FredApps FredApps left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Cross-review at d4f4e2f.

Checked:

  • isConventionalCiConfigPath only feeds the "CI definition changed, run everything" paths (computeAnalysis and planner/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.

@FredApps
FredApps marked this pull request as ready for review November 18, 2026 00:56
@adityankale190895
adityankale190895 merged commit 27e3fb1 into DiffCI:main Nov 18, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Changing azure-pipelines.yml (and other non-GitHub/GitLab CI files) selects only tests that read it

2 participants