Closed Bug 1075275 Opened 10 years ago Closed 10 years ago

Remove prevent_broken_csets hook

Categories

(Developer Services :: Mercurial: hg.mozilla.org, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: gps, Assigned: gps)

References

Details

(Whiteboard: [kanban:engops:https://mozilla.kanbanize.com/ctrl_board/6/680] )

Attachments

(1 file)

prevent_broken_csets has no test coverage and has evilness such as hard-coded repository paths. Assuming it is used, we should give it some love before we upgrade hgssh to 3.1.

https://ci.mozilla.org/job/version-control-tools/coveragepy/hghooks_mozhghooks_prevent_broken_csets.html
Blocks: 1053705
Product: Release Engineering → Developer Services
Whiteboard: [kanban:engops:https://kanbanize.com/ctrl_board/6/276]
Strangely, releases/mozilla-aurora is the only repository I could find that is using this hook. I'm not sure why it isn't on beta, release, esr, etc.

Since this is blocking SSH upgrade, I'll write some tests for it.
Assignee: nobody → gps
Status: NEW → ASSIGNED
Huh, that would explain why I had to write another hook in bug 962300... (which does seem to be about the same issue...)
(In reply to Mike Hommey [:glandium] from comment #2)
> Huh, that would explain why I had to write another hook in bug 962300...
> (which does seem to be about the same issue...)

(and is still not deployed either)
/r/303 - hghooks: add test for prevent_broken_csets hook (bug 1075275)

Pull down this commit:

hg pull review -r ec0732d1bd254455453ffc4ae5a661fe98186f57
Well, I added a test. But, the hook in bug 962300 (as pointed out by glandium) is more robust than this hook.

Since prevent_broken_csets is only deployed on Aurora, I think we should deactivate the hook, delete it from source control, and finish up bug 962300 instead. It makes little sense to make to have this hook only deployed on aurora. Let's remove the server upgrade blocker and deal with bug 962300 later.
Let's just plan on moving forward with the deletion and eventual deployment of bug 962300's code until someone says otherwise.
Blocks: 962300
Summary: prevent_broken_csets hook untested and doing wonky things → Remove prevent_broken_csets hook
Attachment #8510738 - Flags: review?(mh+mozilla)
/r/303 - hghooks: remove prevent_broken_csets hook (bug 1075275)

Pull down this commit:

hg pull review -r d10a4587c97214952f1b0c0963e75ff7c92e566e
(In reply to Gregory Szorc [:gps] from comment #8)
> /r/303 - hghooks: remove prevent_broken_csets hook (bug 1075275)
> 
> Pull down this commit:
> 
> hg pull review -r d10a4587c97214952f1b0c0963e75ff7c92e566e

... review board won't accept my bmo login/password.
Attachment #8510738 - Flags: review?(mh+mozilla) → review+
bkero: please remove all traces of prevent_broken_csets from production and resolve this bug. (I think it is just mozilla-aurora, but my processes may not be as robust as yours.)
Flags: needinfo?(bkero)
Whiteboard: [kanban:engops:https://kanbanize.com/ctrl_board/6/276] → [kanban:engops:https://mozilla.kanbanize.com/ctrl_board/6/675] [kanban:engops:https://kanbanize.com/ctrl_board/6/276]
Whiteboard: [kanban:engops:https://mozilla.kanbanize.com/ctrl_board/6/675] [kanban:engops:https://kanbanize.com/ctrl_board/6/276] → [kanban:engops:https://mozilla.kanbanize.com/ctrl_board/6/680] [kanban:engops:https://kanbanize.com/ctrl_board/6/276]
Whiteboard: [kanban:engops:https://mozilla.kanbanize.com/ctrl_board/6/680] [kanban:engops:https://kanbanize.com/ctrl_board/6/276] → [kanban:engops:https://mozilla.kanbanize.com/ctrl_board/6/680]
This bug slipped through the cracks.

The hook was only installed on mozilla-aurora. I removed it.
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Flags: needinfo?(bkero)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: