Repository navigation
ci(audit): add the audit label separately, with retries - #1823
Merged
Merged
Conversation
gh pr create adds a label in a second call once the PR exists. A transient GraphQL error there failed run 46213501517 although #1818 was already open. Create the PR without the label, then add it with gh pr edit, retrying after 5, 15 and 45 seconds, and only warn if it never sticks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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 changed
.github/workflows/weekly-audit.yml, step Commit, push branch, open PR:gh pr createno longer passes--label audit.gh pr edit "$BRANCH" --add-label audit, retrying after 5, 15 and 45seconds. If all four tries fail, the step writes a warning annotation and
still succeeds, because the PR is already open.
Why
Run 46213501517 (focus 0) opened #1818 and then failed.
gh pr createadds alabel in a second API call after the PR exists, and that call got a transient
GitHub GraphQL error. The run was marked failed even though its PR was open,
and the PR had no
auditlabel.Blast radius
CI only: one step of the weekly audit workflow. No host, VLAN or service
changes.
secrets/*.sops.yamlVerification
ghunderset -euo pipefail,succeeds on the first try, succeeds on the third, and gives up with a
warning and exit 0 after four failures
🤖 Generated with Claude Code