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

Issue 1610203003: Iteratively increase sample size for good/bad classification. (Closed)

Created:
4 years, 11 months ago by RobertoCN
Modified:
4 years, 9 months ago
CC:
chromium-reviews, infra-reviews+build_chromium.org, kjellander-cc_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/tools/build.git@master
Target Ref:
refs/heads/master
Project:
build
Visibility:
Public.

Description

Iteratively increase sample size for good/bad classification. This change makes the bisect recipe use scipy's implementation of Mann-Whitney's U test to determine if a significant different exists between two given revisions. It also changes the bisection step by requiring more tests to be run when the sample is insufficient to establish a difference between the revision being evaluated and either of the FKBR/LKGR. R=dtu,qyearsley,prasadv BUG=565606 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=298810 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=298830

Patch Set 1 #

Patch Set 2 : Fixing multiple problems #

Total comments: 33

Patch Set 3 : Deprecating repeat count and timeout as params for the bisect job. #

Patch Set 4 : Allowing no timeout on bisect tester. #

Patch Set 5 : Making initial regression check have a timeout. #

Total comments: 10

Patch Set 6 : Addressing last batch of feedback. #

Patch Set 7 : Fixing error importing resources script with no scipy installed. #

Patch Set 8 : Addressed pending feedback, prevent re-downloading when not necessary, fixed some bugs. #

Patch Set 9 : Rebasing. #

Patch Set 10 : Bypassing test that requires scipy on cq bot. #

Total comments: 2

Patch Set 11 : Fixing conda path for windows. Clearing PYTHONPATH. #

Patch Set 12 : Fixing bad rebase. #

Total comments: 1

Patch Set 13 : Fixing return code bisects. #

Patch Set 14 : Rebasing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+756 lines, -202 lines) Patch
M scripts/slave/recipe_modules/auto_bisect/api.py View 1 2 3 4 5 6 7 8 2 chunks +54 lines, -46 lines 0 comments Download
M scripts/slave/recipe_modules/auto_bisect/bisector.py View 1 2 3 4 5 6 7 8 6 chunks +78 lines, -21 lines 0 comments Download
M scripts/slave/recipe_modules/auto_bisect/bisector_test.py View 1 2 3 4 2 chunks +2 lines, -14 lines 0 comments Download
M scripts/slave/recipe_modules/auto_bisect/example.py View 1 2 3 4 7 chunks +8 lines, -8 lines 0 comments Download
M scripts/slave/recipe_modules/auto_bisect/example.expected/android_arm64_bisector.json View 1 2 3 4 5 4 chunks +37 lines, -6 lines 0 comments Download
M scripts/slave/recipe_modules/auto_bisect/example.expected/android_bisector.json View 1 2 3 4 5 4 chunks +37 lines, -6 lines 0 comments Download
M scripts/slave/recipe_modules/auto_bisect/example.expected/basic.json View 1 2 3 4 5 4 chunks +37 lines, -6 lines 0 comments Download
M scripts/slave/recipe_modules/auto_bisect/example.expected/basic_bisect_script.json View 1 2 3 4 5 6 4 chunks +37 lines, -6 lines 0 comments Download
M scripts/slave/recipe_modules/auto_bisect/example.expected/failed_build_test.json View 1 2 3 4 2 chunks +2 lines, -4 lines 0 comments Download
M scripts/slave/recipe_modules/auto_bisect/example.expected/failed_test.json View 1 2 3 4 3 chunks +3 lines, -6 lines 0 comments Download
M scripts/slave/recipe_modules/auto_bisect/example.expected/mac_bisector.json View 1 2 3 4 5 4 chunks +37 lines, -6 lines 0 comments Download
M scripts/slave/recipe_modules/auto_bisect/example.expected/missing_metric_test.json View 1 2 3 4 2 chunks +2 lines, -4 lines 0 comments Download
M scripts/slave/recipe_modules/auto_bisect/example.expected/reversed_basic.json View 1 2 3 4 5 4 chunks +37 lines, -6 lines 0 comments Download
M scripts/slave/recipe_modules/auto_bisect/example.expected/windows_bisector.json View 1 2 3 4 5 4 chunks +37 lines, -6 lines 0 comments Download
M scripts/slave/recipe_modules/auto_bisect/example.expected/windows_x64_bisector.json View 1 2 3 4 5 4 chunks +37 lines, -6 lines 0 comments Download
M scripts/slave/recipe_modules/auto_bisect/perf_revision_state.py View 1 2 3 4 5 6 7 8 9 10 11 12 9 chunks +81 lines, -17 lines 0 comments Download
A scripts/slave/recipe_modules/auto_bisect/resources/significantly_different.py View 1 2 3 4 5 6 7 8 9 10 1 chunk +37 lines, -0 lines 0 comments Download
A scripts/slave/recipe_modules/auto_bisect/resources/significantly_different_inner.py View 1 2 3 4 5 6 1 chunk +49 lines, -0 lines 0 comments Download
A scripts/slave/recipe_modules/auto_bisect/resources/significantly_different_test.py View 1 2 3 4 5 6 7 8 9 1 chunk +38 lines, -0 lines 0 comments Download
M scripts/slave/recipe_modules/auto_bisect/revision_state.py View 1 2 3 4 5 6 7 4 chunks +18 lines, -8 lines 0 comments Download
M scripts/slave/recipe_modules/bisect_tester/api.py View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M scripts/slave/recipe_modules/bisect_tester/perf_test.py View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M scripts/slave/recipes/bisect.expected/basic.json View 1 2 3 4 5 6 6 chunks +76 lines, -8 lines 0 comments Download
M scripts/slave/recipes/bisect.expected/basic_return_code_test.json View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +4 lines, -8 lines 0 comments Download
M scripts/slave/recipes/bisect.expected/broken_bad_revision_test.json View 1 2 3 4 5 6 2 chunks +2 lines, -4 lines 0 comments Download
M scripts/slave/recipes/bisect.expected/broken_good_revision_test.json View 1 2 3 4 5 6 2 chunks +2 lines, -4 lines 0 comments Download

