Skip to content

Add pipeline that's always green, for doc-only PRs#62509

Merged
wtgodbe merged 2 commits into
mainfrom
wtgodbe/AlwaysGreen
Jul 1, 2025
Merged

Add pipeline that's always green, for doc-only PRs#62509
wtgodbe merged 2 commits into
mainfrom
wtgodbe/AlwaysGreen

Conversation

@wtgodbe

@wtgodbe wtgodbe commented Jun 30, 2025

Copy link
Copy Markdown
Member

Today, when you open a PR against any of the following paths, no CI job will run. Therefore, Build Analysis hangs indefinitely, because it's waiting for any pipeline to finish - this means devs can't merge such PRs without being an admin, or knowing the magic incantation to unblock Build Analysis (ba-g {justification}).

If we add a new "always green" pipeline that only runs on such PRs, we can work around the issue until dotnet/dnceng#5442 is resolved. Note that a github action wouldn't work here, as Build Analysis only looks for AzDO pipelines.

    - .devcontainer/*
    - .github/*
    - .vscode/*
    - docs/*
    - '**/*.md'
    - LICENSE.TXT
    - THIRD-PARTY-NOTICES.TXT

@wtgodbe wtgodbe requested a review from a team as a code owner June 30, 2025 21:05
@github-actions github-actions Bot added the area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework label Jun 30, 2025
@wtgodbe wtgodbe requested a review from Copilot June 30, 2025 21:06

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds a new pipeline (".azure/pipelines/report-green.yml") that always exits successfully for PRs affecting non-critical paths (such as docs, markdown files, and configuration directories).

  • Introduces a pipeline triggered on PRs with specific path filters.
  • Leverages an always-success job (using "exit 0") to unblock Build Analysis on doc-only PRs.

Comment thread .azure/pipelines/report-green.yml
@wtgodbe wtgodbe merged commit 8c4a36c into main Jul 1, 2025
28 checks passed
@wtgodbe wtgodbe deleted the wtgodbe/AlwaysGreen branch July 1, 2025 14:38
@dotnet-policy-service dotnet-policy-service Bot added this to the 10.0-preview7 milestone Jul 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants