Commit Graph

1008 Commits

Author SHA1 Message Date
Ken Mixter
fb0160fe6d Specify correct board in old flow
BUG=5766

Review URL: http://codereview.chromium.org/3165038
2010-08-18 16:23:03 -07:00
Chris Sosa
b34604c49a Change default tracking branch for new workflow
As I was writing a doc to describe how to manually uprev I decided
that this was a good time to change the default to be consistent
with the new workflow.

Change-Id: I18932f66004161303f22835ab3b4a8436995300a

Review URL: http://codereview.chromium.org/3125024
2010-08-18 15:12:37 -07:00
Kenneth Waters
cb39f9929b update_bootloaders.sh: Fix arm-generic build.
BUG=None
TEST=Passes bash -n

Review URL: http://codereview.chromium.org/3161029
2010-08-18 14:35:22 -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
Darin Petkov
5ad2cb5d03 Add repo bash_completion under chroot.
BUG=5807
TEST=enter_chroot, tried repo bash completion

Change-Id: Ic90c7bd7748fb8c79b212f465326867bbdca9c80

Review URL: http://codereview.chromium.org/3110024
2010-08-18 14:01:56 -07:00
Sean O'Connor
d52c5ea1bc Make enter_chroot spew logs to stderr.
It's sometimes useful to run a command in chroot and redirect/pipe stdout. Any objections to having enter_chroot send its chatter to stderr?

Review URL: http://codereview.chromium.org/3160024
2010-08-18 21:18:23 +02:00
Kenneth Waters
eca76464c7 make_image: Install u-boot scripts to ESP partition.
BUG=1150
TEST=Built image for tegra2_dev_board, and x86-generic

Review URL: http://codereview.chromium.org/3109018
2010-08-18 11:17:01 -07:00
Darin Petkov
6944c5dd68 Handle tilde expansion in cros_workon tab completion.
BUG=5623
TEST=tried ~/trunk/src/scripts/cros_workon

Change-Id: I72aaf5d538ef53b06a4e454935528db0731f03c7

Review URL: http://codereview.chromium.org/3156025
2010-08-18 09:57:34 -07:00
Sean O'Connor
88a33da077 cros_extract_deps -j writes JSON, sorted by package name.
Rationale: Consumers of this output should not have to eval() python
code in order to use the output. Also potentially useful for dumping
out of buildbot for consumption by other web-based tools.

Review URL: http://codereview.chromium.org/3148022
2010-08-18 18:46:00 +02:00
Will Drewry
12f14ce889 build_image: default to using verified rootfs for x86
This change enables root filesystem integrity checking for all x86
builds by default.  All mod_image_for_* work with this and the
factory_install.  In addition, the BVT tests all pass running on
a dm-verity root.

[I will send a mail to the chromium-os-dev once this lands with instructions on how to build with it and how to turn it off (chromeos-setimage) on an installed machine.]

Once this is functioning, I will start migrating the build/install process over to use the UUID-based boot.

TEST=built x86-generic, mod'd for test, installed, ran suite_BuildVerify
BUG=chromium-os:5100

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

Change-Id: Ib23962b7a5e034ef6aea31b4361944ba894700c6
2010-08-17 17:27:16 -05:00
Will Drewry
d253badb6c build_image: make sure the factory_image size is propagated
Verified rootfs-based factory installers fail because the ROOT_SIZE_BYTES is
updated, but the information is not propagated to the boot.desc which
cros_make_image_bootable uses.  The result is that mod_image_for_test
incorrectly appends the rootfs hash even though it is correctly computed.

Random note:
build_kernel_image uses dumpe2fs to compute the size, but
cros_make_image_bootable uses the supplied size.  These shouldn't
diverge though the partition size should accomodate the addition of the
hashes.
TODO(wad) Add checking of sizes in cros_make_image_bootable

TEST=x86-generic build image with --enable_rootfs_verification and --factory_install; then put in a machine and it no longer spewed dm-verity hash errors and the root hash checked successfully!
BUG=chromium-os:5100

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

Change-Id: I174e3661b80d83b25f3af95ff1eb77f634a7e797
2010-08-17 14:09:41 -05:00
Tan Gao
843b70acf4 Issue 5183: Create a developer shim for release builds
Change-Id: I14cd9dc365093c0450210d7853ad5f67ffa0ddd0

BUG=chromium-os:5183
TEST=1) manually built a dev install shim and verified it's only bootable when dev switch is ON

