Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(294)

Issue 664753002: Refactored auto_bisect bot (Closed)

Created:
6 years, 2 months ago by Sergiy Byelozyorov
Modified:
6 years, 2 months ago
Reviewers:
qyearsley
CC:
chromium-reviews, RobertoCN, prasadv
Base URL:
https://chromium.googlesource.com/chromium/src.git/+/master
Project:
chromium
Visibility:
Public.

Description

Refactored auto_bisect bot: - Extracted BisectPrinter, which contains everything related to printing - Extracted BisectState and RevisionState, which represent bisect-in-progress - Rewrote BisectResults - in particular split up GetRevisionDict, which is now its constructor - Added tests for BisectResults, fixed bugs in _FindOtherRegressions - Added tests for BisectState R=qyearsley@chromium.org Committed: https://crrev.com/cfc4b1f15ce8285cb5b902bc8851ee7f29664308 Cr-Commit-Position: refs/heads/master@{#300677}

Patch Set 1 #

Patch Set 2 : #

Total comments: 28

Patch Set 3 : Addressed comments #

Patch Set 4 : Added tests and fixed some bugs #

Total comments: 1

Patch Set 5 : Rebase #

Patch Set 6 : Addressed comments #

Patch Set 7 : Extracted all constants into bisect_constants.py to avoid importing loops #

Patch Set 8 : Moved PrintPartialResults to BisectPrinter #

Patch Set 9 : Corrected and improved Bisection Range step names #

Total comments: 3

Patch Set 10 : Addressed comments #

Patch Set 11 : Removed last bits of revision_data #

Patch Set 12 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1271 lines, -1037 lines) Patch
M tools/auto_bisect/bisect_perf_regression.py View 1 2 3 4 5 6 7 8 9 10 11 40 chunks +172 lines, -722 lines 0 comments Download
M tools/auto_bisect/bisect_perf_regression_test.py View 1 2 3 4 5 6 7 8 9 7 chunks +18 lines, -87 lines 0 comments Download
A tools/auto_bisect/bisect_printer.py View 1 2 3 4 5 6 7 8 9 10 1 chunk +392 lines, -0 lines 0 comments Download
M tools/auto_bisect/bisect_results.py View 1 2 3 4 5 6 7 8 9 10 3 chunks +207 lines, -204 lines 0 comments Download
M tools/auto_bisect/bisect_results_test.py View 1 2 3 4 5 6 7 8 9 10 1 chunk +242 lines, -24 lines 0 comments Download
A tools/auto_bisect/bisect_state.py View 1 2 3 1 chunk +99 lines, -0 lines 0 comments Download
A tools/auto_bisect/bisect_state_test.py View 1 2 3 1 chunk +31 lines, -0 lines 0 comments Download
M tools/auto_bisect/bisect_utils.py View 1 2 3 4 5 6 7 8 9 1 chunk +110 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (2 generated)
Sergiy Byelozyorov
6 years, 2 months ago (2014-10-20 22:45:41 UTC) #2
qyearsley
This is excellent. We'll definitely want unit tests for these classes, and it might be ...
6 years, 2 months ago (2014-10-21 05:09:11 UTC) #3
Sergiy Byelozyorov
On 2014/10/21 05:09:11, qyearsley wrote: > We'll definitely want unit tests for these classes, and ...
6 years, 2 months ago (2014-10-21 12:27:43 UTC) #4
Sergiy Byelozyorov
Forgot replies to comments. https://codereview.chromium.org/664753002/diff/20001/tools/auto_bisect/bisect_perf_regression.py File tools/auto_bisect/bisect_perf_regression.py (right): https://codereview.chromium.org/664753002/diff/20001/tools/auto_bisect/bisect_perf_regression.py#newcode2820 tools/auto_bisect/bisect_perf_regression.py:2820: bisect_printer = BisectPrinter(opts) On 2014/10/21 ...
6 years, 2 months ago (2014-10-21 12:28:05 UTC) #5
Sergiy Byelozyorov
Added test. PTAL
6 years, 2 months ago (2014-10-21 18:54:10 UTC) #6
qyearsley
On 2014/10/21 18:54:10, Sergiy Byelozyorov wrote: > Added test. PTAL LGTM for committing now, all ...
6 years, 2 months ago (2014-10-21 19:29:57 UTC) #7
qyearsley
On 2014/10/21 19:29:57, qyearsley wrote: > On 2014/10/21 18:54:10, Sergiy Byelozyorov wrote: > > Added ...
6 years, 2 months ago (2014-10-21 19:30:48 UTC) #8
qyearsley
On 2014/10/21 19:29:57, qyearsley wrote: > On 2014/10/21 18:54:10, Sergiy Byelozyorov wrote: > > Added ...
6 years, 2 months ago (2014-10-21 19:30:48 UTC) #9
qyearsley
https://codereview.chromium.org/664753002/diff/60001/tools/auto_bisect/bisect_results_test.py File tools/auto_bisect/bisect_results_test.py (right): https://codereview.chromium.org/664753002/diff/60001/tools/auto_bisect/bisect_results_test.py#newcode223 tools/auto_bisect/bisect_results_test.py:223: def testWarningForTooManyCulpritRevisions(self): Too many culprit revisions right now means ...
6 years, 2 months ago (2014-10-21 19:30:59 UTC) #10
qyearsley
lgtm https://codereview.chromium.org/664753002/diff/160001/tools/auto_bisect/bisect_constants.py File tools/auto_bisect/bisect_constants.py (right): https://codereview.chromium.org/664753002/diff/160001/tools/auto_bisect/bisect_constants.py#newcode175 tools/auto_bisect/bisect_constants.py:175: BISECT_MODE_RETURN_CODE = 'return_code' Could these go into bisect_perf_regression.py? ...
6 years, 2 months ago (2014-10-21 23:42:35 UTC) #11
Sergiy Byelozyorov
I am not sure about the results of the tests. None of the errors seem ...
6 years, 2 months ago (2014-10-22 11:27:48 UTC) #12
Sergiy Byelozyorov
I've also noticed that try.py starts a large number of jobs on tryserver that do ...
6 years, 2 months ago (2014-10-22 13:47:21 UTC) #13
Sergiy Byelozyorov
On 2014/10/22 11:27:48, Sergiy Byelozyorov wrote: > I am not sure about the results of ...
6 years, 2 months ago (2014-10-22 13:54:16 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/664753002/220001
6 years, 2 months ago (2014-10-22 13:55:08 UTC) #16
commit-bot: I haz the power
Committed patchset #12 (id:220001)
6 years, 2 months ago (2014-10-22 14:45:50 UTC) #17
commit-bot: I haz the power
6 years, 2 months ago (2014-10-22 14:46:23 UTC) #18
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/cfc4b1f15ce8285cb5b902bc8851ee7f29664308
Cr-Commit-Position: refs/heads/master@{#300677}

Powered by Google App Engine
This is Rietveld 408576698