Commit Graph

1104 Commits

Author SHA1 Message Date
Chris Sosa
9b76b421e4 Use the right base path for vm updates.
Change-Id: I98276b26b85e48ae4b65e8f3fb65540b24665f9a

BUG=Will file
TEST=Ran it

Review URL: http://codereview.chromium.org/4185008
2010-10-28 03:41:14 -07:00
David McMahon
0e84847681 Created branch 0.9.104.B. Update CHROMEOS_VERSION_BRANCH=105
Change-Id: I2b51eb4052cc17f73a282e0a6cb6291d45e17305
2010-10-27 22:43:19 -07:00
David James
eb57914ebc Tool for printing changelog descriptions.
This is similar to gencl but supports more features and is written in Python.

BUG=chromium-os:8205
TEST=Ran ( ./cros_changelog 0.9.102.0 cros/master > /tmp/test1.html &&
           ./cros_changelog 0.9.102.0 > /tmp/test2.html )
     First command prints changes between 0.9.102.0 and master. Second
     command prints changes between 0.9.102.0 and previous release.

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

Change-Id: I1a81f7d02e4164a4c61aeaad0c01903658571260
2010-10-27 19:42:28 -07:00
Chris Sosa
b38c7e637e Use pregenerate_update flag for devserver.
Change-Id: I4a6fc66db7b336ae07bdfa837dd5e0d806880e52

BUG=8255
TEST=Ran it with devserver with option.

Review URL: http://codereview.chromium.org/4169006
2010-10-27 16:05:43 -07:00
Chris Sosa
604a3f3168 Adding tracking branch broke repo sync on full builders.
Change-Id: Iff1a416a1f7c37870fbcd42ed4aaf6f96f1ea11d

BUG=8245
TEST=Ran with --clobber

Review URL: http://codereview.chromium.org/4128007
2010-10-27 11:51:02 -07:00
David James
0a4d1665fd Strip newlines from each line in make.conf.
This prevents us from having double newlines.

Change-Id: I9e9f9e9164872419bf263b15d2a7d048e98a0098

BUG=chromium-os:4843
TEST=Ran unit tests.

Review URL: http://codereview.chromium.org/4179002
2010-10-27 11:39:11 -07:00
Chris Sosa
54f3b0bbd6 Add delta support to the update test harness.
Change-Id: I94159ac5468dd486123f7cb00da29526b5857d8f

BUG=8192
TEST=Tested with other CL's.

Review URL: http://codereview.chromium.org/4170004
2010-10-26 21:42:47 -07:00
Chris Sosa
8e3e834e4a Add delta update support to imaging tools.
Change-Id: I3ad6d418a1d47f47b78ba4e011c83bc569041475

BUG=6912
TEST=Ran with http://codereview.chromium.org/4129005/show with and without src_image

Review URL: http://codereview.chromium.org/4147002
2010-10-26 21:40:25 -07:00
David McMahon
a0ff51c60d Created branch 0.9.102.B. Update CHROMEOS_VERSION_BRANCH=103
Change-Id: I786a1bbcdc57f383a0619e51e5af734cf56d5681
2010-10-26 16:59:32 -07:00
David James
db37501dbd Use delta_generator from chroot instead of from update_engine directory.
BUG=chromium-os:8185
TEST=Verify delta_generator is in path after emerging hard-host-depends.
     Generate image using delta_generator from chroot.

Change-Id: I03f6260960f472d4ebfc8305945da3cbfc67ff6e

