Open Bug 1182642 Opened 8 years ago Updated 5 years ago
DOM peer commit hook doesn't accept r=foo,r=webidlpeer
(Developer Services :: Mercurial: hg.mozilla.org, defect)
(Reporter: bholley, Unassigned)
40 bytes, text/x-review-board-request
I had this problem in bug 1180921 (see bug 1180921 comment 33). The string in  looks like it at least tries to handle this case, at least.  https://hg.mozilla.org/hgcustom/version-control-tools/file/3cc77a4359bf/hghooks/mozhghooks/prevent_webidl_changes.py
8 years ago
Oh look, more one-off code that does reviewer parsing. We should consolidate around https://hg.mozilla.org/hgcustom/version-control-tools/file/45f5a094da62/pylib/mozautomation/mozautomation/commitparser.py, as that is what's used in MozReview, hg.mozilla.org web view, mozext, etc.
hghooks: use commitparser.py in prevent_webidl_changes.py (bug 1182642) The prevent_webidl_changes hook had its own custom way of scraping out commit reviewers, which doesn't work in certain cases. We already have commitparser.py, so lets just use it instead.
For whatever reason, I'm unable to run ./create-test-environment, so I have no idea if this works or not. If anyone knows how to deal with the following error, I'm all ears: The repository located at downloads.reviewboard.org is not a trusted or secure host and is being ignored. If this repository is available via HTTPS it is recommended to use HTTPS instead, otherwise you may silence this warning and allow it anyways with '--trusted-host downloads.reviewboard.org'.
Assignee: nobody → wkocher
8 years ago
Comment on attachment 8646729 [details] MozReview Request: hghooks: use commitparser.py in prevent_webidl_changes.py (bug 1182642) https://reviewboard.mozilla.org/r/15865/#review14631 While this patch will get the job done, unfortunately, we can't import mozautomation from the hooks because its directory isn't importable. We can't even easily do hacks like look for ../../pylib/mozautomation because the hooks are run out of various directories on the server machine. Well, we could hard-code some paths. But it is very hacky and prone to breakage. And... I've been working on establishing a more unified environment on the servers for executing hooks. If you wait a few weeks, we can potentially take this patch as is. If this fix is urgent, we can always copy the mozautomation code for commit message parsing into this hook and clean it up later. I hate DRY violations. But given the state the server is in, I prefer it.
Happy to leave this for later.
7 years ago
QA Contact: hwine → klibby
5 years ago
Assignee: kwierso → nobody
You need to log in before you can comment on or make changes to this bug.