Review URL: http://codereview.chromium.org/3153001
2010-08-17 09:41:48 -07:00
David James
e122814469 parallel_emerge: Crack all counter-plan dependencies.
Previously, parallel_emerge only broke counter-plan dependencies if they were
mutually cyclic. This doesn't work, because these deps might be involved in
an unrelated cycle.

To fix this, we break all counter-plan dependencies that are involved in any
cycle. This fixes make_chroot --fast, which currently fails with a deadlock.

Besides the above, I've also added additional cycle-checking to the install
plan generation code so that cyclic dependencies are caught earlier. I also
cleaned up FindCyclesAtNode to be a bit more understandable -- I wasn't 100% sure
that it was actually correct so I cleaned it up so that it was easier for me to
understand that it is in fact correct. Not sure that this part fixes any bugs,
but it's easier for me to analyze the behavior of FindCyclesAtNode now.

TEST=make_chroot --fast (Note that make_chroot --fast is deprecated, but it's
     good to fix the cycle cracking anyway.)
BUG=chromium-os:5795

Review URL: http://codereview.chromium.org/3156018
2010-08-16 21:30:50 -07:00
Scott Zawalski
5717746db7 Created branch 0.8.66.B. Update CHROMEOS_VERSION_BRANCH=67
Change-Id: Id6246d0e316160e83652b74358c79420070456f0
2010-08-16 17:11:44 -07:00
Andrew de los Reyes
4db8bd0738 Factory install: unbreak
BUG=None
TEST=None

Review URL: http://codereview.chromium.org/3169016
2010-08-16 16:02:03 -07:00
Andrew de los Reyes
6faff36229 AU: make mk_memento_images not change rootfs
Also, enforce use of cros_generate_update_payload to generate images.

BUG=5771
TEST=Ran ./cros_generate_update_payload to make full update

Review URL: http://codereview.chromium.org/3135024
2010-08-16 15:24:04 -07:00
Tan Gao
2fcfbbe8cf replace mod_image_for_recovery.sh with new --recovery flag to build_image
Change-Id: I407d39ca461bbe609812e2b3bd2a51e67e331659

TEST=manually built a recovery image (non-dev mode, --withnodev) and verified
chromeos-install completed successfully when installing from USB to target HD

Review URL: http://codereview.chromium.org/3174005
2010-08-16 11:25:51 -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
0d11563bfd Move leave_core where other similar files exist
BUG=5696

Review URL: http://codereview.chromium.org/3109014
2010-08-13 15:51:07 -07:00
Darin Petkov
4faf84bc14 cros_workon bash completion -- handle flags anywhere.
BUG=5623
TEST=tried ./cros_workon with various arguments

Change-Id: Ia1a48b73e4f55006fd767a7d15b8e38e467aa23e

Review URL: http://codereview.chromium.org/3152018
2010-08-13 15:32:50 -07:00
Darin Petkov
593e796dfa Implement basic tab-completion for cros_workon arguments.
Takes effect when you sync/re-enter chroot.

Also, minor non-exhaustive style cleanup of existing code.

BUG=5623
TEST=tried tab completion with ./cros_workon and various options

Change-Id: I46d2eb29205a3a4ce350b82e7eced7f2069095ca

Review URL: http://codereview.chromium.org/3185003
2010-08-13 14:45:02 -07:00
David James
8055a1fc25 Don't pass on --jobs to individual emerge processes in parallel_emerge.
When we pass on --jobs to individual emerge processes, it causes them
to hide their output. This makes it harder to debug why they are
failing or hanging. Example: http://goo.gl/C6Ru

TEST=Made sure that output is shown by emerge processes when --jobs is used.
BUG=chromium-os:5684

Review URL: http://codereview.chromium.org/3168012
2010-08-13 13:35:56 -07:00
J. Richard Barnette
5c2290cda4 Print a newline after reading password in cros_download
BUG=none
TEST=./cros_download_latest_image

Review URL: http://codereview.chromium.org/3151013
2010-08-13 11:52:13 -07:00
David James
a8ddd0bfdb Remove ltp from set of tests to build.
The ltp tests don't pass, and take a long time to build. Once they pass,
it'll make sense to add them back. But otherwise, no point waiting for their
long build process to complete.

BUG=none
TEST=Run build_packages --withautotest

Review URL: http://codereview.chromium.org/3121010
2010-08-12 17:34:57 -07:00
David James
f4170f83c3 Move printing of output to a separate thread.
This should cut several minutes off the time for build_packages --nousepkg
--showoutput.

