Skip to content

2026 11 09 tjr bugzilla retry commandeered - #460

Merged
tomrittervg merged 2 commits into
masterfrom
2026-11-09-tjr-bugzilla-retry-commandeered
Nov 10, 2026
Merged

tomrittervg merged 2 commits into
masterfrom
2026-11-09-tjr-bugzilla-retry-commandeered

Conversation

@tomrittervg

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Gateway errors during verification can bypass remaining retries, and closure checks can falsely report success without updating the duplicate target or posting the required comment.

2 open issues
What changed in this PR

This PR improves Updatebot’s handling of transient Bugzilla failures and Phabricator revisions taken over by another author.

Changes:

  • Adds bounded retries for Bugzilla gateway errors, with checks intended to avoid repeating completed writes.
  • Treats inability to abandon another author’s Phabricator revision as nonfatal.
  • Adds regression tests for retry behavior and commandeered revisions.
File Description
tests/​functionality_all_platforms.py Tests build-failure handling when a revision has been commandeered.
tests/​bugzilla.py Adds gateway-error simulations and retry regression tests.
apis/​phabricator.py Logs and tolerates abandonment failures caused by changed ownership.
apis/​bugzilla_api.py Adds gateway-error classification, write retries, and completion checks.

Review effort: Balanced

Comment thread apis/bugzilla_api.py Resolved
Comment thread apis/bugzilla_api.py Resolved
@tomrittervg
tomrittervg force-pushed the 2026-11-09-tjr-bugzilla-retry-commandeered branch from 2bd1a10 to f371476 Compare November 10, 2026 12:25
@tomrittervg
tomrittervg requested a balanced review from Copilot November 10, 2026 12:25

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Run-wide fallback identifiers can make an earlier comment falsely confirm a later failed write, silently dropping needinfo or assignee updates.

1 open issue
2 resolved since last review

Review effort: Balanced

Comment thread apis/bugzilla_api.py Resolved
 #397

Phabricator won't let us abandon a revision we're no longer the author of. That
error was retried and then reported on the bug as a failure to abandon it; now we
log it and move on, since the revision is the new author's to keep or abandon.
…ng them. Fixes #401

Bugzilla's front end sometimes fails a request with a 502, 503 or 504 (e.g. '504
stream timeout'). Retry filing bugs, commenting and closing bugs when that happens,
but first check whether the failed attempt went through anyway, so we don't file or
comment twice: a run's bugs and comments are marked with its task id. (The response's
status code is already in the error, since _load_json_or_raise.)
@tomrittervg
tomrittervg force-pushed the 2026-11-09-tjr-bugzilla-retry-commandeered branch from f371476 to 3d1e43b Compare November 10, 2026 13:44
@tomrittervg
tomrittervg merged commit 6111749 into master Nov 10, 2026
11 checks passed
@tomrittervg
tomrittervg deleted the 2026-11-09-tjr-bugzilla-retry-commandeered branch November 10, 2026 14:00
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