Closed Bug 1283798 Opened 5 years ago Closed 5 years ago

Autoland does not respect webidl mozhook

Categories

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

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: cbook, Assigned: gps)

Details

In http://hg.mozilla.org/hgcustom/version-control-tools/file/tip/hghooks/mozhghooks/prevent_webidl_changes.py we have the hook to prevent webidl changes without dom peer review.

I was working on merging autoland to mozilla-central when i got the warning that the push failed because of webidl change without peer review.

Or to be concret "WebIDL file %s altered in changeset %s without DOM peer review\n" :)

So it seems that the mozreview autolander does not respect or override this hook ?
gps: can you take a look, i guess we need to get this fixed, since overriding the hooks is i guess not such a good idea.

Btw the bug in question that caused the warning is https://bugzilla.mozilla.org/show_bug.cgi?id=1280545
Flags: needinfo?(gps)
I'll look into this.
Assignee: nobody → gps
Status: NEW → ASSIGNED
Component: General → Mercurial: hg.mozilla.org
QA Contact: hwine
Pushed by gszorc@mozilla.com:
https://hg.mozilla.org/hgcustom/version-control-tools/rev/86d0ea4d39d1
ansible/hg-ssh: add scm_autoland as a trusted group
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
The hook was installed but I'm pretty sure the issue was the hgrc file wasn't getting loaded due to a file ownership/trust issue. I'm deploying a fix now.
Flags: needinfo?(gps)
problem is now that this still block the merge to m-c because of the bug that cause the hg hook warning (sent a separate mail)
Status: RESOLVED → REOPENED
Flags: needinfo?(gps)
Resolution: FIXED → ---
I merged 2ba942ea44b0 from autoland into central and pushed with the WebIDL hook disabled on the server. I just saw Carsten's email saying I should merge aeb0f07f395ef8d829697d1062f2832b747ca5a8 (which is 3 changesets after 2ba942ea44b0). Someone can do that merge if they are so inclined. 

I ran Bugherder, so hopefully all bugs are resolved.

I did not merge autoland into other repos or merge central into autoland. I'll leave it up to the pros to do that.
Status: REOPENED → RESOLVED
Closed: 5 years ago5 years ago
Flags: needinfo?(gps)
Resolution: --- → FIXED
Ugh. A typo in the .hgrc was causing hooks to not load. (The "[hooks]" section header was missing.)

The issue is now fixed.

Some changed did sneak in without DOM peer review:

remote: ************************** ERROR ****************************
remote:
remote: WebIDL file dom/webidl/BrowserElementAudioChannel.webidl altered in changeset 04420d139399 without DOM peer review
remote: WebIDL file dom/webidl/KillSwitch.webidl altered in changeset f00d45823516 without DOM peer review
remote: WebIDL file dom/webidl/Navigator.webidl altered in changeset 1a5c34f5aa20 without DOM peer review
remote: WebIDL file dom/webidl/ActivityRequestHandler.webidl altered in changeset 069a431e7053 without DOM peer review
remote: WebIDL file dom/webidl/MozActivity.webidl altered in changeset 069a431e7053 without DOM peer review
remote:
remote:
remote: Changes to WebIDL files in this repo require review from a DOM peer in the form of r=...
remote: This is to ensure that we behave responsibly with exposing new Web APIs. We appreciate your understanding..

Off to a DOM peer to audit the changes.
Flags: needinfo?(khuey)
Those all look fine. retroactive-r=me.
Flags: needinfo?(khuey)
You need to log in before you can comment on or make changes to this bug.