From 7ececbc2595ed16f0f1ef7db3f773bda93a20312 Mon Sep 17 00:00:00 2001 From: Pavol Juhas Date: Tue, 1 Dec 2026 16:57:56 -0800 Subject: [PATCH] CI - complete PR-area labels before size and on-hold labels Problem: The `actions/labeler` may spuriously remove labels added by other labeling jobs if they run at the same time, for example, https://github.com/quantumlib/Cirq/pull/8573#event-37852537816 Solution: Let the pesky `label-pr-area` job finish first and only then proceed with other jobs that may add their own labels. The `label-pr-size` and `label-dependabot-pr` were running concurrently for a long time before without any conflict (unlike `actions/labeler` which may touch unrelated labels). --- .github/workflows/pr-labeler.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/pr-labeler.yaml b/.github/workflows/pr-labeler.yaml index 49bfc1a0e6..a809589f1f 100644 --- a/.github/workflows/pr-labeler.yaml +++ b/.github/workflows/pr-labeler.yaml @@ -47,6 +47,7 @@ jobs: label-pr-size: if: github.repository_owner == 'quantumlib' name: Update PR size labels + needs: ['label-pr-area'] runs-on: ubuntu-slim timeout-minutes: 5 permissions: @@ -77,6 +78,7 @@ jobs: github.event.action == 'opened' && github.event.pull_request.user.login == 'dependabot[bot]' name: Convert dependabot PR to draft + needs: ['label-pr-area'] runs-on: ubuntu-slim timeout-minutes: 5 permissions: