Commit Graph

20 Commits

Author SHA1 Message Date
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
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
Kelly Lucas
3c784f78fe Only kill the dev server when it is started by image_to_live process.
Review URL: http://codereview.chromium.org/1986012
2010-05-17 13:57:30 -07:00
Eric Li
9adee78b5c Add an update_url parameter to image_to_live.
So it could update netbook from a dev server hosted on another server.

Review URL: http://codereview.chromium.org/2012011
2010-05-12 11:53:39 -07:00
Eric Li
8a970bcd00 Enhance image_to_live script to really wait till dev server is up and running.
Review URL: http://codereview.chromium.org/2050001
2010-05-07 10:28:50 -07:00
Eric Li
18e38c33e6 Enforce image update from image_to_live.
The issue here is if an previous update succeeded but reboot not happen, for what ever unknown reason, this host lost the ability to update again.

I think some of the current update failure in the lab should be caused by this.

Review URL: http://codereview.chromium.org/2031002
2010-05-06 16:47:39 -07:00
Sean O'Connor
a5351aa563 Adjust image_to_live's devserver flags to work around lab network port restrictions.
Review URL: http://codereview.chromium.org/1967002
2010-05-04 18:43:32 -07:00
Chris Sosa
c1214dc327 Rename update script and update some documentation.
Review URL: http://codereview.chromium.org/1912005
2010-05-04 16:17:49 -07:00
Chris Sosa
5c37ce2e03 Modifies dev server to produce stateful gzip and modify image_to_live to use it.
TEST=Tested with image_to_live, memento_updater without image_to_live

This mimics the update process of the real image for the stateful partition.
By moving this the update into a separate script, I can add it to the gmerge
package such that developers will not have to use image_to_live.  This change
also removes the dependency on tar.

Review URL: http://codereview.chromium.org/1774021
2010-05-03 20:18:02 -07:00
Chris Sosa
257117d2cc Cleans up image_to_live changes and handles errors more gracefully
TEST=Tested by running image_to_live with correct formated images as well
as images that are missing either /var or dev_image directories.

Review URL: http://codereview.chromium.org/1705023
2010-04-30 12:41:59 -07:00
Chris Sosa
48768d8763 TBR: Missed last commit for image_to_live in last push 2010-04-27 15:48:09 -07:00
Chris Sosa
ef96430135 Changes to image_to_live to copy stateful partition over
Review URL: http://codereview.chromium.org/1784006
2010-04-27 13:21:08 -07:00
Mike Truty
c5f1d31034 Add ssh cleanup to avoid leaving running agents around when imaging problems.
Review URL: http://codereview.chromium.org/1609025
2010-04-14 16:11:22 -07:00
Eric Li
ac2de13847 Refine image_to_live script to log all output from devserver.
Review URL: http://codereview.chromium.org/1572034
2010-04-13 13:19:08 -07:00
Darin Petkov
7c2cef2e70 Rename image_to_live and fix it so that it works with the new start_devserver.
Review URL: http://codereview.chromium.org/1083007
2010-03-19 16:45:00 -07:00
Eric Li
83b50104dd 1. the dev server running with python 2.6 now, not python.
2. I dont fully understand why we need sudo inside this script. So I am removing it. Since I could not enter sudo password inside crontab. Please let me know if I missed anything and I could revert.

Review URL: http://codereview.chromium.org/666002
2010-03-05 11:18:17 -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
57d2a6bd12 Add functionality required for perf dashboard.
image_to_live.sh - fix problem where errorvalue is non-zero even when
  reimage was successful.
run_remote_tests.sh - add ability to stow build description in the
  autotest database so we can track the exact build for which
  tests succeed/fail.

Review URL: http://codereview.chromium.org/547018
2010-01-18 10:58:25 -08:00
Ken Mixter
689b9ee48e Simple way to run client/server autotest(s) from server.
This is a script to run client or server autotests on a live Chromium OS instance, collect results, and optionally upload the to an autotest database.  This includes functional and performance tests.  We assume the remote instance is running an appropriate image installed (one created using mod_image_for_test.sh and possibly installed using image_to_live.sh).

An example run might be

run_remote_tests.sh --remote=192.168.1.5 BootPerfServer -o results.txt

This example will run src/platform/testing/server_tests/system_BootPerfServer
5 times on instance at 192.168.1.5 and collect results in result.txt.

Also refactors and improves readability in image_to_live.sh.

Review URL: http://codereview.chromium.org/519041
2010-01-07 18:23:52 -08:00
Ken Mixter
4d8e50a4de Create a method to push an image to a live running Chromium OS machine provided you have root ssh access with a local private key (which is the case for test builds). Updates the running instance and reboots it.
Review URL: http://codereview.chromium.org/512003
2009-12-22 17:24:49 -08:00