Open
Skip expensive PR pipelines for doc-only and metadata-only changes#69004
Conversation
Co-authored-by: javiercn <6995051+javiercn@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Limit CI configurations running on non-code changes
Skip expensive PR pipelines for doc-only and metadata-only changes
Sep 2, 2026
javiercn
marked this pull request as ready for review
September 2, 2026 17:07
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The YAML changes are small, consistent with Azure Pipelines path-matching rules, and the corrected filenames match the actual repo casing.
Pull request overview
This PR tightens Azure Pipelines PR path filtering so expensive validation pipelines are skipped when a PR only changes documentation or selected repository-metadata files, while still ensuring the required “always green” pipeline runs for Build Analysis.
Changes:
- Fixes license file path exclusions to match on-disk casing (
LICENSE.txt,THIRD-PARTY-NOTICES.txt) so doc/metadata-only changes actually skip the expensive PR pipelines. - Prevents
template-tests-pr.ymlfrom running Helix template tests for markdown-only changes by excluding**/*.md. - Updates
ci-public.ymlheader comments to accurately describe the doc/metadata-only skip behavior and thereport-green.ymlfallback.
File summaries
| File | Description |
|---|---|
| .azure/pipelines/template-tests-pr.yml | Adds pr.paths.exclude: '**/*.md' so markdown-only edits don’t queue template Helix tests. |
| .azure/pipelines/report-green.yml | Corrects excluded license filenames’ casing so report-green can reliably cover doc/metadata-only PRs. |
| .azure/pipelines/quarantined-pr.yml | Corrects excluded license filenames’ casing so quarantined PR validation can be skipped for doc/metadata-only PRs. |
| .azure/pipelines/ci-public.yml | Corrects excluded license filenames’ casing and updates comments to reflect the doc/metadata-only skip + report-green fallback behavior. |
Review details
- Files reviewed: 4/4 changed files
- Comments generated: 0
- Review effort level: Lite
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
Contributor
|
Hey @dotnet/aspnet-build, looks like this PR is something you want to take a look at. |
lewing
approved these changes
Sep 2, 2026
wtgodbe
approved these changes
Sep 4, 2026
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.
Stop queueing expensive PR validation when every changed file is documentation or repo metadata.
Description
The non-code path filters were already in place for
aspnetcore-ci,aspnetcore-quarantined-pr, andaspnetcore-always-green, but two gaps meant they didn't fully take effect.License filename casing (
ci-public.yml,quarantined-pr.yml,report-green.yml): the filters listedLICENSE.TXT/THIRD-PARTY-NOTICES.TXT, which don't match the files on disk. Corrected toLICENSE.txt/THIRD-PARTY-NOTICES.txtso those edits actually skip CI and instead trigger the always-green job that Build Analysis depends on.Template tests (
template-tests-pr.yml): include-only filters meant a markdown edit undersrc/ProjectTemplates,src/Components, orsrc/Mvcstill queued Helix template tests. Addedexclude: '**/*.md', matching whatcomponents-e2e-tests.ymlalready does.Stale comment (
ci-public.yml): the header still claimed the pipeline has no path exclusions. Replaced with a note describing the doc-only skip and thereport-green.ymlfallback.components-e2e-tests.ymlneeded no change — its include list plus existing**/*.mdexclusion already prevents the proposed non-code paths from triggering it.Verification is static: the pipeline YAML was parsed and the resolved
pr.pathsfilters were compared against the list in the issue and the actual filenames in the repo. Azure Pipelines evaluates these filters service-side, so end-to-end behavior can only be confirmed after merge.