Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(308)

Issue 2512563002: Add WPTEXPORT footer automatically in DepsUpdater and imported/PRESUBMIT (Closed)

Created:
4 years, 1 month ago by jeffcarp
Modified:
4 years ago
Reviewers:
qyearsley, foolip
CC:
blink-reviews, blink-reviews-w3ctests_chromium.org, chromium-reviews, Dirk Pranke, tfarina
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add WPTEXPORT footer automatically in DepsUpdater and imported/PRESUBMIT BUG=657117 WPTEXPORT=false

Patch Set 1 #

Total comments: 11
Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -3 lines) Patch
A third_party/WebKit/LayoutTests/imported/PRESUBMIT.py View 1 chunk +25 lines, -0 lines 8 comments Download
A third_party/WebKit/LayoutTests/imported/PRESUBMIT_test.py View 1 chunk +51 lines, -0 lines 3 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/w3c/deps_updater.py View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/w3c/deps_updater_unittest.py View 2 chunks +4 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (4 generated)
jeffcarp
Looks like it's working, it automatically added WPTEXPORT=true to this CL because it modifies files ...
4 years, 1 month ago (2016-11-17 00:02:31 UTC) #4
qyearsley
Looks good - many presubmits don't have tests, but I think it's nice to have ...
4 years, 1 month ago (2016-11-17 00:23:27 UTC) #6
foolip
https://codereview.chromium.org/2512563002/diff/1/third_party/WebKit/LayoutTests/imported/PRESUBMIT.py File third_party/WebKit/LayoutTests/imported/PRESUBMIT.py (right): https://codereview.chromium.org/2512563002/diff/1/third_party/WebKit/LayoutTests/imported/PRESUBMIT.py#newcode9 third_party/WebKit/LayoutTests/imported/PRESUBMIT.py:9: """git cl upload will call this hook after the ...
4 years, 1 month ago (2016-11-17 09:59:14 UTC) #7
qyearsley
https://codereview.chromium.org/2512563002/diff/1/third_party/WebKit/LayoutTests/imported/PRESUBMIT.py File third_party/WebKit/LayoutTests/imported/PRESUBMIT.py (right): https://codereview.chromium.org/2512563002/diff/1/third_party/WebKit/LayoutTests/imported/PRESUBMIT.py#newcode11 third_party/WebKit/LayoutTests/imported/PRESUBMIT.py:11: This hook adds WPTEXPORT=true to a CL if it ...
4 years, 1 month ago (2016-11-17 17:44:50 UTC) #8
jeffcarp
Re: qyearsley's comment - maybe it makes sense just to have the export script look ...
4 years, 1 month ago (2016-11-17 20:49:58 UTC) #9
foolip
https://codereview.chromium.org/2512563002/diff/1/third_party/WebKit/LayoutTests/imported/PRESUBMIT.py File third_party/WebKit/LayoutTests/imported/PRESUBMIT.py (right): https://codereview.chromium.org/2512563002/diff/1/third_party/WebKit/LayoutTests/imported/PRESUBMIT.py#newcode11 third_party/WebKit/LayoutTests/imported/PRESUBMIT.py:11: This hook adds WPTEXPORT=true to a CL if it ...
4 years, 1 month ago (2016-11-17 20:52:34 UTC) #10
jeffcarp
4 years ago (2016-11-28 17:33:24 UTC) #11
Message was sent while issue was closed.
On 2016/11/17 at 20:52:34, foolip wrote:
>
https://codereview.chromium.org/2512563002/diff/1/third_party/WebKit/LayoutTe...
> File third_party/WebKit/LayoutTests/imported/PRESUBMIT.py (right):
> 
>
https://codereview.chromium.org/2512563002/diff/1/third_party/WebKit/LayoutTe...
> third_party/WebKit/LayoutTests/imported/PRESUBMIT.py:11: This hook adds
WPTEXPORT=true to a CL if it doesn't already exist. This is
> On 2016/11/17 20:49:58, jeffcarp wrote:
> > On 2016/11/17 at 17:44:50, qyearsley wrote:
> > > On 2016/11/17 at 09:59:14, foolip wrote:
> > > > Whether this is useful depends on what you intend for the export script
to
> > do. If it finds a change in LT/imported/wpt/ with no WPTEXPORT flag, what
will
> > it do? That will still happen, e.g. if there's a sheriff revert using
> > NOPRESUBMIT=true.
> > > > 
> > > > Maybe that situation would require human intervention?
> > > 
> > > I think I'd expect that the default would be for the exporter to try to
export
> > if there's no WPTEXPORT flag given.
> > > 
> > > In this case, another way that this could be done would be to not add the
flag
> > in the presubmit, but check for a flag "NOEXPORT=true" added to import CLs,
and
> > optionally added to other CLs. That way is pretty consistent with the way
that
> > NOTRY and NOPRESUBMIT are, as a means of disabling a default behavior.
> > 
> > That sounds like a cleaner way of implementing this behavior - and it
requires
> > no modifications to the presubmit process, only modifications to the export
> > script.
> 
> Yeah, that sounds good. I was thinking WPTEXPORT=false to avoid the negation,
but NOEXPORT=true would fit nicely in with existing flags, so let's do that. Not
sure if there's a "flag owner", but might be worth checking who added some
existing flags and if they think the name is good.

Closing this CL in favor of adding NOEXPORT=true automatically in the WPT
importer.

Powered by Google App Engine
This is Rietveld 408576698