From 706a164632d1fb88e09fc1cfb03754df785e00cf Mon Sep 17 00:00:00 2001 From: Alexey Rivkin Date: Wed, 9 Sep 2026 15:39:03 +0300 Subject: [PATCH] CI: Do not start the PR pipeline for draft pull requests Marking a draft PR "ready for review" makes Azure queue a second run of the same commit and auto-cancel the run already in progress. Over the last 30 days this happened 26 times, 17 of them killing a running draft build (one after 18 hours in the test queue). Azure has no option to build drafts and skip that transition, so stop building drafts instead: a draft gets its first PR pipeline run when it is marked ready. Only the PR pipeline is gated. The snapshot and release pipelines do real work on a PR only when asked via an "AZP/SNAPSHOT: " or "AZP/RELEASE: " commit title, which is how packaging changes get tested from draft PRs; their unrequested runs cost seconds, so they stay as is. Checked on this PR: pushes while draft queued no UCX PR run, an "/azp run UCX PR" comment on the draft was refused by Azure, and marking the PR ready queued the run. Signed-off-by: Alexey Rivkin --- buildlib/azure-pipelines-pr.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/buildlib/azure-pipelines-pr.yml b/buildlib/azure-pipelines-pr.yml index d446fe72ea7..f0dc05bd58d 100644 --- a/buildlib/azure-pipelines-pr.yml +++ b/buildlib/azure-pipelines-pr.yml @@ -3,6 +3,7 @@ trigger: none pr: + drafts: false branches: include: - master