Commit Graph

28179 Commits

Author SHA1 Message Date
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
Raja Aluri
fb6410ca67 'Update CHROMEOS_VERSION_MAJOR=0 CHROMEOS_VERSION_MINOR=9 CHROMEOS_VERSION_BRANCH=94 CHROMEOS_VERSION_PATCH=0 CHROME_VERSION=8.0.552.10
Change-Id: Ic0121ebe1d8b25887a37c23a249513b7fc0af280
2010-10-20 22:19:24 -07:00
Luigi Semenzato
195aebeaea Add tpm_tis module configuration options in preparation for linking with kernel
We need to set these options in order to link the TPM driver in the kernel before we fix the PNP table in the firmware.  This is the least disruptive change that makes the TPM available earlier in the boot sequence.

Change-Id: I729cd7c153507200e177895bae01951e97b70968

BUG=none
TEST=rebuilt kernel, reinstalled, booted, verified that tcsd still runs

Review URL: http://codereview.chromium.org/3969001
2010-10-20 17:35:00 -07:00
Will Drewry
ef22d8fe60 kernel_fetcher.sh: use ro for rootfs.image
With new changes to the rootfs, if it is verified, it won't be
mountable rw.  Since this script just copies out a file, making it
ro (instead of calling enable_rw_mount) seems to make sense.

TEST=?
BUG=chromium-os:7468

Change-Id: I0941e981826005cea1c70653c45c5ae2c5f5a9e0

Review URL: http://codereview.chromium.org/4027001
2010-10-20 18:58:05 -05:00
Will Drewry
f929c3012c image_to_vm: fix up the rootfs for mounting rw
Use new helper for accessing a verified rootfs.

TEST=ran image_to_vm and it worked
BUG=tree b0rked

Change-Id: I03c1c55d1e1056081078cbdd8797235636d4845d

Review URL: http://codereview.chromium.org/4023001
2010-10-20 18:48:20 -05:00
Will Drewry
9b7cb51697 common.sh: switch out echo -ne for printf and fix incorrect offset
echo -ne isn't portable but printf with octals is so this
makes the switch.

In addition, the current offset is off by 3 and is updating the UUID space.
This was from style cleanup and all functional test passed - of course.
This change fixes that too.

TEST=built and installed and checked ro enforcement works
BUG=chromium-os:7972

Change-Id: Ifb3cb2c6f3219af819baff5750453439e1ba6edf

Review URL: http://codereview.chromium.org/3997001
2010-10-20 18:11:24 -05:00
Chris Sosa
e38f90f309 Add ability to blacklist packages from chromeos-base/chromeos.
Change-Id: I05370137dbe9f9adc7b18f2ff77d1b7680275c37

BUG=7973
TEST=Ran with/without current blacklist file.  Also, added chromeos-base/chromeos-chrome
to test it actually dies correctly.

Review URL: http://codereview.chromium.org/4005002
2010-10-20 16:04:23 -07:00
David James
4f7f855728 Update prebuilt.py to filter Packages database.
This ensures that the Packages database doesn't contain private packages.
This is necessary so that the database matches up with the actual files
we upload.

BUG=chromium-os:4843
TEST=Ran unit test

Change-Id: I0355b4ab867a0d08396e45b04523a487951475f4

