Bug 212362 - Add watchlist comment for patches touching imported WPT tests.
Summary: Add watchlist comment for patches touching imported WPT tests.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Carlos Alberto Lopez Perez
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-05-25 15:02 PDT by Carlos Alberto Lopez Perez
Modified: 2020-06-01 09:06 PDT (History)
12 users (show)

See Also:


Attachments
Patch (3.23 KB, patch)
2020-05-25 15:09 PDT, Carlos Alberto Lopez Perez
no flags Details | Formatted Diff | Diff
Patch (3.22 KB, patch)
2020-05-25 15:14 PDT, Carlos Alberto Lopez Perez
no flags Details | Formatted Diff | Diff
Patch (3.25 KB, patch)
2020-05-26 08:17 PDT, Carlos Alberto Lopez Perez
youennf: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Carlos Alberto Lopez Perez 2020-05-25 15:02:55 PDT
When a WebKit patch touches the imported WPT tests there is a currently script that runs automatically offering to export this changes to the WPT repository.
However this script fails sometimes to create the corresponding WPT PR.

I think it will be useful that we add a style-check trigger so it comments on bugzilla with a link to the wiki with the information about how the export process for WPT tests works.

I have documented how this process works here: https://trac.webkit.org/wiki/WPTExportProcess
Comment 1 Carlos Alberto Lopez Perez 2020-05-25 15:09:35 PDT
Created attachment 400222 [details]
Patch
Comment 2 EWS Watchlist 2020-05-25 15:10:38 PDT
This patch modifies the imported web-platform-tests. Please ensure that any changes on the tests are exported to WPT. Please see https://trac.webkit.org/wiki/WPTExportProcess
Comment 3 Carlos Alberto Lopez Perez 2020-05-25 15:14:33 PDT
Created attachment 400223 [details]
Patch
Comment 4 youenn fablet 2020-05-26 06:21:42 PDT
Comment on attachment 400223 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=400223&action=review

> Tools/Scripts/webkitpy/common/config/watchlist:481
> +        "WebPlatformTests": [ "This patch modifies the imported web-platform-tests. Please ensure that any changes on the tests are exported to WPT. Please see https://trac.webkit.org/wiki/WPTExportProcess" ],

Is there a way to not have this message in case only -expected.txt files are changed?
Also, it might be a bit annoying for patches that are resending from upstream.
Will it happen for every patch being uploaded?
Comment 5 Carlos Alberto Lopez Perez 2020-05-26 08:14:01 PDT
(In reply to youenn fablet from comment #4)
> Comment on attachment 400223 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=400223&action=review
> 
> > Tools/Scripts/webkitpy/common/config/watchlist:481
> > +        "WebPlatformTests": [ "This patch modifies the imported web-platform-tests. Please ensure that any changes on the tests are exported to WPT. Please see https://trac.webkit.org/wiki/WPTExportProcess" ],
> 
> Is there a way to not have this message in case only -expected.txt files are
> changed?

Yes, I think I can use a negative lookahead regex expression to exclude -expected.txt from the list.

Good idea.


> Also, it might be a bit annoying for patches that are resending from
> upstream.
> Will it happen for every patch being uploaded?

I think it will only comment once (once per bug). It won't comment again on the same bug (even if you upload new patches to the bug).
Comment 6 Carlos Alberto Lopez Perez 2020-05-26 08:17:05 PDT
Created attachment 400248 [details]
Patch
Comment 7 Carlos Alberto Lopez Perez 2020-05-29 08:03:03 PDT
Is this ok now? r?
Comment 8 youenn fablet 2020-05-29 08:06:53 PDT
Comment on attachment 400248 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=400248&action=review

> Tools/Scripts/webkitpy/common/config/watchlist:460
> +        "WebPlatformTests": [ "clopez@igalia.com" ],

Can you add youennf@gmail.com as well?

> Tools/Scripts/webkitpy/common/config/watchlist:481
> +        "WebPlatformTests": [ "This patch modifies the imported web-platform-tests. Please ensure that any changes on the tests are exported to WPT. Please see https://trac.webkit.org/wiki/WPTExportProcess" ],

s/the imported web-platform-tests/imported WPT tests/
Comment 9 Carlos Alberto Lopez Perez 2020-05-29 08:41:12 PDT
(In reply to youenn fablet from comment #8)
> Comment on attachment 400248 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=400248&action=review
> 
> > Tools/Scripts/webkitpy/common/config/watchlist:460
> > +        "WebPlatformTests": [ "clopez@igalia.com" ],
> 
> Can you add youennf@gmail.com as well?
> 
> > Tools/Scripts/webkitpy/common/config/watchlist:481
> > +        "WebPlatformTests": [ "This patch modifies the imported web-platform-tests. Please ensure that any changes on the tests are exported to WPT. Please see https://trac.webkit.org/wiki/WPTExportProcess" ],
> 
> s/the imported web-platform-tests/imported WPT tests/

Ok. Thanks!
Comment 10 Carlos Alberto Lopez Perez 2020-05-29 08:47:48 PDT
Committed r262295: <https://trac.webkit.org/changeset/262295>
Comment 11 Radar WebKit Bug Importer 2020-05-29 08:48:23 PDT
<rdar://problem/63760615>