Review URL: http://codereview.chromium.org/4170003
2010-10-26 16:42:04 -07:00
David James
af35e5c5f0 Update srcroot to be an absolute path.
This is required so that paths still work after we change directories.
Currently our branch builder uses this broken recipe :(

BUG=none
TEST=Check that "./cros_mark_as_stable.py -r .. clean" cleans both the private overlay and chromiumos-overlay

Change-Id: Ie4047fb091bf7af36dc28482ea73b085ec12893c

Review URL: http://codereview.chromium.org/4175004
2010-10-26 15:17:48 -07:00
Chris Sosa
a8860e4572 Exclude fake crash reporter directories from report.
Change-Id: I11357f7196b66f3e879e68efa5366af115f3992b

BUG=8192
TEST=Ran it with results from a test with crash reports in it.

Review URL: http://codereview.chromium.org/4156003
2010-10-26 14:36:40 -07:00
Chris Sosa
3b39a54ea3 Print last 200 lines of update_engine.log from failed update.
Change-Id: I0dbc760007038086b94d534d497a7f72b957f365

BUG=
TEST=Ran it on a failed update.

Review URL: http://codereview.chromium.org/4137003
2010-10-26 14:04:46 -07:00
David James
d2b72f7c2f Correctly initialize tracking branch in preflight rinse.
Currently cros/master is used for the tracking branch in the preflight
rinse step. This is wrong if --tracking_branch is specified
differently in the command-line options to cbuildbot.py.

BUG=none
TEST=Ran unit tests

Change-Id: Id4fb989863ae11f57889faf6a8d8b043b81da58e

Review URL: http://codereview.chromium.org/4104005
2010-10-26 12:35:37 -07:00
J. Richard Barnette
e1010d8cb2 Fix two very broken tests for null strings in archive_build.sh
Change-Id: I7c5d251ab1ae020c3ae8a10ca017c34a02eff893

BUG=None
TEST=./archive_build.sh --test_mod
TEST=./archive_build.sh --test_mod --from=../build/images/x86-generic
TEST=./archive_build.sh --board=x86-generic --gsutil_archive=/tmp --gsutil=echo
TEST=./archive_build.sh --board=x86-generic --gsutil_archive=/tmp --gsutil=echo --gsd_gen_index=echo

Review URL: http://codereview.chromium.org/4153001
2010-10-26 11:21:47 -07:00
Nick Sanders
ada8a1fdcc Notes:
This just matches H2C and H2O

Changes are:
-earlyprintk: serial isn't supported, so remove
-console=ttyS0: allow /dev/console to function, after serial console support is removed.

+quiet: sets loglevel=2, quiets early boot
+console=tty2: this will output console onto vt2.
+loglevel=1: this reduces output to vt2 past what quiet specifies.

BUG=chromium-os:8084
TEST="boot factory install shim, regular image. Note /dev/console works and outputs to tty2"

Change-Id: I2d77bf1de5870c7e610859f063d5a587acd56051

Review URL: http://codereview.chromium.org/4167001
2010-10-26 02:56:51 -07:00
David McMahon
eee7fdf432 Created branch 0.9.100.B. Update CHROMEOS_VERSION_BRANCH=101
Change-Id: I7e36f53c2ec7e0452a6fb80995bb4d9705677a27
2010-10-25 19:32:51 -07:00
David James
59b403d950 Add support for prebuilt uploading using rsync.
BUG=not yet
TEST=Try uploading prebuilts to codf30.jail. Also run unit tests.

Change-Id: Ib218e705633febeddbe5c104f67fa580e1fc7de4

Review URL: http://codereview.chromium.org/4102001
2010-10-25 16:41:50 -07:00
Anush Elangovan
01e1342394 Fix host prebuilts
Change-Id: I23b39dd422e902f6752c533eb55ac8baf508f4e4

BUG=
TEST=

Review URL: http://codereview.chromium.org/4124001
2010-10-25 15:10:56 -07:00
Chris Sosa
1b11f3813f Add sync after resize to avoid /dev/loop- is busy errors.
Change-Id: I7d38b7f78e5d32744ec3a9e1579d09bd16d64888

BUG=
TEST=Ran it.

Review URL: http://codereview.chromium.org/4108001
2010-10-25 15:10:26 -07:00
Chris Sosa
765db0f771 Add sed to remove path dependency for wget
Change-Id: Iecdea822e9600249a9596c059e4db980b409c0a0

BUG=8082
TEST=Built a vm image and ran sudo gmerge metrics

Review URL: http://codereview.chromium.org/4118001
2010-10-25 15:08:55 -07:00
Chris Sosa
3b44f34de7 Fix egrep for checking for rw/ro.
Right now we're not fixing symlinks because mount_gpt_image thinks it's mounted ro.

Change-Id: Ie61536cd8d7bc276831c488e7ab892db14b05a94

BUG=8116
TEST=Mounted image from device and locally with both rw, and ro options.

Review URL: http://codereview.chromium.org/4048006
2010-10-25 13:21:42 -07:00
Scott Zawalski
e2dae7e751 Change message with file reference to filename 2010-10-25 10:35:44 -07:00
Chris Sosa
f38f249eb4 Update config for cros_au_test_harness.
Change-Id: Iccc5d28f4520418c58089cdb53b6e644271b2eb3

BUG=
TEST=n/a

Review URL: http://codereview.chromium.org/4051003
2010-10-24 02:13:27 -07:00
Chris Sosa
b00c32c335 Fix the tree by stating to right path.
Change-Id: I33e861066e8a585ce839ebc7a8c23243fb18cd1c

BUG=8083
TEST=Ran unit tests

Review URL: http://codereview.chromium.org/4053007
2010-10-23 23:38:48 -07:00
Raja Aluri
2507b9254a Fixing the version number 2010-10-23 20:10:01 -07:00
Raja Aluri
64cb22c98d Created branch 0.9.98.B. Update CHROMEOS_VERSION_BRANCH=100
Change-Id: I5d4a9fa4035ade0bde6473498ad9ec02281fb237
2010-10-23 19:48:58 -07:00
Nick Sanders
ad0599f00c Workaround chrome-bot's special case wackiness.
BUG=4547
TEST="untestable - the failure can only occur on chrome-bot, which I don't have access to "

Change-Id: Ia90eaa7c673f16533dbc397adf7f76e6404c6d2b

Review URL: http://codereview.chromium.org/3978005
2010-10-22 21:15:02 -07:00
Chris Sosa
4a6e482b31 Gzip using the fastest option.
Change-Id: Id75e54879e896e42ef69659fc602f625858fd33f

BUG=
TEST=

Review URL: http://codereview.chromium.org/3989004
2010-10-22 17:30:21 -07:00
Ken Mixter
9b07a8ed9d Revert "Allow build of shim"
This reverts commit 9a9ba1f769.

BUG=
TEST=

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

Change-Id: I69d55a29bee690ac374c82a48fa718afe44dbaa1
2010-10-22 17:09:28 -07:00
Chris Sosa
7e493cb4d3 Archive test results and image after running vm suite.
Change-Id: Ic6d4a79a7ab58b8043805a6b826f251faa9f3a6c

BUG=
TEST=Running now (adding unit tests as well)

Review URL: http://codereview.chromium.org/4062003
2010-10-22 16:32:30 -07:00
Chris Sosa
6b6f35ec65 Always pass board to cros_mark_as_stable.
Change-Id: I9a724e4e20b8945fdaa1dc53afdddf2477a5bbab

BUG=
TEST=Ran unit tests.

Review URL: http://codereview.chromium.org/3956007
2010-10-22 16:14:36 -07:00
Kris Rambish
d07981d619 Adding append to make_factory_package
Change-Id: I37f0c93d1285c27731b58a977b91aa85f4fb2e63

BUG=7115
TEST=

Review URL: http://codereview.chromium.org/4006003
2010-10-22 15:32:28 -07:00
Chris Sosa
a851fe004a Remove env logic from cros_mark_as.
TBR

Change-Id: Ib720c2169762b240a3312472fc592ba69ba3494c

BUG=
TEST=

Review URL: http://codereview.chromium.org/4062004
2010-10-22 14:41:43 -07:00
Chris Sosa
804ad7df27 Clean package cache for packages you are building.
Change-Id: If8e3f2cfb649f138e48ab17539b2e02079ff1bed

BUG=
TEST=Ran with cros_mark --all clean / commit and with/without --verbose

Review URL: http://codereview.chromium.org/4019005
2010-10-22 14:29:48 -07:00
Chris Sosa
5e0909abad Robustify printing of test errors to stderr.
Change-Id: I1e5da670437ce6574910a34d09b30aa80aee6f4f

BUG=8056
TEST=Ran it with tests that both succeeded and failed.

Review URL: http://codereview.chromium.org/4007008
2010-10-22 12:34:38 -07:00
Chris Sosa
9fe00b9b13 Use minimums if options are too small.
Change-Id: Icd9402aec8a55c613c8fa12e917bf3fd63272271

BUG=
TEST=Ran it and saw minimums change.

Review URL: http://codereview.chromium.org/3956005
2010-10-22 12:34:16 -07:00
Chris Masone
8038b8f9ab [crosutils] Remove test-image-specific change of core_pattern
We were snaking core dumps out from under the crash reporter on test images, and no one was even using them.  We'd like to leverage the crash reporter to detect that crashes happened during a test run, so disable this.

BUG=7936
TEST=spin up a VM, send SEGV to chrome.  crash_reporter messages should appear in /var/log/messages

Change-Id: Icc2be55616ac931ca3ec1a7810ea3e09a006a26b

Review URL: http://codereview.chromium.org/4019006
2010-10-22 12:28:51 -07:00
Nick Sanders
9a9ba1f769 Allow build of shim
BUG=4547
TEST="run archive build"
Change-Id: I716fbd2f648b8e5137ee515aaed7be89a6af8f37

Review URL: http://codereview.chromium.org/3828015
2010-10-22 11:11:08 -07:00
Paul Stewart
f66c6d614e Complain (and more importantly don't blindly run) if AP or Client IP is unset
Add small if statement in cros_run_wifi_tests to balk if we didn't get
valid cell info from the server.

BUG=none
TEST=reboot everything and rerun while testbed server hasn't caught up yet

Review URL: http://codereview.chromium.org/4069001
2010-10-22 10:31:27 -07:00
Anush Elangovan
a6b1390fc5 Add branch support to preflight
Change-Id: Ia2592c6384e94e4e8e5400eddbf2e03aac150eef

BUG=7905
TEST=run cbuildbot on my workstation.

Review URL: http://codereview.chromium.org/4040002
2010-10-22 09:24:43 -07:00
Elly Jones
01693fec80 scripts: Remove bogus patch to software-update.conf
This caused a build break after http://codereview.chromium.org/3995007 was
committed, since we try to patch a now-nonexistent file.

BUG=None
TEST=Adhoc
./mod_image_for_test.sh --factory_install doesn't hang

Change-Id: Iac299c850765eedfcefcffb80c385b0e8c0fa277
Signed-off-by: Elly Jones <ellyjones@chromium.org>
Signed-off-by: Kliegs <kliegs@chromium.org>

Review URL: http://codereview.chromium.org/3973004
2010-10-22 09:47:36 -04:00
Chris Sosa
dcd1de0bb9 Change preflight cleanup process to always be run before any run and add lazy unmount before every run.
Change-Id: If7db175f828fccdd4caa342a0370e842503f16dc

BUG=8015
TEST=Ran it with cbuildbot with/without --clobber with/without old state.

Review URL: http://codereview.chromium.org/4007005
2010-10-21 18:22:50 -07:00
David James
676dff53cf Import portage when it's used to fix broken tree.
This is just a temporary workaround until buildbots have portage installed
outside the chroot. We should roll this back when that's fixed.

TBR=sosa@chromium.org
BUG=b0rked tree
TEST=ran unit tests

Change-Id: I004c1476e929212774218d50d10f371806cf6c7f

Review URL: http://codereview.chromium.org/4070002
2010-10-21 16:47:00 -07:00
Chris Sosa
6addb3032c Fix latest to be consistent.
Change-Id: Ic4bc37b9c41e231b3a2448a7fabd1f7a0c163ae3

BUG=
TEST=Ran it and it was correct with -m.

Review URL: http://codereview.chromium.org/4017005
2010-10-21 16:32:26 -07:00
Scott Zawalski
d367ed7a85 Update prebuilt.py to use gsdview instead of commondatastorage 2010-10-21 16:21:43 -07:00
David James
6be0f08169 Robustify and speed up cros_mark_all_as_stable.
What's new?
 - cros_mark_all_as_stable is now in Python and has unit tests.
 - We now detect and report coding errors that can cause incorrect behavior.
   E.g., if 9999 ebuild or stable ebuild can't be found, we report a hard
   failure so that developers will know about the problem.
 - We now check that git hashes we report actually match up with the
   right repository.
 - Unified diff of changes are now printed to stdout, so that developers
   can see a list of the changes and debug any problems.
 - cros_mark_all_as_stable now takes 2.5 seconds to run.

BUG=chromium-os:7795
TEST=Manually examined diff output from run of cros_mark_all_as_stable
     on full repository.

Change-Id: I762597c9b94e5f8e8171b83c966ad54e21a65c1b

Review URL: http://codereview.chromium.org/3798003
2010-10-21 16:11:00 -07:00
Chris Sosa
aa4670315b Fix equals in RunCommand's in cbuildbot.
Change-Id: If8cdde42a470c3d07cfd41552cf95dea7567688b

BUG=
TEST=Ran cbuildbot.

Review URL: http://codereview.chromium.org/3967002
2010-10-21 10:54:02 -07:00
Scott Zawalski
9310bb6bd3 Fix logic for debug and uprev
BUG=chromium-os:8000
TEST=NA

Review URL: http://codereview.chromium.org/4007003
2010-10-20 22:36:37 -07:00
Raja Aluri
2524a6d474 Revert "'Update CHROMEOS_VERSION_MAJOR=0 CHROMEOS_VERSION_MINOR=9 CHROMEOS_VERSION_BRANCH=94 CHROMEOS_VERSION_PATCH=0 CHROME_VERSION=8.0.552.10"
This reverts commit fb6410ca67.
2010-10-20 22:20:01 -07:00