Messages

Total messages: 36 (13 generated)
RobertoCN
Please take a look, this still needs more thorough testing and to make the initial ...
4 years, 11 months ago (2016-01-23 03:07:48 UTC) #1
qyearsley
https://codereview.chromium.org/1610203003/diff/20001/scripts/slave/recipe_modules/auto_bisect/bisector.py File scripts/slave/recipe_modules/auto_bisect/bisector.py (right): https://codereview.chromium.org/1610203003/diff/20001/scripts/slave/recipe_modules/auto_bisect/bisector.py#newcode130 scripts/slave/recipe_modules/auto_bisect/bisector.py:130: 'See json.output for details'] How will this show up ...
4 years, 11 months ago (2016-01-26 19:26:00 UTC) #2
RobertoCN
Addressed all feedback. Also hardcoding 5 as the minimum required sample size. https://codereview.chromium.org/1610203003/diff/20001/scripts/slave/recipe_modules/auto_bisect/bisector.py File scripts/slave/recipe_modules/auto_bisect/bisector.py ...
4 years, 10 months ago (2016-02-01 17:29:51 UTC) #3
qyearsley
LGTM now, probably should wait for feedback from Dave or Prasad before committing.
4 years, 10 months ago (2016-02-02 00:40:41 UTC) #4
RobertoCN
I will test this on my local machine to make sure it works as intended, ...
4 years, 10 months ago (2016-02-03 23:11:45 UTC) #5
dtu
https://codereview.chromium.org/1610203003/diff/20001/scripts/slave/recipe_modules/auto_bisect/perf_revision_state.py File scripts/slave/recipe_modules/auto_bisect/perf_revision_state.py (right): https://codereview.chromium.org/1610203003/diff/20001/scripts/slave/recipe_modules/auto_bisect/perf_revision_state.py#newcode219 scripts/slave/recipe_modules/auto_bisect/perf_revision_state.py:219: delta = target_sample_size - smallest_sample_size delta is unused. https://codereview.chromium.org/1610203003/diff/80001/scripts/slave/recipe_modules/auto_bisect/bisector.py ...
4 years, 10 months ago (2016-02-05 00:18:02 UTC) #6
RobertoCN
PTAL
4 years, 10 months ago (2016-02-08 20:48:11 UTC) #7
RobertoCN
I think this is it, PTAL.
4 years, 10 months ago (2016-02-11 01:38:08 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1610203003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1610203003/160001
4 years, 10 months ago (2016-02-11 21:49:49 UTC) #10
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build Presubmit on tryserver.infra (JOB_FAILED, https://build.chromium.org/p/tryserver.infra/builders/Build%20Presubmit/builds/2018)
4 years, 10 months ago (2016-02-11 21:59:30 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1610203003/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1610203003/180001
4 years, 10 months ago (2016-02-11 22:30:53 UTC) #14
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-11 22:33:47 UTC) #16
Vadim Sh.
https://codereview.chromium.org/1610203003/diff/180001/scripts/slave/recipe_modules/auto_bisect/resources/significantly_different.py File scripts/slave/recipe_modules/auto_bisect/resources/significantly_different.py (right): https://codereview.chromium.org/1610203003/diff/180001/scripts/slave/recipe_modules/auto_bisect/resources/significantly_different.py#newcode14 scripts/slave/recipe_modules/auto_bisect/resources/significantly_different.py:14: anaconda_path = r'c:\conda-py-scientific\bin\python' It is actually C:\conda-py-scientific\python.exe (no 'bin' ...
4 years, 10 months ago (2016-02-12 00:17:12 UTC) #18
Vadim Sh.
https://codereview.chromium.org/1610203003/diff/180001/scripts/slave/recipe_modules/auto_bisect/resources/significantly_different.py File scripts/slave/recipe_modules/auto_bisect/resources/significantly_different.py (right): https://codereview.chromium.org/1610203003/diff/180001/scripts/slave/recipe_modules/auto_bisect/resources/significantly_different.py#newcode14 scripts/slave/recipe_modules/auto_bisect/resources/significantly_different.py:14: anaconda_path = r'c:\conda-py-scientific\bin\python' On 2016/02/12 00:17:12, Vadim Sh. wrote: ...
4 years, 10 months ago (2016-02-12 00:36:14 UTC) #19
RobertoCN
On 2016/02/12 at 00:36:14, vadimsh wrote: > https://codereview.chromium.org/1610203003/diff/180001/scripts/slave/recipe_modules/auto_bisect/resources/significantly_different.py > File scripts/slave/recipe_modules/auto_bisect/resources/significantly_different.py (right): > > https://codereview.chromium.org/1610203003/diff/180001/scripts/slave/recipe_modules/auto_bisect/resources/significantly_different.py#newcode14 ...
4 years, 10 months ago (2016-02-12 01:58:15 UTC) #20
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1610203003/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1610203003/220001
4 years, 10 months ago (2016-02-12 01:59:07 UTC) #22
Vadim Sh.
https://codereview.chromium.org/1610203003/diff/220001/scripts/slave/recipe_modules/auto_bisect/resources/significantly_different.py File scripts/slave/recipe_modules/auto_bisect/resources/significantly_different.py (right): https://codereview.chromium.org/1610203003/diff/220001/scripts/slave/recipe_modules/auto_bisect/resources/significantly_different.py#newcode26 scripts/slave/recipe_modules/auto_bisect/resources/significantly_different.py:26: del conda_environ["PYTHONPATH"] nit: conda_environ.pop("PYTHONPATH", None) Otherwise you'll get KeyError ...
4 years, 10 months ago (2016-02-12 02:01:31 UTC) #23
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-12 02:01:38 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1610203003/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1610203003/220001
4 years, 10 months ago (2016-02-16 18:49:01 UTC) #28
commit-bot: I haz the power
Committed patchset #12 (id:220001) as http://src.chromium.org/viewvc/chrome?view=rev&revision=298810
4 years, 10 months ago (2016-02-16 18:51:54 UTC) #30
RobertoCN
A revert of this CL (patchset #12 id:220001) has been created in https://codereview.chromium.org/1702013004/ by robertocn@chromium.org. ...
4 years, 10 months ago (2016-02-16 19:48:15 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1610203003/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1610203003/260001
4 years, 10 months ago (2016-02-17 22:24:06 UTC) #34
commit-bot: I haz the power
4 years, 10 months ago (2016-02-17 22:27:07 UTC) #36
Message was sent while issue was closed.
Committed patchset #14 (id:260001) as
http://src.chromium.org/viewvc/chrome?view=rev&revision=298830

Powered by Google App Engine
This is Rietveld 408576698