Closed Bug 2094654 Opened 16 days ago Closed 10 days ago

Make `mach try` refuse to push when the try tree is closed

Categories

(Developer Infrastructure :: Try, enhancement)

enhancement

Tracking

(firefox163 fixed)

RESOLVED FIXED
163 Branch
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: nobody → ahal
Status: NEW → ASSIGNED

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.

Status: ASSIGNED → RESOLVED
Closed: 10 days ago
Resolution: --- → FIXED
Target Milestone: --- → 163 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: