IPC presubmit check won't allow uploading to WIP CLs |
|||
Issue descriptionWhat steps will reproduce the problem? (1) Create a patch touching IPC/Mojo files, such as components/autofill/content/public/cpp/autofill_types_struct_traits.h. (2) Use git cl upload to upload the patch to code review site, without selecting any reviewers first. What is the expected output? That the upload succeeds unless the code changes contain some clear error. What do you see instead? The presubmit script aborts with the error: "Found changes to IPC files without a security OWNER!" More notes: I usually do not add reviewers to the CL until it is ready for review. The presubmit script made me to use --bypass-hooks, which I do not like, because it masks other potential and useful errors. This would ideally be just a warning, not an error. A malicious person can bypass the hooks anyway, and everyone else can read the warning.
,
Jul 11 2016
I suppose we can make it a warning at upload time and a hard error at submit time. yes, you can obviously bypass it but the idea is to make it harder to bypass accidentally (i don't know if a presubmit warning on the bots will actually block the CQ, for example)
,
Jul 11 2016
Thanks, a warning at upload time and a hard error at submit time would be awesome. I get the point with avoiding accidents, but the need for using --bypass-hooks can postpone noticing other issues until submit time. My problem with this error is that it is not actionable at the moment it fires (cannot add reviewers until I want them to review).
,
Jul 11 2016
https://codereview.chromium.org/2135103002 in flight to implement #2.
,
Jul 11 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/f5ce3bf9ba864291012a0d8998f1cf07d7508c16 commit f5ce3bf9ba864291012a0d8998f1cf07d7508c16 Author: vabr <vabr@chromium.org> Date: Mon Jul 11 14:52:41 2016 Make the IPC OWNERS check a warning until landing The _CheckIpcOwners check is currently an error even at non-submit time. This makes it hard to upload changes before the patch is ready for review. Following the discussion on the bug, this CL makes that check a warning unless it is happening at submit time, in which case it remains an error. BUG= 625975 Review-Url: https://codereview.chromium.org/2135103002 Cr-Commit-Position: refs/heads/master@{#404657} [modify] https://crrev.com/f5ce3bf9ba864291012a0d8998f1cf07d7508c16/PRESUBMIT.py
,
Jul 11 2016
Thanks for your support and review, dcheng! :) |
|||
►
Sign in to add a comment |
|||
Comment 1 by vabr@chromium.org
, Jul 6 2016Status: Assigned (was: Untriaged)