Bug 186062

Summary: CommitSet range bisector should use commits occur in commit sets which specify the range as valid commits for commits without ordering.
Product: WebKit Reporter: dewei_zhu
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: dewei_zhu, ews-watchlist, rniwa
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
rniwa: review+, ews-watchlist: commit-queue-
Archive of layout-test-results from ews201 for win-future none

Description dewei_zhu 2018-05-29 14:56:39 PDT
CommitSet range bisector should use commits occur in commit sets which specify the range as valid commits for commits without ordering.
Comment 1 dewei_zhu 2018-05-29 14:59:55 PDT
Created attachment 341522 [details]
Patch
Comment 2 Ryosuke Niwa 2018-05-29 15:08:39 PDT
Comment on attachment 341522 [details]
Patch

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

> Websites/perf.webkit.org/ChangeLog:8
> +        For commits without ordering, we should use the commits occurs in the commit sets which specify the range as valid commits.

What do you mean by "the commits occurs in the commit sets"?
Comment 3 dewei_zhu 2018-06-01 14:36:56 PDT
Comment on attachment 341522 [details]
Patch

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

>> Websites/perf.webkit.org/ChangeLog:8
>> +        For commits without ordering, we should use the commits occurs in the commit sets which specify the range as valid commits.
> 
> What do you mean by "the commits occurs in the commit sets"?

Let's say we cannot order commits for WebKit (r100, r102) due to lack of commit time and commit order. Then we should make sure any commit set get chosen, the commit for WebKit should be either r100 or r102.
Comment 4 Ryosuke Niwa 2018-06-01 15:05:03 PDT
Comment on attachment 341522 [details]
Patch

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

>>> Websites/perf.webkit.org/ChangeLog:8
>>> +        For commits without ordering, we should use the commits occurs in the commit sets which specify the range as valid commits.
>> 
>> What do you mean by "the commits occurs in the commit sets"?
> 
> Let's say we cannot order commits for WebKit (r100, r102) due to lack of commit time and commit order. Then we should make sure any commit set get chosen, the commit for WebKit should be either r100 or r102.

We should probably order lexicologically by the revision / commit hash / version number in that case. 
If the order changes from time to time, that could spell a disaster.
Comment 5 dewei_zhu 2018-06-05 21:11:19 PDT
Created attachment 342028 [details]
Patch
Comment 6 Ryosuke Niwa 2018-06-05 21:34:03 PDT
Comment on attachment 342028 [details]
Patch

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

r=me assuming you fix the comparator & add a unit test.

> Websites/perf.webkit.org/public/v3/commit-set-range-bisector.js:104
> +                return firstCommit.revision() < secondCommit.revision();

This can't be write. We need to be returning 0, -1, or 1.
Please add a test case which catches this bug.
Comment 7 EWS Watchlist 2018-06-05 23:10:37 PDT
Comment on attachment 342028 [details]
Patch

Attachment 342028 [details] did not pass win-ews (win):
Output: http://webkit-queues.webkit.org/results/8026194

New failing tests:
http/tests/security/canvas-remote-read-remote-video-blocked-no-crossorigin.html
Comment 8 EWS Watchlist 2018-06-05 23:10:49 PDT
Created attachment 342035 [details]
Archive of layout-test-results from ews201 for win-future

The attached test failures were seen while running run-webkit-tests on the win-ews.
Bot: ews201  Port: win-future  Platform: CYGWIN_NT-6.1-2.9.0-0.318-5-3-x86_64-64bit