Key the doc build concurrency group on the pull request number - #48707
Open
albertvillanova wants to merge 1 commit into
Open
Key the doc build concurrency group on the pull request number#48707albertvillanova wants to merge 1 commit into
albertvillanova wants to merge 1 commit into
Conversation
Contributor
CI recapDashboard: View test results in Grafana |
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
vasqu
approved these changes
Sep 11, 2026
vasqu
left a comment
Collaborator
There was a problem hiding this comment.
LGTM but best to have the approval of one of @ydshieh or @tarekziade
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
build_pr_documentation.ymlkeys its concurrency group ongithub.head_ref, which is the head branch name without the fork owner. Two open PRs from different forks whose branches share a name therefore land in the same group, and a push on one cancels the in-flight doc build on the other.Shared names are common, because many contributors push to their fork's default branch instead of creating one: 154 of the 1590 currently open PRs here share a head branch name with another open PR, 84 of them on
mainand 41 onpatch-1. A doc build takes around 8 minutes, which is the window in which such a collision cancels a build. I did not find a realized cancellation in the 1200 most recent runs, so this is hardening rather than a fix for something currently failing.github.event.pull_request.numberis unique per pull request. It is empty for themerge_grouptrigger, so those runs keep falling back to the uniquegithub.run_idand are never cancelled, exactly as they are today withhead_ref.The template this workflow was copied from carries the same expression, and the same one-liner is proposed there in huggingface/doc-builder#829.