Stop removing TestExpectations from model that won't run on the shard
This removal was done in 238f6ccc which claims it was to remove the not-run tests from the shard bot's output. The list of TestExpectations no longer appear to affect the output, as only the list of tests to be run on the shard appear in the output.json file. After building the model of 80000 TestExpectations, we then go through them all removing tests that are not going to run on the bot. To do so we do O(TestExpectations * TestsNotRunningOnBot) which is like O(100k * 100k) so it is very slow. Locally, not doing this saves 31 of the 46 seconds spent during startup between: 16:14:54.439 117357 Collecting tests ... ... 16:15:40.689 117357 Found 3626 tests (total 86597); running 3388, skipping 238. On windows bots we see this time go from 65 seconds to 28 seconds, saving 37 seconds, or another 60% of the test collection startup time. R=robertma@chromium.org Bug: 982208 Change-Id: I0570cc5610f296b3f5850973f02fb85946ebaf38 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1913165 Commit-Queue: danakj <danakj@chromium.org> Reviewed-by:Dirk Pranke <dpranke@chromium.org> Reviewed-by:
Robert Ma <robertma@chromium.org> Cr-Commit-Position: refs/heads/master@{#714941}
Showing
Please register or sign in to comment