Repository navigation
Explain on the bug, rather than failing, when try is closed. Fixes #325 - #446
Merged
Merged
Conversation
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.
Contributor
There was a problem hiding this comment.
🟢 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 trycommand. - 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
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.
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.