Thanks for your time!Cheers, Weizhong
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CADXrSiprRWy_UCC0w2oohbSGGTbeP%3DdkyYnBOx7j8Y-abDSe2A%40mail.gmail.com.
ikilpatrick-macbookpro:src ikilpatrick$ touch third_party/blink/web_tests/external/wpt/css/css-tables/test.html
ikilpatrick-macbookpro:src ikilpatrick$ time third_party/blink/tools/collect_web_tests.py external/wpt
real 0m40.492s
user 0m23.007s
sys 0m41.715s
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAEoffTAc389E6wteVXUAuKX8ZBFWBa2UEMwAbd9oCxJ9pxNCKQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAJL3UpS64fRvbJLf%2B3uFA_6UDgXoLWgUFGZSN7mAsVFOrP8syA%40mail.gmail.com.
So I was a little surprised by this last night.
1. This was relatively slow on my macbook, running locally takes ~40s. From just now:ikilpatrick-macbookpro:src ikilpatrick$ touch third_party/blink/web_tests/external/wpt/css/css-tables/test.html
ikilpatrick-macbookpro:src ikilpatrick$ time third_party/blink/tools/collect_web_tests.py external/wpt
real 0m40.492s
user 0m23.007s
sys 0m41.715s
2. I had a bunch of uncommitted tests in various wpt directories that I needed to move out to somewhere else (rather than the script just adding committed tests).
(I'd also note that uploading patches is already relatively slow, do we have metrics for how long developers are waiting for upload scripts to run? - I suspect this is due to WPT presubmit scripts but unsure)
Running collect_web_tests on external/wpt is kind of slow, because we need to generate wpt manifest first. Running that on other folders will be fast. And I will take a look to see if there is room for improvement.One thing worth mentioning is that if the change in external/wpt is meant to be exported to upstream, you can ignore the presubmit check warning. (Should have mentioned this in the PSA).
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CADXrSipBCHvjwf-AA1DGHUVjVzKQka5bBvTBnSRx5sEUpnJN_Q%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAM0wra9B-aZTjoovP1WGDL80od64CtEL30jM8ch-2Pm_cd9Log%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CADXrSipBCHvjwf-AA1DGHUVjVzKQka5bBvTBnSRx5sEUpnJN_Q%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAEoffTA0pg5V92k-6gOORv5J%3DOiNVEuDH6VyW2tKTKjdd2uK%2BA%40mail.gmail.com.
I'm not entirely sure why you think this would be preferable to do inside GN.I can see the thinking that says "this is where we list everything else that is needed at runtime" (and that makes sense to me), but are there other reasons?
On Tue, Aug 17, 2021 at 1:31 PM Dirk Pranke <dpr...@google.com> wrote:I'm not entirely sure why you think this would be preferable to do inside GN.I can see the thinking that says "this is where we list everything else that is needed at runtime" (and that makes sense to me), but are there other reasons?I would expect it to ~eliminate the running cost of collecting tests from the filesystem, while also avoiding the introduction of yet another generated file to be checked in (probably with lots of contention).
It's work that can be done at build time, but only if we have sufficient build metadata.