TEST=Ran build_packages --showoutput, verified output.
BUG=chromium-os:5647

Review URL: http://codereview.chromium.org/3106008
2010-08-12 17:34:06 -07:00
Ken Mixter
bc69d7bae4 Utility to generate minidump symbols for developer diagnostics
BUG=4882, 4886

Review URL: http://codereview.chromium.org/2825054
2010-08-12 17:03:47 -07:00
Ken Mixter
1334788772 Leave core files around for developers to inspect.
BUG=5358

Review URL: http://codereview.chromium.org/3170008
2010-08-12 16:51:52 -07:00
Chris Sosa
bb1d3b0076 Don't throw an error if not on stabilizing branch and give more information on exit.
TEST=Ran "cros_mark_as_stable push" with no stabilizing_branch

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

Change-Id: I31dadc354e224f0f19f0878581204678391ac108
2010-08-12 10:33:53 -07:00
Chris Sosa
82047a9d48 Add some information to cbuildbot output.
TEST=Ran cbuildbot locally.

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

Change-Id: I8c80334480a4a2e4bb32234d323c0b129bed4692
2010-08-12 10:07:35 -07:00
Ken Mixter
6cb2462132 Use generate_test_report to generate the run_remote_test report.
BUG=5359

Review URL: http://codereview.chromium.org/3164008
2010-08-11 17:23:40 -07:00
Chris Sosa
cf7e8ff5b7 Exit cleanly if nothing to mark
TEST=Ran cros_mark_all_as_stable with packages and without packages to
mark and had them both succeed with exit code 0.
BUG=5486

Review URL: http://codereview.chromium.org/3179004
2010-08-11 16:23:33 -07:00
David James
71fa14b024 Don't install autotest bits to the image.
Autotest installs stuff to the image via ssh, so there's no need to include
all of this stuff to the image. This saves disk space. Note that
/usr/local/autotest-chrome is currently already excluded from the image
because of a hack in the chrome ebuild, and that /usr/local/autotest is
usually also excluded from the image because autotest is not included
as a dependency of any packages that are installed.

In the factory setting, it looks like the factory has its own code for
installing autotests via rsync. Presumbably, if the factory tests are
managing the autotest directly, they won't want emerge mucking with the
directory as well on the image. Currently, emerge doesn't muck with the same
directory, but we probably want to ensure that it doesn't start doing that in
future to ensure sanity.

TEST=Built images. Modded for factory test. Verified that (a) build directory contains autotests, (b) regular images do not contain autotests; and (c) images modified for factory test do contain autotests

Review URL: http://codereview.chromium.org/3124010
2010-08-11 16:15:16 -07:00
Mandeep Singh Baines
6718164717 cbuildbot: use correct port
Ugh, it worked on my machine because of my .ssh/config but need to
explicitly specify port for it to work on buildbot.

TBR=sosa
BUG=5532
TEST=This change was in the previous location of cbuilbot.py and working
correctly.

Change-Id: Id53a76bcb5d43c37ac725267864048d833f5a6ee

Review URL: http://codereview.chromium.org/3144005
2010-08-11 10:29:56 -07:00
Zdenek Behan
077af11ba9 cros_workon: check for existence of local manifest before cat
* Fixes a dumb error message

	modified:   cros_workon

Review URL: http://codereview.chromium.org/3129008
2010-08-10 18:27:25 -07:00
David James
a1c046d469 Tell emerge to stop beeping at us.
By default, emerge will pause and beep when it has messages that it wants the
user to see. This beeping is not useful during a parallel merge, so we turn it
off.

TEST=Ran parallel_emerge udev. It stopped beeping and completed faster.
BUG=none

Review URL: http://codereview.chromium.org/3080005
2010-08-10 12:43:25 -07:00
Chris Sosa
cd358fe1cb Adding cbuildbot to cros_utils. Leaving old version in repo until buildbot changes over.
TEST=Ran locally outside of chroot.  Required change to remove Exception OSError as
e because "as" is a Python 2.6'ism

Review URL: http://codereview.chromium.org/3146001
2010-08-09 19:33:22 -07:00
Zdenek Behan
5f66b8667a cros_workon: misc fixes to manifest re-generation
* Only run the regenerate once, after start
* Make regenerate preserve old projects from local manifest
* Make pkgname not found a non-fatal error
* Delete misc debug messages

	modified:   cros_workon

