Commit Graph

28179 Commits

Author SHA1 Message Date
Chris Sosa
7de6531962 Faster checkout and cleanup of old builds.
Change-Id: Id81fe4e7bd9cae7a51a45b6ea8a535c4ea9430f8

BUG=
TEST=Ran locally on top of previous build area.

Review URL: http://codereview.chromium.org/3337007
2010-09-02 15:10:48 -07:00
Nick Sanders
ebce8543fc missed feedback from CL
Review URL: http://codereview.chromium.org/3323004
2010-09-02 14:57:34 -07:00
David James
40808fbffa Update parallel_emerge to rebuild packages when use flags change.
parallel_emerge now checks the use flags of installed packages against new
packages, and checks the use flags of binary packages against source packages,
so that, when the appropriate flags are used, we never install packages with
the wrong use flags.

I've also fix related bugs in rebuild_blacklist. Previously, rebuild_blacklist
was too aggressive -- it even blacklisted packages from being rebuilt if they
are explicit workon packages. This bug also causes problems for the use flag
detection code because packages in this list would not get rebuilt when
the use flags changed. So I fixed this too.

Also relatedly, I've fixed our code for checking whether --selective is
enabled to look at the --newuse and --reinstall=changed-use flags. These
flags actually enable --selective implicitly, so we need to honor that for
correct behavior.

BUG=chromium-os:6359
TEST=Made sure that packages get rebuilt / reinstalled when use flags change.

Change-Id: I2d945b552863410ec7b286c3ed55ae4a64336ed5

Review URL: http://codereview.chromium.org/3361002
2010-09-02 13:18:36 -07:00
Chris Sosa
7778a30165 Move image_to_live to use update_engine.
Change-Id: Iddc1a4c1fe83877eff020f3e075ddba5e5594a57

BUG=
TEST=Tested with new dev server changes.  Ran through a successful update.

Review URL: http://codereview.chromium.org/3358004
2010-09-02 11:06:41 -07:00
Sean O
cd8b1d1729 Use correct log functions for enter_chroot's console spew.
Change-Id: Ie0e05626e3619584d565ff3414f1d1b073c7fc7f

BUG=
TEST=Manually

Review URL: http://codereview.chromium.org/3318005
2010-09-02 17:34:49 +02:00
Sean O
7aace25881 Keep enter_chroot log spew on stderr.
Change-Id: I75d4a90ea703176e5773083ddec7bc687e35837f

BUG=
TEST=tested locally

Review URL: http://codereview.chromium.org/3254012
2010-09-02 15:35:54 +02:00
Elly Jones
7990a0673c scripts: bind ~/.ssh over the chroot's ~/.ssh.
This also mounts the path to our ssh-agent socket (usually in /tmp) inside the
chroot so we can use our external agent.

TEST=None

BUG=None

Change-Id: I543e8b2527be9958c1158234f39ecc34fc9dd0df
Signed-Off-By: Elly Jones <ellyjones@chromium.org>
Signed-Off-By: sosa <sosa@chromium.org>

Review URL: http://codereview.chromium.org/3277006
2010-09-02 09:23:23 -04:00
Nick Sanders
c8cb33699e Allow full build of factory install shim in build_image.
BUG=4951
TEST=Build and boot install shim on legacy bios, on H2C

Review URL: http://codereview.chromium.org/3140028
2010-09-01 21:31:30 -07:00
Paul Stewart
f9d7cf3ce0 remote_cp renamed to remote_cp_to. *shrug*
This function was renamed, so I renamed my reference to it.

BUG=none
TEST=Reran cros_package_to_live

Review URL: http://codereview.chromium.org/3331007
2010-09-01 18:32:37 -07:00
David McMahon
866aa58b44 Created branch 0.8.70.B. Update CHROMEOS_VERSION_BRANCH=71
Change-Id: I4393f7c251fd9718eebc988f6af83f3048ba29e8
2010-09-01 17:38:43 -07:00
Jon Kliegman
3ecded4794 Cause cros_workon to die rather than clobber local_manifest
cros_workon would clobber local edits to local_manifest in many cases
This is a quick fix to prevent it. The proper solution is to actually parse
local_manifest as an XML doc and modify the DOM. Not play tricks with grep.

BUG=chromium-os:6272
TEST=Ran cros_workon against missing local_manifest, auto-generated local_manifest, local_manifest with indented tags. local_manifest with multi-line tags and local_manifest with <remote tags.

Review URL: http://codereview.chromium.org/3227006