Review URL: http://codereview.chromium.org/3930001
2010-10-20 14:48:04 -07:00
Will Drewry
55b42c94ca cros_make_image_bootable, mount_gpt_image, common.sh: root filesystem changes: ext2, ro by default
This change makes more of the root filesyste metadata static across builds, but
more can be done there.  It also changes the root filesystem to use ext2 as
we don't need journaling in normal mode.  Optionally we could use ext3 for
non-verified if desired (it's an easy change).

In particular, this change cleans up the following:
- clears the rootfs uuid
- labels it C-ROOT (instead of C-KEYFOB)
- removes reserved inodes and blocks

The major feature of this change, however, is that it adds two simple
helpers to common.sh: disable_rw_mount and enable_rw_mount.  They will
set high order byte (le) in the ro compat field to be 0xff.  This will
tell the kernel that the filesystem uses features R24-R31 which are safe
for use on the running kernel iff the filesystem is mounted read-only.

These functions are called in cros_make_image_bootable and
mount_gpt_image, respectively.  mount_gpt_image will always
enable_rw_mount and cros_make_image_bootable will disable_rw_mount if
--enable_rootfs_verification is true.

The approach is ugly but reasonably well contained.  If ext2 ever gets a
new revision and new features in the same range are introduced, then we
would be getting inconsistent behavior.  That said, it is unlikely that
that churmn will happen and if the impact is negative, it will ideally
show up during testing.

N.B., this will likely result in changes needing to be made to the
signing scripts in vboot_reference to ensure that rw mounting is
enabled/disabled in the same way (E.g., during stamping).

BUG=chromium-os:7468
TEST=- built x86-generic, imaged to usb stick, attempted to mount rw /dev/sdc3 on the host and was properly bounced.
     - booted to the image just fine on a dogfood device.
     - mod'd for recovery, then installed and booted.
     - mod_image_for_test runs with no errors; booted the resulting image as well
     - booted a factory_install with the pending dm changes
     - BVT passed with build_image x86-generic (vboot enabled)
     - [in progress] autotest that checks if the rootdev = /dev/dm-0 and
       then does a dumpe2fs | grep -q FEATURE_R31

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

Change-Id: If4dcba7568a110f4e32627c916d9e5741e5e5414
2010-10-20 15:44:11 -05:00
Chris Sosa
6304adc473 Setup python symlinks for python on stateful partition.
Change-Id: Ifbfbd3b55ae97ea94ea5bba40a001c6a1ddbf7a0

BUG=720
TEST=Ran suite_Smoke in a VM and ran python from command line and checked
to see if I could import packages from /usr/local/site-packages.

Review URL: http://codereview.chromium.org/3972001
2010-10-20 13:40:33 -07:00
Will Drewry
d6435d4746 kernel cmdline: add dm_verity.dev_wait=1
dm_verity will wait for a device to be ready. This is needed in the factory installer so that
dmsetup doesn't fail early before the usb device is visible.

TEST=built images and booted them (x86-generic & factory installer)
            Prior to commit, need to ensure dev_wait doesn't break unverified boot behavior
BUG=chromium-os:7451

Change-Id: I5b838b94e6a17dd0778331121311cdfe180991ce

Review URL: http://codereview.chromium.org/3936001
2010-10-20 15:37:46 -05:00
Chris Sosa
debca51332 Add --debug option to cbuildbot for developers to use cbuildbot without pushing changes.
Change-Id: Idda6c7287cdb1863eb4abe8c56da2e763e9fe777

BUG=7926
TEST=Ran with --debug and verified I didn't push a change.

Review URL: http://codereview.chromium.org/3880002
2010-10-20 11:00:44 -07:00
Scott Zawalski
cd1c749b0e Created branch 0.9.92.B. Update CHROMEOS_VERSION_BRANCH=93
Change-Id: Ie0599d9d0f38502f4b4e35155bbde1a34bf24204
2010-10-19 23:52:46 -07:00
Doug Anderson
0c9e88de6c Added a function to update chroot sudoers automatically.
This function is now called by enter_chroot.sh.  A separate change
will call the function from make_chroot

Change-Id: I4fc07c413e56db3e5e7617428f20f2ffc02790d7

BUG=chromium-os:7072
TEST=Took root out of sudoers and ran enter_chroot.sh script; saw that it was re-added.

Review URL: http://codereview.chromium.org/3909001
2010-10-19 14:49:39 -07:00
Chris Sosa
62d75f0582 Get correct DEBUG logs for generate_test_report.
Change-Id: Ia77ec225abc0e8906662b57ca8e71bbb13b42635

BUG=
TEST=Ran it.

Review URL: http://codereview.chromium.org/3890002
2010-10-19 13:57:37 -07:00
David McMahon
80e71f2407 Moving CHROMEOS_VERSION_BRANCH=91 2010-10-19 13:21:26 -07:00
Chris Sosa
5911f2003b Clean up any previous kvm state.
Change-Id: I01fecde5e687992ccf36889803a4cb84b71a38b2

BUG=7818
TEST=Ran with/without previous kvm instance

Review URL: http://codereview.chromium.org/3760012
2010-10-19 12:58:24 -07:00
Chris Sosa
17414a6b24 Propagate board correctly for latest image and remote_tests.
Change-Id: I42741280656e9ee300dbc264ef7bf3345efa5223

BUG=
TEST=Ran it with test builder on own machine.

Review URL: http://codereview.chromium.org/3826015
2010-10-18 17:08:53 -07:00
Scott Zawalski
fe3805ac16 Update prebuilt to modify make.conf files for the board/host targets.
This changes the format that I was updating from 'key value' to 'key=value'.
I modified my unittests to test this.

BUG=NA
TEST=Branch runs without commit.

Review URL: http://codereview.chromium.org/3858003
2010-10-18 16:36:44 -07:00
Ken Mixter
b8a72348e4 crosutil: No longer use autotest-0.0.1 in run_remote_tests even outside chroot
Change-Id: If83bf22fde6259b64fdd007066b5c46c7925d120

BUG=
TEST=Run a few tests inside and outside chroot

Review URL: http://codereview.chromium.org/3790005
2010-10-18 13:34:29 -07:00
Scott Zawalski
273cdc8a3e Moving trunk to CHROMEOS_VERSION_BRANCH=89 2010-10-18 13:22:01 -07:00
Chris Sosa
dfcb89b7d5 Increase statefulfs_size to accomadate larger stateful partitions.
Change-Id: I0713b31b0393fc696d1112ee4cad4c20d86e602d

BUG=
TEST=Config change

Review URL: http://codereview.chromium.org/3860002
2010-10-18 10:26:16 -07:00
Scott Zawalski
d1ea7efe8b Created branch 0.9.86.B. Update CHROMEOS_VERSION_BRANCH=88
Change-Id: I32c0d6a289276c74dc573131a687a9c170b81a58
2010-10-17 20:11:31 -07:00
Chris Sosa
d4b4cb8bc7 Print out debug of test when it fails.
Change-Id: I9dc535a7d1ee5feeb364456ca8ff367285cdad2b

BUG=
TEST=Ran with with a test suite with both passing / failing tests

Review URL: http://codereview.chromium.org/3814009
2010-10-15 16:36:45 -07:00
David James
ef9f04e2fd Update cbuildbot to use git.chromium.org instead of src.chromium.org.
src.chromium.org is no longer supported for git operations.

BUG=chromium-os:7830
TEST=none

Change-Id: Ia7cd9ff76625441f16d20d2f9a8e0f752dca0586

Review URL: http://codereview.chromium.org/3782010
2010-10-15 16:18:29 -07:00
Anush Elangovan
189d85d20e Revert "Fix issue with stale cache from bad builds."
This reverts commit 365d4b0cc8.

Fix preflight breakage, this seems like the most possible cause. Will recommit if not.

BUG=
TEST=

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

Change-Id: I93fe463fec77c445e7ff0ec86db25d5ef2997ad7
2010-10-15 11:36:53 -07:00