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

Issue 847393004: Run "git stash" and "git stash apply" before and after a dry test run. (Closed)

Created:
5 years, 11 months ago by qyearsley
Modified:
5 years, 10 months ago
Reviewers:
RobertoCN, prasadv
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Run "git stash" and "git stash apply" before and after a dry test run. Reason: We don't want to destroy local uncommited changes when running tests. One solution was to mock bisect_utils.GitRun -- doing that caused the course of the run to change, making it so that there were no results (since git log is used to get a list of revisions, even for the dry run). So if we want to solve this problem by mocking git, we should replace it with a fake RunGit that returns different canned values depending on what the input is. The advantage of stash/apply is that its simpler, but it's also a little bit slower than the above way. BUG= Committed: https://crrev.com/e9c4d717e1147c6e7248bc071450e62ea24530f1 Cr-Commit-Position: refs/heads/master@{#313650}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Change to abort test if there are staged changes. #

Total comments: 2

Patch Set 4 : Add comment above invocation of git status --short #

Patch Set 5 : Print the output of git status before exiting. #

Patch Set 6 : Ignore untracked files (in the presubmit there appeared were untracked changes to the cfg files) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -1 line) Patch
M tools/auto_bisect/bisect_perf_regression_test.py View 1 2 3 4 5 2 chunks +18 lines, -1 line 0 comments Download

Messages

Total messages: 22 (4 generated)
qyearsley
5 years, 11 months ago (2015-01-14 22:28:15 UTC) #2
RobertoCN
On 2015/01/14 22:28:15, qyearsley wrote: I think we should instead make run_tests refuse to run ...
5 years, 11 months ago (2015-01-14 22:36:56 UTC) #3
Peter Kasting
Shouldn't you use git stash pop instead of git stash apply? Otherwise you modify the ...
5 years, 11 months ago (2015-01-14 22:44:51 UTC) #4
qyearsley
On 2015/01/14 22:44:51, Peter Kasting wrote: > Shouldn't you use git stash pop instead of ...
5 years, 11 months ago (2015-01-15 00:50:52 UTC) #5
qyearsley
Ping -- does this version (abort if there are uncommitted changes) seem OK?
5 years, 11 months ago (2015-01-27 00:18:46 UTC) #6
prasadv
https://codereview.chromium.org/847393004/diff/40001/tools/auto_bisect/bisect_perf_regression_test.py File tools/auto_bisect/bisect_perf_regression_test.py (right): https://codereview.chromium.org/847393004/diff/40001/tools/auto_bisect/bisect_perf_regression_test.py#newcode176 tools/auto_bisect/bisect_perf_regression_test.py:176: if changes.strip(): What does "CheckRunGit" returns when there is ...
5 years, 11 months ago (2015-01-27 22:32:32 UTC) #7
qyearsley
https://codereview.chromium.org/847393004/diff/40001/tools/auto_bisect/bisect_perf_regression_test.py File tools/auto_bisect/bisect_perf_regression_test.py (right): https://codereview.chromium.org/847393004/diff/40001/tools/auto_bisect/bisect_perf_regression_test.py#newcode176 tools/auto_bisect/bisect_perf_regression_test.py:176: if changes.strip(): On 2015/01/27 22:32:32, prasadv wrote: > What ...
5 years, 11 months ago (2015-01-27 23:49:02 UTC) #8
prasadv
lgtm
5 years, 11 months ago (2015-01-27 23:50:42 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/847393004/60001
5 years, 11 months ago (2015-01-28 00:01:00 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/38756)
5 years, 11 months ago (2015-01-28 00:09:23 UTC) #13
qyearsley
On 2015/01/28 00:09:23, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
5 years, 11 months ago (2015-01-28 00:46:26 UTC) #14
chromium-reviews
I think that we should maybe print the uncommitted changes (or at least the output ...
5 years, 10 months ago (2015-01-28 22:59:32 UTC) #15
qyearsley
On 2015/01/28 22:59:32, chromium-reviews wrote: > I think that we should maybe print the uncommitted ...
5 years, 10 months ago (2015-01-29 01:47:34 UTC) #16
chromium-reviews
Sounds good. cfgc is the extension from precompiled python files that originally end in .cfg ...
5 years, 10 months ago (2015-01-29 01:52:53 UTC) #17
qyearsley
On 2015/01/29 01:52:53, chromium-reviews wrote: > Sounds good. cfgc is the extension from precompiled python ...
5 years, 10 months ago (2015-01-29 01:56:54 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/847393004/100001
5 years, 10 months ago (2015-01-29 01:58:09 UTC) #20
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 10 months ago (2015-01-29 02:37:15 UTC) #21
commit-bot: I haz the power
5 years, 10 months ago (2015-01-29 02:38:25 UTC) #22
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/e9c4d717e1147c6e7248bc071450e62ea24530f1
Cr-Commit-Position: refs/heads/master@{#313650}

Powered by Google App Engine
This is Rietveld 408576698