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

Issue 5176009: Continue to refactor run_remote_tests script. (Closed)

Created:
10 years, 1 month ago by ericli
Modified:
9 years, 7 months ago
Reviewers:
kmixter1, jrbarnette
CC:
chromium-os-reviews_chromium.org, Mandeep Singh Baines, anush, sosa
Visibility:
Public.

Description

Refactor run_remote_tests script. What I did: 1. enter_chroot once and only once if necessary. The previous version would enter/exit chroot 3 times in worst case. And the entire logic happens inside chroot only, this has greatly simplified the overall workflow, and reduced the number of variables used. Shell script variables could be tricky. 2. Change variable type to test_type since type is a bash builtin. 3. get rid of {$TMP}/run_test.sh script, since it is not necessary any more. 4. get rid of rsync step from third_party/autotest/files to ${BUILD_DIR}, since it is not neccessary either. overall, reduced ~40 lines of code. All the change should be transparent to end users and there should be no regression changes at all. w/wo emerge autotest w/wo cros_workon in/outside of chroot. and all its combinations. Change-Id: I9c1532e9cb6cc0e724d4b6d870723df3e2a147ec BUG=9291 TEST=Run storageFio test since it need prebuild test and deps. Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=6fbd3d1

Patch Set 1 #

Patch Set 2 : patchwq #

Total comments: 2

Patch Set 3 : patch #

Total comments: 11

Patch Set 4 : patch #

Total comments: 23

Patch Set 5 : patch #

Patch Set 6 : patch #

Total comments: 2

Patch Set 7 : patch #

Total comments: 4

