Skip to content

Handle already-removed pull request labels - #229

Draft
dhruvmanila wants to merge 1 commit into
masterfrom
codex/idempotent-label-removal
Draft

Handle already-removed pull request labels#229
dhruvmanila wants to merge 1 commit into
masterfrom
codex/idempotent-label-removal

Conversation

@dhruvmanila

Copy link
Copy Markdown
Member

Concurrent CI or review webhooks can try to remove the same PR label. The second deletion returns 404 "Label does not exist", aborting the webhook with HTTP 500 and generating Sentry errors.

Treat that specific response as successful cleanup and log it at INFO, while preserving other API errors. Add regression coverage for concurrent check runs, stale stage labels, continued cleanup, and logging.

Validation: all 206 tests pass; all pre-commit checks pass.

@dhruvmanila
dhruvmanila marked this pull request as draft September 5, 2026 12:02
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.

1 participant