Change-Id: I008c11a43ac21336575445273453373645f96398
2010-09-01 09:39:44 -04:00
Nick Sanders
b801bec71a fix sign_to_ssd
Change-Id: If642d664163f36b79e3b6d845de0025cc3dc0372

BUG=6264
TEST="resign an image"

Review URL: http://codereview.chromium.org/3273011
2010-08-31 23:05:07 -07:00
Olof Johansson
b154b37ac8 image_to_usb: List available disks when /dev/sdX is specified
I'm lazy and sometimes copy and paste the output at the end of build_image
verbatim and accidentally include the newline at the end. This gives a
more useful output for that case.

Change-Id: I1a4abefa884a91cb75dfe2779c79b3ef4b60e807

BUG=none
TEST=./image_to_usb --from=../build/images/x86-generic/latest --to=/dev/sdX   (and /dev/sde)

Review URL: http://codereview.chromium.org/3212012
2010-09-01 00:04:25 -05:00
Ken Mixter
cc4f1dd14e Script to generate post mortem of all crashes on device
BUG=4887

TEST=tested run_remote_tests and image_to_live still work.  Ran script with machine with no crashes, as well as on a machine with a slew of powerd CHECK(false)'s.

Change-Id: Iffb6571d30d99d876f41972f92a7149a716035ee

Review URL: http://codereview.chromium.org/3276002
2010-08-31 12:07:11 -07:00
Chris Sosa
e13960240b Fix cleanup so we don't have to clobber as much when failures occur
Change-Id: I120c49a38d2a17a2216296a68378fee7345f616a

TBR=petkov

Review URL: http://codereview.chromium.org/3255004
2010-08-30 22:37:28 -07:00
Nick Sanders
ae26a5cbbf * Combine partition setting
* Add dev-rec key to factory installer
* rename factory_install_shim output to be consistent with dev install shim

Change-Id: Ibf8f027edda67626af5c319b4daa164cb53ccfe7

BUG=4382
TEST=Build factory install, build dev install, build normal

Review URL: http://codereview.chromium.org/3286002
2010-08-30 21:59:50 -07:00
Chris Sosa
aaba25d817 Fix clobber. Strip any extra args and treat last arg as config.
Change-Id: I2bf951342c12d954bd1abbc8b878437c648b4ac7

TBR=Scottz
2010-08-30 20:28:11 -07:00
Chris Sosa
f0fcd1acfd Change config's to use .jail for cod[fg]'s
Change-Id: Ib7efb7d5a14371a3eb0dfa4a99992ea096146980

TBR=Config change:  Need to specify subnet for *.jail.
2010-08-30 18:52:46 -07:00
Raja Aluri
32759cfe68 Copying .subversion directory into the chroot,
so that the original users' subversion access permissions are preserved inside the chroot

Change-Id: I486070b3c1a2dda169ae0a95982ba693574e001b

BUG=
TEST=

Review URL: http://codereview.chromium.org/3249008
2010-08-30 18:44:39 -07:00
Ryan Cairns
1703423a77 Runs our BVT suite in a VM
Change-Id: I758c93596d5cbdd6b52b9acc82f4d6e19a326c9f

BUG=5518
TEST=Tested using all the options. All tests listed in the file pass.

Review URL: http://codereview.chromium.org/3107039
2010-08-30 17:03:50 -07:00
Chris Sosa
b1e772a180 Add 9999 revving logic to cros_mark_all_as_stable.
TEST=Ran it and saw appropriate changes.

Change-Id: I5f51e16918993b9dbf53b38cb3a365fafe77c8eb

Review URL: http://codereview.chromium.org/3231007
2010-08-30 15:04:59 -07:00
Tom Wai-Hong Tam
1e0dcbd15c Reflect the change that moves startx.sh to a new place.
Reflect the change: http://codereview.chromium.org/3277004

BUG=chrome-os-partner:501 fix the unexpected EOF error
TEST=run image_to_usb --factory and start factory ui on a device

Review URL: http://codereview.chromium.org/3262004

Change-Id: Ieec1237d51c0ca3041be7934405ba44b31f04ea6
2010-08-31 05:35:00 +08:00
Chris Sosa
70e2c9e72a Move RunCommand, and Info/Warning/Die into common pylib
TEST=Ran all commands that used RunCommand or Die with
their associated unittests.

Review URL: http://codereview.chromium.org/3266004
2010-08-30 11:05:50 -07:00
Chris Sosa
1ec70345d9 Change clobber logic to be explicit
TEST=Tested with --clobber and without.

