Skip to content

Conversation

@Akkikens
Copy link
Contributor

@Akkikens Akkikens commented Nov 20, 2025

The cleanup script was too strict when matching branch names, causing cancelled runs from merge_queue synthetic branches (e.g., gh-readonly-queue/main/pr-3937-...) to not match newer push runs on main, even though they represent the same branch.

Updated the matching logic to treat all main branch runs (including merge_queue synthetic branches) as the same branch. This ensures that any newer run on main will supersede older cancelled ones, regardless of whether they came from a push or merge_queue event.

This fixes the issue where cancelled runs from merge_queue weren't being deleted, leaving red X's on main commits.

Asana Task

The cleanup script was too strict when matching branch names, causing
cancelled runs from merge_queue synthetic branches (e.g.,
gh-readonly-queue/main/pr-3937-...) to not match newer push runs on
main, even though they represent the same branch.

Updated the matching logic to treat all main branch runs (including
merge_queue synthetic branches) as the same branch. This ensures that
any newer run on main will supersede older cancelled ones, regardless
of whether they came from a push or merge_queue event.

This fixes the issue where cancelled runs from merge_queue weren't being
deleted, leaving red X's on main commits.
@Akkikens Akkikens enabled auto-merge November 20, 2025 18:10
@Akkikens Akkikens disabled auto-merge November 20, 2025 18:15
@Akkikens Akkikens added this pull request to the merge queue Nov 20, 2025
Merged via the queue into main with commit 1d26300 Nov 20, 2025
18 of 20 checks passed
@Akkikens Akkikens deleted the akshay/final-fixes-cancelled-job-runs branch November 20, 2025 18:34
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.

3 participants