Review URL: http://codereview.chromium.org/3115001
2010-08-09 18:03:01 -07:00
Andrew de los Reyes
b20bc30d4c generate_update_payload script: script to generate full/delta update payloads
This script wraps the old memento udpate generator and the new delta
updater. It will also generate new-style full updates soon, which are
full updates that use the delta-update format, when that code is ready.

BUG=5248
TEST=ran local script to do full/delta update

Review URL: http://codereview.chromium.org/2873082
2010-08-09 15:55:11 -07:00
Chris Masone
626ced822c Fake authserver SSL certs now valid for 21 days, instead of 2
BUG=5130
TEST=create a test image, boot it on a device, and run "sudo nsscertutil -d "sql:/etc/fake_root_ca/nssdb" -L -n FakeCert | less".  Look at the section of the output marked "Validity:" and make sure the Not Before and Not After sections indicate dates that are 3 weeks apart

Change-Id: I67cf7e71027147f83c1bc916557bc06ef66fa0e0

Review URL: http://codereview.chromium.org/3075025
2010-08-09 14:41:17 -07:00
Olof Johansson
6d49138087 fix print of total elapsed time
BUG=none
TEST=run build_image, happen to finish on a time with less than 10 seconds in it, watch the missing 0-padding

Review URL: http://codereview.chromium.org/3050047
2010-08-09 16:05:50 -05:00
David McMahon
4c5d388cb5 Created branch 0.8.64.B. Update CHROMEOS_VERSION_BRANCH=65
Change-Id: Ideee46febd9f00abc5b404372920aafbebe82994
2010-08-09 13:55:16 -07:00
Zdenek Behan
19294323c6 cros_workon: refactor local manifest creation, kill duplicate entries (repo doesn't like them)
modified:   cros_workon

Review URL: http://codereview.chromium.org/3076046
2010-08-09 13:51:25 -07:00
robotboy
508d08fdfb Add check for spaces in board and variant names.
Review URL: http://codereview.chromium.org/3084028
2010-08-09 13:29:30 -07:00
Nick Sanders
bfbb74f667 allow firmware fetch
Review URL: http://codereview.chromium.org/3013066
2010-08-09 12:14:56 -07:00
Olof Johansson
7e9226f08a parallel_emerge: catch 404 errors when getting packages
BUG=none
TEST=run build_packages on --board=tegra2_dev-board-opengl right now, since binhost hasn't been populated yet.

Review URL: http://codereview.chromium.org/3035058
2010-08-09 11:11:13 -07:00
Paul Stewart
072ea6f30e Remove .svn files from the client directory to save space
Copying the .ssh directories within client takes up O(2n) space in
the stateful partition

BUG=none
TEST=reran mod_image_for_test.sh

Review URL: http://codereview.chromium.org/2832079
2010-08-07 17:38:35 -07:00
David James
733fc865db Add --show-output option to parallel_emerge which prints output from jobs.
Also update parallel_emerge to print output in general if you hit
CTRL-C or if a job is running for more than an hour. Also cleanup exit
handling so that emerge exits a bit more cleanly, and so that we don't
hang if emerge throws an Exception.

BUG=none
TEST=Ran ./parallel_emerge --show-output -uDNve chromeos

Review URL: http://codereview.chromium.org/3010056
2010-08-06 17:18:57 -07:00
Zdenek Behan
638976a796 cros_workon: when finding the ebuild path, look for the 9999 ebuild
modified:   cros_workon

Review URL: http://codereview.chromium.org/3015063
2010-08-06 15:13:03 -07:00
Zdenek Behan
d119ee8337 cros_mark_all_as_stable: blacklist autotest,autotest-tests
Review URL: http://codereview.chromium.org/2878086
2010-08-06 14:31:32 -07:00
Zdenek Behan
a203b46c48 cros_mark_all_as_stable: introduce blacklist, set the initial blacklist source as ./
* This allows to block a list of ebuilds from being uprevved by the PFB
* With little modification, there could be a GUI which allows people to manage
a blacklist on the server, with stating the reason
(ex.: autotest-tests - $me, creating the ebuild, unstable for now)

	modified:   cros_mark_all_as_stable

TEST=
1) create a blacklist:
chromeos-base/autotest
chromeos-base/autotest-tests
2) run ./cros_mark_all_as_stable --board=x86-generic
...
INFO   : chromeos-base/autotest blacklisted, skipping
INFO   : chromeos-base/autotest-tests blacklisted, skipping
...

Review URL: http://codereview.chromium.org/3076038
2010-08-06 14:18:32 -07:00