Skip to content

Comments

eng/pipeline: add prerequisite patches check stage#2150

Closed
gdams wants to merge 3 commits intomicrosoft/mainfrom
dev/gadams/infra
Closed

eng/pipeline: add prerequisite patches check stage#2150
gdams wants to merge 3 commits intomicrosoft/mainfrom
dev/gadams/infra

Conversation

@gdams
Copy link
Member

@gdams gdams commented Feb 19, 2026

fixes #2148

Add a "Patches Apply Cleanly" stage that runs before all build/test stages. This surfaces patch application failures at the top of the PR checks list, so developers don't have to drill into the pipeline to find them.

Previously, patch failures were only visible by clicking through to the pipeline run and finding the "Apply patches" step inside a specific build job. This is especially tedious during submodule updates and releases where patch conflicts are common.

The new stage runs on Ubuntu 22.04 with a 10-minute timeout. All build, test, and CodeQL stages now depend on it and will be skipped if patches fail to apply.

Example of how things look when the patches don't apply cleanly:

image

Add a "Patches Apply Cleanly" stage that runs before all build/test
stages. This surfaces patch application failures at the top of the PR
checks list, so developers don't have to drill into the pipeline to
find them.

Previously, patch failures were only visible by clicking through to the
pipeline run and finding the "Apply patches" step inside a specific
build job. This is especially tedious during submodule updates and
releases where patch conflicts are common.

The new stage runs on Ubuntu 22.04 with a 10-minute timeout. All
build, test, and CodeQL stages now depend on it and will be skipped if
patches fail to apply.
@gdams gdams requested a review from a team as a code owner February 19, 2026 14:29
@gdams gdams requested a review from dagood February 19, 2026 14:50
Copy link
Member

@dagood dagood left a comment

Choose a reason for hiding this comment

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

Unfortunately AzDO obscures the time spent waiting for an agent so it's hard to get exact numbers, but I don't like that this PR adds extra latency to every test run--an entire "wait for agent" delay that will always be on the hot path. (Let alone the ~1m of actual execution time.)

@gdams
Copy link
Member Author

gdams commented Feb 20, 2026

closing for now

@gdams gdams closed this Feb 20, 2026
@gdams gdams deleted the dev/gadams/infra branch February 20, 2026 16:36
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.

Move "Patches Apply Cleanly" check to the top

2 participants