Patch Set 8 : patch #

Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -103 lines) Patch
M run_remote_tests.sh View 1 2 3 4 5 6 7 8 chunks +83 lines, -103 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
ericli
10 years, 1 month ago (2010-11-22 18:31:25 UTC) #1
ericli
Ken, I would really appreciated if you could patch in this CL and test it ...
10 years, 1 month ago (2010-11-22 18:32:15 UTC) #2
jrbarnette
http://codereview.chromium.org/5176009/diff/2001/run_remote_tests.sh File run_remote_tests.sh (right): http://codereview.chromium.org/5176009/diff/2001/run_remote_tests.sh#newcode93 run_remote_tests.sh:93: function autodetect_build() { In this function, if FLAGS_use_emerged is ...
10 years, 1 month ago (2010-11-23 00:11:28 UTC) #3
ericli
Richard, Thanks for the catch. Yes, it should handle such scenario better. But if both ...
10 years, 1 month ago (2010-11-23 00:49:10 UTC) #4
jrbarnette
On Nov 22, 2010, at 4:49 PM, Eric Li(李咏竹) wrote: > Richard, > > Thanks ...
10 years, 1 month ago (2010-11-23 02:22:39 UTC) #5
ericli
PTAL. http://codereview.chromium.org/5176009/diff/2001/run_remote_tests.sh File run_remote_tests.sh (right): http://codereview.chromium.org/5176009/diff/2001/run_remote_tests.sh#newcode93 run_remote_tests.sh:93: function autodetect_build() { Hi Richard, Thanks to push ...
10 years, 1 month ago (2010-11-23 18:49:29 UTC) #6
kmixter1
I just have high level comments first: Not copying files into the chroot means you're ...
10 years, 1 month ago (2010-11-23 22:21:19 UTC) #7
jrbarnette
http://codereview.chromium.org/5176009/diff/10001/run_remote_tests.sh File run_remote_tests.sh (right): http://codereview.chromium.org/5176009/diff/10001/run_remote_tests.sh#newcode90 run_remote_tests.sh:90: tc-export CC CXX PKG_CONFIG This sequence here seems a ...
10 years, 1 month ago (2010-11-23 23:16:04 UTC) #8
kmixter1
http://codereview.chromium.org/5176009/diff/10001/run_remote_tests.sh File run_remote_tests.sh (right): http://codereview.chromium.org/5176009/diff/10001/run_remote_tests.sh#newcode101 run_remote_tests.sh:101: autotest. To use installed autotest, pass --use_emerged." On 2010/11/23 ...
10 years, 1 month ago (2010-11-23 23:30:41 UTC) #9
ericli
Richard and Ken, I had addressed all your comments and please take another look. Ken, ...
10 years, 1 month ago (2010-11-24 19:20:50 UTC) #10
ericli
http://codereview.chromium.org/5176009/diff/10001/run_remote_tests.sh File run_remote_tests.sh (right): http://codereview.chromium.org/5176009/diff/10001/run_remote_tests.sh#newcode90 run_remote_tests.sh:90: tc-export CC CXX PKG_CONFIG On 2010/11/23 23:16:04, jrbarnette wrote: ...
10 years, 1 month ago (2010-11-24 19:20:57 UTC) #11
kmixter1
LGTM The problem with directories was specific to my checkout. I do worry that the ...
10 years, 1 month ago (2010-11-24 19:50:13 UTC) #12
ericli
PTAL. My response might worth another look from you. Thanks. http://codereview.chromium.org/5176009/diff/17001/run_remote_tests.sh File run_remote_tests.sh (right): http://codereview.chromium.org/5176009/diff/17001/run_remote_tests.sh#newcode116 ...
10 years, 1 month ago (2010-11-24 20:47:54 UTC) #13
kmixter1
http://codereview.chromium.org/5176009/diff/17001/run_remote_tests.sh File run_remote_tests.sh (right): http://codereview.chromium.org/5176009/diff/17001/run_remote_tests.sh#newcode100 run_remote_tests.sh:100: else please switch to fi. http://codereview.chromium.org/5176009/diff/17001/run_remote_tests.sh#newcode105 run_remote_tests.sh:105: elif [ ...
10 years, 1 month ago (2010-11-24 23:31:21 UTC) #14
ericli
PTAL. http://codereview.chromium.org/5176009/diff/17001/run_remote_tests.sh File run_remote_tests.sh (right): http://codereview.chromium.org/5176009/diff/17001/run_remote_tests.sh#newcode100 run_remote_tests.sh:100: else On 2010/11/24 23:31:21, kmixter1 wrote: > please ...
10 years, 1 month ago (2010-11-25 02:23:07 UTC) #15
jrbarnette
The new logic in autodetect_build is much easier to follow, thanks! I have only a ...
10 years ago (2010-11-25 18:53:53 UTC) #16
ericli
Richard's comments had been addressed in the last upload. Ken, do you have more comments?
10 years ago (2010-11-29 21:51:12 UTC) #17
kmixter1
LGTM++ with minor comments. Hopefully this avoids the tty problem because it is a nice ...
10 years ago (2010-11-29 22:04:36 UTC) #18
ericli
10 years ago (2010-11-29 22:12:37 UTC) #19
Ken, 
Last change made based on your suggestion.

I am pushing now. And I will keep an eye on PFQ.

http://codereview.chromium.org/5176009/diff/30001/run_remote_tests.sh
File run_remote_tests.sh (right):

http://codereview.chromium.org/5176009/diff/30001/run_remote_tests.sh#newcode128
run_remote_tests.sh:128: start autotest to continue."
Yes, true. But this reflect what it had before this refactoring CL.

I will change it to:

Run cros_workon start autotest and repo sync to continue.
On 2010/11/29 22:04:36, kmixter1 wrote:
> Isn't it also necessary to repo sync in this case?

http://codereview.chromium.org/5176009/diff/30001/run_remote_tests.sh#newcode136
run_remote_tests.sh:136: autotest-tests or cros_workon start autotest to
continue."
OK.

On 2010/11/29 22:04:36, kmixter1 wrote:
> If you cros_workon you probably need to repo sync as well.  The 'or' case
seems
> like it might confuse people.  I think it'd be ok to just only suggest the
> emerge-board autotest autotest-tests solution.

Powered by Google App Engine
This is Rietveld 408576698