Change-Id: I6a938b3da673d97186cec79f25b22ea6176f1fdf

Review URL: http://codereview.chromium.org/3238012
2010-08-30 10:48:08 -07:00
Zdenek Behan
a8216d3334 mod_image_for_test: drop the quietness from rsync to see what's being copied
Change-Id: I3405d1b7a15e2715c012074870b9941f7e225035

Review URL: http://codereview.chromium.org/3228006
2010-08-27 20:37:15 -07:00
Chris Sosa
0c13b46899 Move back to marking all until we have individual tree closing ready.
Review URL: http://codereview.chromium.org/3246003
2010-08-27 17:01:38 -07:00
Ken Mixter
e8b8033880 Allow src_test to require running src_configure step first
TEST=ran the script on all tests successfully

Change-Id: I992b9ed2ce99fc30aa542bf6c953d04ffe1d62d0

Review URL: http://codereview.chromium.org/3248003
2010-08-27 14:37:10 -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
Chris Sosa
0c156f9ccb TBR: Add replace to build_image 2010-08-27 13:11:56 -07:00
Chris Sosa
151a896d4b TBR: Fix missing enter_chroot's in pfq 2010-08-27 11:48:08 -07:00
Chris Sosa
6d58d427e3 Add all pfq configurations and add build_image / run_unit_tests.
BUG=5468
TEST=Ran default and ran x86-generic.  Took board values from master.cfg in buildbot

Review URL: http://codereview.chromium.org/3200006

Change-Id: I1d3e4216dc9ca9af0d9e8c1bfffabffa87f89b04
2010-08-27 10:04:31 -07:00
Zdenek Behan
78903d8f50 autotest: unblacklist autotest ebuilds, stop cros_workon start'ing anything
BUG=4586
TEST=make sure not working on autotest, run ./build_autotest.sh, see it work

Change-Id: Iac34c97864474e989bd61c1e76b14deb389274eb

Review URL: http://codereview.chromium.org/3226003
2010-08-26 19:50:18 -07:00
Zdenek Behan
45156c46e1 cros_workon: make --board and --host not exclusive
This fixes a case where you can't specify host if you have a
default board set.

BUG=6039

TEST=cros_workon start with --host, --board, both

Change-Id: Iad0d3f646dde10cc4adc4131e93f75fabe92f392

Review URL: http://codereview.chromium.org/3157044
2010-08-26 16:17:03 -07:00
Chris Sosa
5208429f8e TBR: Fix circ dep issue with cbuildbot 2010-08-26 14:45:25 -07:00
Chris Sosa
4b9baf9fa1 Add ability for cbuildbot master to synchronize with cbuildbot slaves.
TEST=Ran several non-checked in unit tests (will check in later) and tested
with cbuildbot as it is now.
BUG=5989

Review URL: http://codereview.chromium.org/3165052

Change-Id: I867a597b34bbf63261b9d19b57cef9631100c339
2010-08-26 14:06:56 -07:00
Chris Sosa
6f7d6cef0e Fix case where there is nothing to uprev.
TEST=Ran unit tests.

Change-Id: Iafd9702c5364511d79667ecc296eaf68fc89a5fb

Review URL: http://codereview.chromium.org/3159047
2010-08-26 12:34:20 -07:00
Chris Sosa
5140c15674 Fix bug with git packages with no matching ebuild.
Change-Id: I45454c837807fbe6e5996b76087bbfe25d7155ce

Review URL: http://codereview.chromium.org/3171032
2010-08-26 11:18:25 -07:00
Chris Sosa
e9b94eefd0 CBuildbot - Adds ability to only rev packages given by the sourcestamp.
The buildbot drops a source stamp (repo1.git@commit1 repo2.git@commit2 ...).
If CBuildbot finds the source stamp, it uses it and revs only those packages.
If this file is either missing or set to "None", it assumes a Force Build
has been pressed and keeps the old behavior (attempts to mark all).

TEST=Ran with 3 states of revisions file.
BUG=5006

Review URL: http://codereview.chromium.org/3163030

Change-Id: I226fd3bec642224b31ce51eee34d028043964943
2010-08-26 10:55:27 -07:00
Mandeep Singh Baines
fafb895a4c Fix prefligh buildbot
BUG=none
TEST=Ran it by hand and verified that the error message goes away.

Before this change there is an error about merge_branch already existing.

Change-Id: I8393da46d6bebf1f40d253863cfe4c28b76c1b8e

