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

Issue 3166019: Add repo sync all helper for non-pfq buildbots. (Closed)

Created:
10 years, 4 months ago by sosa
Modified:
9 years, 6 months ago
CC:
chromium-os-reviews_chromium.org, Mandeep Singh Baines, anush, sosa
Base URL:
http://src.chromium.org/git/crosutils.git
Visibility:
Public.

Description

Add repo sync all helper for non-pfq buildbots. TEST=Ran script and re-ran cbuildbot to completion of sync. Change-Id: I31fddca6f720fecb461a96c1ffa54d4923b3c1c4

Patch Set 1 #

Total comments: 8

Patch Set 2 : Add retries and implement clobber for sync #

Patch Set 3 : Retries #

Patch Set 4 : Fix ws #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -8 lines) Patch
M bin/cbuildbot.py View 1 2 3 2 chunks +25 lines, -8 lines 0 comments Download
A bin/cros_repo_sync_all View 1 chunk +1 line, -0 lines 0 comments Download
A bin/cros_repo_sync_all.py View 1 2 3 1 chunk +35 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
sosa
Buildbot needs update step to be one command line
10 years, 4 months ago (2010-08-18 22:50:01 UTC) #1
sosa
Adding scott
10 years, 4 months ago (2010-08-19 02:41:18 UTC) #2
scottz-goog
I understand time crunch but I made a few suggestions/comments. http://codereview.chromium.org/3166019/diff/1/2 File bin/cbuildbot.py (right): http://codereview.chromium.org/3166019/diff/1/2#newcode57 ...
10 years, 4 months ago (2010-08-19 03:08:09 UTC) #3
sosa
PTAL. In addition to retries, added a clobber option that is passed from the buildbot. ...
10 years, 4 months ago (2010-08-19 03:33:42 UTC) #4
sosa
Sorry PTAL. Somehow re-committed without re-uploading before my last PTAL
10 years, 4 months ago (2010-08-19 03:46:18 UTC) #5
scottz-goog
10 years, 4 months ago (2010-08-19 04:00:03 UTC) #6
LGTM.

We have 3 defaults for retries. I suggest picking on place and have either the
other functions require it or just use the default one of them sets.

other than that great thanks for adding that :)

http://codereview.chromium.org/3166019/diff/1/2
File bin/cbuildbot.py (right):

http://codereview.chromium.org/3166019/diff/1/2#newcode57
bin/cbuildbot.py:57: RunCommand(['sudo', 'rm', '-rf', buildroot])
Yeah that is true, it is a bad assumption we have everywhere. So be it. 

On 2010/08/19 03:33:42, sosa wrote:
> No not really.  If there is an old checkout and it built anything (i.e. has a
> chroot) you need sudo.  On the other hand you can't be guaranteed you have
> anything (repo sync could have failed immediately on the last run ... so I
can't
> really check reliably that this was an old checkout directory)
> 
> 
> On 2010/08/19 03:08:10, scottz wrote:
> > The only thing that worries me here is that buildroot is user defined and we
> are
> > whacking it with sudo...I assume there is no way around this?
> 
>

http://codereview.chromium.org/3166019/diff/1/3
File bin/cros_repo_sync_all (right):

http://codereview.chromium.org/3166019/diff/1/3#newcode1
bin/cros_repo_sync_all:1: cros_repo_sync_all.py
Ahh hah sorry I am not used to seeing those in this interface. That makes sense.

On 2010/08/19 03:33:42, sosa wrote:
> This is just a symlink. 
> 
> On 2010/08/19 03:08:10, scottz wrote:
> > When this is called we will have cwd set to this dir right? 
> > 
> > ./cros_repo_sync_all.py 
> 
>

Powered by Google App Engine
This is Rietveld 408576698