Commit Graph

22 Commits

Author SHA1 Message Date
Ken Mixter
b5ab343a0d Fix grab-buildbot in sync_build_test by gsdizing it
Review URL: http://codereview.chromium.org/3109023
2010-09-30 13:05:56 -07:00
Ken Mixter
021f6ea372 More work to make sync_build_test build autotests with workon
BUG=5766

Review URL: http://codereview.chromium.org/3131025
2010-08-27 13:24:59 -07:00
Ken Mixter
8798fe99f3 Make sync_build_test and build_autotest support workon.
BUG=5766

Review URL: http://codereview.chromium.org/3148016
2010-08-18 14:05:08 -07:00
Raymes Khoury
cbf5b86dcb Moved running unit tests to occur after building Chrome browser in sync_build_test.sh.
Also added back check to test whether --nounittest is passed in.

Review URL: http://codereview.chromium.org/3031056
2010-08-16 11:20:25 -07:00
Ken Mixter
1365cf79ba Don't build_autotests separately since they're built on demand while the image is tested.
Review URL: http://codereview.chromium.org/2856056
2010-08-04 16:53:52 -07:00
Raymes Khoury
415d42d0de Added required BOARD environment variable when building chrome browser in sync_build_test.
Also minor indentation fix.

Review URL: http://codereview.chromium.org/3023031
2010-08-02 14:55:13 -07:00
Raymes Khoury
b1d37f74db Altered sync_build_test so that when --nousepkg is specified, it is also passed to setup_board.
Review URL: http://codereview.chromium.org/3041033
2010-08-02 14:53:03 -07:00
Raymes Khoury
d868edc220 Updated sync_build_test to use new unit test script.
I believe it only makes sense to run this for an x86 target but I might be wrong.

Review URL: http://codereview.chromium.org/3082008
2010-08-02 14:49:05 -07:00
Raymes Khoury
cd29fd7a91 Build Chromium browser source as part of sync_build_test.sh
Added --chrome_root option to sync_build_test.sh which, if specified, builds Chromium browser from source in the directory given.

Review URL: http://codereview.chromium.org/2824054
2010-07-16 15:11:42 -07:00
Ken Mixter
ec2708c83a Add --nousepkg option for build_packages to sbt
Review URL: http://codereview.chromium.org/2810035
2010-06-28 18:41:22 -07:00
Ken Mixter
565b11316a Support grabbing gpt-style images from buildbot
Review URL: http://codereview.chromium.org/1716003
2010-04-21 17:50:33 -07:00
Ken Mixter
d5c4b17da5 Revert "Retry on build_image failures and make sbt more aggressive by default"
This reverts commit 7c3272657eb2e3a106090c5ab57f16ba5ba21ffe.

Review URL: http://codereview.chromium.org/1594035
2010-04-16 10:11:02 -07:00
Ken Mixter
c223ba1e0c Retry on build_image failures and make sbt more aggressive by default
As with build_packages, only retries by default if you passed --jobs
even though build_image will indeed spuriously fail with only one job.
sync_build_test now uses jobs=#cores by default for both package and
image building.  Eventually will also use this for gclient sync'ing
once that is better vetted.

Review URL: http://codereview.chromium.org/1564035
2010-04-16 09:08:26 -07:00
Ken Mixter
655a669b28 Update sbt to match hardcoded logic in mod_image_for_test
Review URL: http://codereview.chromium.org/1050007
2010-03-18 16:20:06 -07:00
Ken Mixter
7e41907f97 Fix minor problem with autotest permissions
When grabbing buildbot image and test artifacts, properly install the test artifacts as if they were built by the user (with the user as owner).

Review URL: http://codereview.chromium.org/703001
2010-03-08 19:37:52 -08:00
Ken Mixter
55f65f8bc1 Support grabbing portage buildbot artifacts
Review URL: http://codereview.chromium.org/660381
2010-03-03 18:54:14 -08:00
Ken Mixter
eb31903982 build_autotest runs as part of build_packages given a flag.
sync_build_test runs build_autotest that way.
archive_build bzips up the autotest artifacts.
run_remote_tests can run autotest artifacts from a prepackaged directory.  Note that because build_platform is in a different repository than these other files, it's unfortunately forced to be reviewed separately in http://codereview.chromium.org/661197 and committed independently.

Review URL: http://codereview.chromium.org/660189
2010-02-26 17:33:51 -08:00
Ken Mixter
cc48864bce Support renamed commands, remove non-portage build support, fix a minor mod_image_for_test bug. Tested with build_autotest, mift, image_to_usb, and image_to_live. Also not recreating the chroot unless it's missing or you pass --force_make_chroot as folks say that added dependencies in the chroot are handled currently during build_packages.
Review URL: http://codereview.chromium.org/650123
2010-02-24 15:27:30 -08:00
Ken Mixter
e320ae8c08 Make sync_build_test work with portage build.
Remove make_local_repo stage as it's not used by either build process.
Make portage build the default (--noportage still builds the old way).
Also add total time to build.  A run of sync_build_test without args
on my machine takes 2:20min.  Defaulting to --jobs=1 due to
instability reports.

Review URL: http://codereview.chromium.org/646015
2010-02-18 17:34:32 -08:00
Ken Mixter
1cca01402a Enable building autotests in test loop and sbt script
Review URL: http://codereview.chromium.org/556060
2010-02-01 19:05:54 -08:00
Ken Mixter
c0921383c0 Improvements for to continuous test loop.
Run a basic check on a buildbot grabbed image to make sure it has a
kernel installed in it.

Better failure recovery.

Review URL: http://codereview.chromium.org/553063
2010-01-25 11:02:32 -08:00
Ken Mixter
45319e9ad0 Add a script to simplify some common developer workflows.
Here are some example ways to use the script (from comments)

sync_build_test.sh
  syncs, recreates local repo and chroot, builds, and masters an
  image in the checkout based on your current directory, or if you
  are not in a checkout, based on the top level directory the script
  is run from.

sync_build_test.sh --image_to_usb=/dev/sdb -i
  same as above but then images USB device /dev/sdb with the image.
  Also prompt the user in advance of the steps we'll take to make
  sure they agrees.

sync_build_test.sh --top=~/foo --nosync --remote 192.168.1.2
  builds and masters an image in ~/foo, and live updates the machine
  at 192.168.1.2 with that image.

sync_build_test.sh --top=~/newdir --test "Pam BootPerfServer" \
     --remote=192.168.1.2
  creates a new checkout in ~/newdir, builds and masters an image
  which is live updated to 192.168.1.2 and then runs
  two tests (Pam and BootPerfServer) against that machine.

sync_build_test.sh --grab_buildbot=LATEST --test Pam --remote=192.168.1.2
  grabs the latest build from the buildbot, properly modifies it,
  reimages 192.168.1.2, and runs the given test on it.

Review URL: http://codereview.chromium.org/548094
2010-01-21 14:58:40 -08:00