Closed
Bug 1422487
Opened 7 years ago
Closed 7 years ago
Fix the FTL whitelist checks reviewers to pendically, should ignore case; and doesn't run on autoland
Categories
(Developer Services :: Mercurial: hg.mozilla.org, defect)
Developer Services
Mercurial: hg.mozilla.org
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: aryx, Assigned: Pike)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 1 obsolete file)
No merges from autoland to central until the issue has been fixed or the hook disabled (again).
Merges with .ftl files still get rejected by the server after bug 1416366 got deployed earlier this week. Haven't check if this also applies to backouts.
Code: https://github.com/mozilla/version-control-tools/blob/7e7d2084fe3b358f76daceed7022324ecd02933b/hghooks/mozhghooks/check/prevent_ftl_changes.py#L56
Change with .ftl files: https://hg.mozilla.org/integration/autoland/rev/81cef8fbd704f73061c97f0940ef335d9242e1ac
Sheriffs tried to merge https://hg.mozilla.org/integration/autoland/rev/da64771ef8457997534d1b612388443ae3894c27 with central at https://hg.mozilla.org/mozilla-central/rev/0a559782a53a0d27424d3ec0c7f8a942ead597d7 but got the message that this needs review by one of the four people on the whitelist.
Flags: needinfo?(gps)
Assignee | ||
Comment 1•7 years ago
|
||
So, there are a couple of things.
The thing that busts the hook, is that this patch has an r=Pike, and pike is on the whitelist. I've got a test locally that validates that.
Which also means that the hook isn't running on autoland, which is concerning. gps?
And we should probably improve the test to exclude test files.
Comment hidden (mozreview-request) |
Assignee | ||
Comment 3•7 years ago
|
||
Not sure if the upper-lower-case part here should be more generic, or something we handle on a case-by-case basis.
But this has a test that failed with an r=Pike before the fix, and now passes.
Summary: Fix the FTL whitelist hook to skip merges → Fix the FTL whitelist checks reviewers to pendically, should ignore case; and doesn't run on autoland
Comment 4•7 years ago
|
||
Thank you Axel for stepping in. I'm unfortunately not going to be in front of a keyboard till tomorrow.
Why is the parse_requal_reviewers case sensitive at all? It seems like it shouldn't be, not just for our use case?
Assignee | ||
Comment 5•7 years ago
|
||
glob can probably answer these questions, too, giving this more coverage. And/or do the review.
Flags: needinfo?(glob)
i think zibi is right - `parse_reviewers` (which `parse_requal_reviewers` calls) should normalise returned reviewers to lowercase. i'm surprised this hasn't bit us sooner.
Flags: needinfo?(glob)
Assignee | ||
Comment 7•7 years ago
|
||
Actually, for the reviewer and reviewers templates, we probably want to preserve casing? OTH, for the revsets, ignoring case might be a good feature.
I think it'd be good to take the existing patch as a bustage fix so that we can merge autoland again.
Also, still wondering why this wasn't kicking in on autoland to begin with.
Component: Internationalization → Mercurial: hg.mozilla.org
Product: Core → Developer Services
Comment hidden (mozreview-request) |
Comment hidden (obsolete) |
Comment hidden (mozreview-request, obsolete) |
Updated•7 years ago
|
Attachment #8934145 -
Attachment is obsolete: true
Attachment #8934145 -
Flags: review?(gps)
Comment 11•7 years ago
|
||
FYI this is holding up the WebRTC landing calendar [1]. We have patches scheduled to land all week, coordinated to land on different days for QA, and we're currently blocking on this from Friday (bug 1363667 comment 158 and bug 1388219 comment 73), and more landings due today (bug 1397793) and on (see link).
[1] https://docs.google.com/document/d/13tc3fTfoaE36fmThkAnKpwSFmkSff9wF63Ozuw7O25A/
Comment 12•7 years ago
|
||
mozreview-review |
Comment on attachment 8933885 [details]
hooks: check reviewers case-independently (bug 1422487),
https://reviewboard.mozilla.org/r/204822/#review210734
Attachment #8933885 -
Flags: review?(gps) → review+
Comment 13•7 years ago
|
||
Pushed by gszorc@mozilla.com:
https://hg.mozilla.org/hgcustom/version-control-tools/rev/81e4d2af9520
hooks: check reviewers case-independently , r=gps
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 15•7 years ago
|
||
I've filed bugs 1423538, 1423542, 1423543 on the sub issues of autoland, commitparser, and test files, resp.
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → l10n
You need to log in
before you can comment on or make changes to this bug.
Description
•