Skip to content

Serialize post-mlinter-review after post-link to avoid PR description race - #47832

Merged
ydshieh merged 2 commits into
mainfrom
fix_mlinter_review_race
Aug 7, 2026
Merged

Serialize post-mlinter-review after post-link to avoid PR description race#47832
ydshieh merged 2 commits into
mainfrom
fix_mlinter_review_race

Conversation

@ydshieh

@ydshieh ydshieh commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

Summary

Both post-link and post-mlinter-review jobs patch the PR description concurrently. Since both read the description before either writes, the last writer silently overwrites the other's changes — the mlinter state block gets lost when post-link writes last.

Adding needs: post-link serializes the jobs so post-mlinter-review waits for post-link to finish, then reads the already-updated description (with CI badge) before appending the mlinter state block. always() ensures post-mlinter-review still runs even if post-link fails.

One-line fix, no code changes.

Related

🤖 Generated with Claude Code

ydshieh and others added 2 commits August 7, 2026 14:16
… race

Both jobs patch the PR description; running them in parallel causes the
last writer to silently overwrite the other's changes. Adding
`needs: post-link` ensures post-mlinter-review reads the already-updated
description (with CI badge) before appending the mlinter state block.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@ydshieh
ydshieh merged commit 5d6dff8 into main Aug 7, 2026
27 checks passed
@ydshieh
ydshieh deleted the fix_mlinter_review_race branch August 7, 2026 12:23
@HuggingFaceDocBuilderDev

Copy link
Copy Markdown

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.

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.

2 participants