Review URL: http://codereview.chromium.org/3127036
2010-08-26 10:32:16 -07:00
Andrew de los Reyes
393266b499 AU: when generating payload, don't patch kernel by default
Normally, images are signed for USB boot and the HD boot patch is in
the stateful partition. Official image are resigned, and the kernel
partition needs no patch for HD boot. Since folks generating updates
generally don't need to patch, this CL turns off patching by default.

BUG=5975
TEST=Generated update payload

Review URL: http://codereview.chromium.org/3167035
2010-08-26 09:53:52 -07:00
Scott Zawalski
46bbd36ec8 Created branch 0.8.68.B. Update CHROMEOS_VERSION_BRANCH=69
Change-Id: I775d399a3ebe24caf5227406e7baf5a7025f0932
2010-08-25 23:04:25 -07:00
Mandeep Singh Baines
f30a06ab91 cros_mark_as_stable: delete merge_branch if it already exists
Fixes issue with pfbb where commits aren't getting squashed

BUG=6102
TEST=Ran the code.

Change-Id: Ibbcb8882ee13abf3a7c283bb0d248eef8db31cb8

Review URL: http://codereview.chromium.org/3141045
2010-08-25 19:05:45 -07:00
David James
1d5fc89649 Unblacklist graphics_WebGLConformance.
zbehan has fixed this test, so we can unblacklist it now.

BUG=chromium-os:5881
TEST=Checked that all autotests compile

Change-Id: I32c445018f270009bfc8751c6306c0fc53dcecbf

Review URL: http://codereview.chromium.org/3116026
2010-08-25 17:29:05 -07:00
Mandeep Singh Baines
038dc8f89d cros_workon: store cros_workon state outside of /build
This solves the problem of cros_workon list of packages being clobbered
by a new setup_board.

BUG=5641
TEST=Verified all cases work correctly.

1. Verified that a pre-existing list of workon packages continues to work.
2. Verified that the package.unmask symlink is created correctly.
3. Verified that a new package can be worked on.
4. Verified that an existing package continues to be worked on.

Change-Id: I566ac898ac4f74bdd5beb532c1ef0f70d4c02cec

Review URL: http://codereview.chromium.org/3151039
2010-08-25 17:21:14 -07:00
J. Richard Barnette
7aeb5592be Make cros_download_latest_image echo its newline to stderr
Change-Id: I1a28902308f3892aa936bb0376e4eb75259cbb8b
BUG=none
TEST=./image_to_usb.sh --to=/dev/sdb --test_image --from=$(./cros_download_latest_image)

Review URL: http://codereview.chromium.org/3110040
2010-08-25 16:09:25 -07:00
Mandeep Singh Baines
a87699b198 cbuildbot: fix to point to new url
BUG=6102
TEST=none

Change-Id: I69312fed2d0eb4934a964792b4af06160b8d8eb5

Review URL: http://codereview.chromium.org/3135049
2010-08-25 14:39:18 -07:00
Ryan Cairns
a1401f2f56 adds a flag to exit if a test fails
Change-Id: Ifd23ca19abaef24e30e0bbd9e751f8a0ea8cf667

Merge branch 'master' of ssh://gitrw.chromium.org:9222/crosutils into fail-on-exit

Change-Id: I4e6270cc401a1450a6f2de6bc156e2dabc6d4334

BUG=none
TEST=tested both success and failure cases with and without the flag

Review URL: http://codereview.chromium.org/3150036
2010-08-25 14:30:18 -07:00
Tan Gao
4515028a2d Issue 5871: support user-specified output image name in mod_image_for_recovery.sh
Change-Id: Ibd1990747d20b3f11a8bf9d5b558405067589d0e

BUG=chromium-os:5871
TEST=manually ran the script with and without --output flag and verified output
image took default name and user-specified name, respectively

Review URL: http://codereview.chromium.org/3155042
2010-08-25 12:51:07 -07:00
Paul Stewart
e7c459dcdc package_to_live script pushes binary emerge package to remote device
This script allows us to test packages on development boxes which
might be behind a firewall in a way that prevents use of "gmerge".
In this model, images are built locally and then pushed onto the
client.

TEST=run on wifi testbed
BUG=none

Review URL: http://codereview.chromium.org/3111018
2010-08-25 10:44:16 -07:00
Ken Mixter
8899d5a90b Store away breakpad symbols in debug.tgz
BUG=5355

Change-Id: I1f6dff3808c5bfaf4b7ed6ba75e4d19b196d749c

Review URL: http://codereview.chromium.org/3166029
2010-08-25 09:17:38 -07:00