Skip to content

Explain on the bug, rather than failing, when try is closed. Fixes #325 - #446

Merged
tomrittervg merged 1 commit into
masterfrom
2026-11-02-tjr-try-closed
Nov 3, 2026
Merged

tomrittervg merged 1 commit into
masterfrom
2026-11-02-tjr-try-closed

Conversation

@tomrittervg

Copy link
Copy Markdown
Collaborator

hg.mozilla.org's push hook refuses pushes while try is closed, and also when it can't reach treestatus to check. Updatebot retried that ten times and then reported a generic failure. Recognise the hook's message instead: don't retry, tell the library owner why there's no try run and the ./mach try command to push it themselves, and still submit the update to Phabricator.

hg.mozilla.org's push hook refuses pushes while try is closed, and also when
it can't reach treestatus to check. Updatebot retried that ten times and then
reported a generic failure. Recognise the hook's message instead: don't
retry, tell the library owner why there's no try run and the ./mach try
command to push it themselves, and still submit the update to Phabricator.

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.

🟢 Approval recommended

No active review issues were identified for the changes handling blocked try pushes.

No open issues 🎉

What changed in this PR

This PR makes vendoring updates handle closed try trees and unavailable tree status without repeated retries or generic failure reports. It explains the blocked try push to the library owner while allowing Phabricator submission to continue.

Changes:

  • Detect push-hook refusal messages and stop retrying.
  • Add a Bugzilla explanation with the manual ./mach try command.
  • Test both closed-tree and unavailable-tree-status scenarios.
File Description
tests/​functionality_utilities.py Adds push-output fixtures for both refusal scenarios.
tests/​functionality_all_platforms.py Tests retry suppression, explanatory comments, and continued Phabricator submission.
tasktypes/​vendoring.py Handles try closure separately from generic submission errors.
components/​bugzilla.py Adds a closure explanation and manual try command template.
apis/​taskcluster.py Detects refusal messages and raises a non-retryable exception.

Review effort: Balanced

@tomrittervg
tomrittervg merged commit e979b04 into master Nov 3, 2026
17 checks passed
@tomrittervg
tomrittervg deleted the 2026-11-02-tjr-try-closed branch November 3, 2026 14:05
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