Make `mach try` refuse to push when the try tree is closed
Categories
(Developer Infrastructure :: Try, enhancement)
Tracking
(firefox163 fixed)
| Tracking | Status | |
|---|---|---|
| firefox163 | --- | fixed |
People
(Reporter: ahal, Assigned: ahal)
References
(Blocks 1 open bug)
Details
Attachments
(1 external file)
mach try currently pushes regardless of the target tree's status, so pushes to a closed tree are only rejected (hg) or silently queued (Lando) after the fact.
Before pushing, mach try should query Lando's treestatus API (https://lando.moz.tools/api/treestatus/trees/<tree>) for the tree being pushed to and exit with an error if it isn't open. If the tree is unknown to treestatus, or treestatus can't be reached, the push should proceed.
--closed-tree should bypass the check. It should only append "ON A CLOSED TREE" to the commit message when pushing to hg.mozilla.org/try, since Git remotes don't need it.
| Assignee | ||
Updated•16 days ago
|
| Assignee | ||
Comment 1•15 days ago
|
||
Pushing to a closed tree is either rejected by the hg hook or queued by Lando
without telling the user. --closed-tree now skips the check, and only appends
"ON A CLOSED TREE" for hg remotes, where the hook still requires it.
Comment 3•10 days ago
|
||
| bugherder | ||
Description
•