Closed
Bug 1036374
Opened 10 years ago
Closed 10 years ago
Adding a binary search algorithm for bisection of failing tests
Categories
(Testing :: Mochitest, defect)
Testing
Mochitest
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla33
People
(Reporter: vaibhav1994, Assigned: vaibhav1994, Mentored)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 1 obsolete file)
8.22 KB,
patch
|
vaibhav1994
:
review+
|
Details | Diff | Splinter Review |
Right now we have a reverse search algorithm for bisection of mochitests. Reverse search does well when the previous tests causing the failure are quite close to the failing test, however binary search algorithm will do better when the previous tests causing the failure will be far away.
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → vaibhavmagarwal
Updated•10 years ago
|
Assignee | ||
Comment 1•10 years ago
|
||
The binary search algorithm to determine the cause of failing test. Try run: https://tbpl.mozilla.org/?tree=Try&rev=0a6914b91de6
Attachment #8453155 -
Flags: review?(jmaher)
Comment 2•10 years ago
|
||
Comment on attachment 8453155 [details] [diff] [review] binarysearch.patch Review of attachment 8453155 [details] [diff] [review]: ----------------------------------------------------------------- overall this looks great. Just a single suggestion for cleaning up your code ever so slightly. ::: testing/mochitest/bisection.py @@ +160,5 @@ > + return self.contents['testsToRun'] > + if self.contents['loop'] == 1: > + self.contents['loop'] += 1 > + self.contents['testsToRun'] = [self.contents['tests'][-1]] > + return self.contents['testsToRun'] if self.contents['loop'] <= 1: #assuming this cannot be -1 self.contents['testsToRun'] = [self.contents['tests']] if self.contents['loop'] == 1: self.contents['testsToRun'] = [self.contents['tests'][-1]] self.contents['loop'] += 1 return self.contents['testsToRun']
Attachment #8453155 -
Flags: review?(jmaher) → review+
Assignee | ||
Comment 3•10 years ago
|
||
Fixed the nit pointed by jmaher in reverse search and binary search. Thanks!
Attachment #8453155 -
Attachment is obsolete: true
Attachment #8453280 -
Flags: review+
Assignee | ||
Updated•10 years ago
|
Keywords: checkin-needed
Comment 4•10 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/ab7e8e8c1e00
Keywords: checkin-needed
Comment 5•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/ab7e8e8c1e00
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla33
You need to log in
before you can comment on or make changes to this bug.
Description
•