3e96cc24b38bd15c19cee0ba79de2b4c3297a910 |
|
08-Jun-2017 |
Gwendal Grignou <gwendal@chromium.org> |
autoupdate: Install stateful_update from the right location stateful_update can be locally stored at 2 locations: /usr/sbin/stateful_update installed by package chromeos-base/devserver, or by python modules: either during unit test or by build_externals.py on the labserver. BUG=chromium:689105 TEST=Unit test. Test stateful_update is executable. Check powerwash machines are updating properly. Change-Id: Ib43552651b7b1bae594254253b0d623f5e72f8a5 Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/527422 Reviewed-by: Richard Barnette <jrbarnette@google.com>
/external/autotest/client/common_lib/cros/autoupdater_unittest.py
|
f15c8fc1d0842903074da84e462822d04dda2ce1 |
|
03-Mar-2017 |
Luigi Semenzato <semenzato@chromium.org> |
autoupdate test: retry if update_engine daemon has not started yet We see that update_engine_client fails to connect to update_engine shortly after boot because update_engine has not started yet. In such case, we wait a bit and retry. Some restructuring is needed to share the functionality between trigger_update() and run_update() BUG=chromium:690232 TEST=ran on test shard Change-Id: I596f2fd88462af3d56a5d33ead33fad525fabb6e Reviewed-on: https://chromium-review.googlesource.com/449975 Commit-Ready: Luigi Semenzato <semenzato@chromium.org> Tested-by: Luigi Semenzato <semenzato@chromium.org> Reviewed-by: Luigi Semenzato <semenzato@chromium.org> Reviewed-by: Richard Barnette <jrbarnette@google.com>
/external/autotest/client/common_lib/cros/autoupdater_unittest.py
|
e76d9f8b9cfa7d1075d3d757f82b9a8792690886 |
|
21-Nov-2016 |
Luigi Semenzato <semenzato@chromium.org> |
autoupdate tests: retry update_client on network errors We see many autoupdate test failures from network errors (update_client error 37 and broken ssh connections) which may succeed on retry. This change makes the test retry once for those errors. BUG=chromium:657548 TEST=none Change-Id: Id74272639ace343e6f1932a8f4d60db4eec50fb2 Reviewed-on: https://chromium-review.googlesource.com/413076 Commit-Ready: Luigi Semenzato <semenzato@chromium.org> Tested-by: Luigi Semenzato <semenzato@chromium.org> Reviewed-by: Aviv Keshet <akeshet@chromium.org>
/external/autotest/client/common_lib/cros/autoupdater_unittest.py
|
d999272ea09ef0541116cf39307cc6a87e8a168d |
|
29-Feb-2016 |
Shuqian Zhao <shuqianz@chromium.org> |
[autotest] show the update_engine error msg on chromeos waterfall Every time when autoupdate test failed, we will ask the update_engine to return the last update error messages, and show on the waterfall. BUG=None TEST=Unittest, trybot, and run provisioning jobs on local dut. Change-Id: I5cb80fb45ca6eb10ef71e9b253cf00ef37c410c8 Reviewed-on: https://chromium-review.googlesource.com/329742 Commit-Ready: Shuqian Zhao <shuqianz@chromium.org> Tested-by: Shuqian Zhao <shuqianz@chromium.org> Reviewed-by: Shuqian Zhao <shuqianz@chromium.org>
/external/autotest/client/common_lib/cros/autoupdater_unittest.py
|
80aa910c8a388371bdd59b5be745e6a5e9c77d4e |
|
25-Jan-2016 |
Dan Shi <dshi@google.com> |
[autotest] Change the hardcoded timeout value to mox.IgnoreArg This will prevent future breakage when timeout is changed and chumped. BUG=None TEST=unittest Change-Id: I3a091e22509483486adf03c8e0a51327333cd98b Reviewed-on: https://chromium-review.googlesource.com/323810 Commit-Ready: Dan Shi <dshi@google.com> Tested-by: Dan Shi <dshi@google.com> Reviewed-by: Luigi Semenzato <semenzato@chromium.org> Reviewed-by: Kevin Cheng <kevcheng@chromium.org>
/external/autotest/client/common_lib/cros/autoupdater_unittest.py
|
7d17589900d09c173efb28cc8fd09d2bcb85e887 |
|
25-Jan-2016 |
Dan Shi <dshi@google.com> |
[autotest] Fix autoupdater unittest BUG=None TEST=None Change-Id: I35ca6a17ce2be5e21ca4aeaeae28cc5a1c390b58 Reviewed-on: https://chromium-review.googlesource.com/323800 Reviewed-by: Dan Shi <dshi@google.com> Commit-Queue: Dan Shi <dshi@google.com> Tested-by: Dan Shi <dshi@google.com>
/external/autotest/client/common_lib/cros/autoupdater_unittest.py
|
d6adeb8e407b50a5332976342a1ad2d457a081e5 |
|
21-Sep-2015 |
Gilad Arnold <garnold@chromium.org> |
autoupdater.py: Implement BrilloUpdater. This extracts shared updater functionality from ChromiumOSUpdater into a new class (BaseUpdater) and implements BrilloUpdater based on it. Currently extracted logic is meant to support the autoupdate_EndToEnd server-side test; we may pull more as we expand support for other tests. BUG=b:24157043 TEST=AU E2E test ran successfully on moblab w/ peppy DUT (sbasi@) TEST=Unit tests Change-Id: I73243560dcf6938f56d1c87364d5f5800dc0cd12 Reviewed-on: https://chromium-review.googlesource.com/301402 Commit-Ready: Gilad Arnold <garnold@chromium.org> Tested-by: Gilad Arnold <garnold@chromium.org> Reviewed-by: Gilad Arnold <garnold@chromium.org>
/external/autotest/client/common_lib/cros/autoupdater_unittest.py
|
0c0df7324b80a8fcf41739705b3bcbd10d3e2b8b |
|
21-Sep-2015 |
Gilad Arnold <garnold@chromium.org> |
autoupdater.py: move CrOS-specific constants into ChromiumOSUpdater. We'll soon have a new implementation (with different assumptions) for Brillo devices. BUG=b:24157043 TEST=Linter + unittests Change-Id: I87c0dcae0cb8d646329b1a27aaf4403d6bf14aec Reviewed-on: https://chromium-review.googlesource.com/301401 Commit-Ready: Gilad Arnold <garnold@chromium.org> Tested-by: Gilad Arnold <garnold@chromium.org> Reviewed-by: Simran Basi <sbasi@chromium.org> Reviewed-by: Dan Shi <dshi@chromium.org>
/external/autotest/client/common_lib/cros/autoupdater_unittest.py
|
b2d204bdfe899c01188cba532d5f61a98d38f509 |
|
04-Aug-2015 |
Rebecca Silberstein <silberst@chromium.org> |
autotest: update version check for test-ap builds Update regex to cover test-ap builds when checking image versions after an update. Also added unittest. BUG=chromium:496868 TEST=ran network_WiFi_UpdateRouter test on DUT TEST=python autoupdater_unittest.py Change-Id: Ied31c18bfb087f40cd28729920d492a83dd81d22 Reviewed-on: https://chromium-review.googlesource.com/290436 Reviewed-by: Dan Shi <dshi@chromium.org> Commit-Queue: Rebecca Silberstein <silberst@chromium.org> Trybot-Ready: Rebecca Silberstein <silberst@chromium.org> Tested-by: Rebecca Silberstein <silberst@chromium.org>
/external/autotest/client/common_lib/cros/autoupdater_unittest.py
|
549fb82f8dd7ad8031fa451cb19bb1f56355f08c |
|
25-Mar-2015 |
Dan Shi <dshi@chromium.org> |
[autotest] Add code in verify and cleanup to remove cros-version label if it doesn't match Make sure the dut's cros-version label matches the actual version stored in lsb-release under attribute CHROMEOS_RELEASE_VERSION. It's added to both cleanup and verify because: 1. If a test failed by dut issue or autoserv crash, cleanup will be queued. the lab gets a chance to verify the cros-version label before the dut being assigned to another test. 2. verify is called before each test, so confirming the cros-version label there is necessary. The check takes only one ssh call to the dut. Making a duplicated check (reset calls both cleanup and verify) should not lead too much overhead. BUG=chromium:469895 TEST=unittest, run local test 1. Add a cros-version label that matches lsb-release, run dummy test, confirm the label is preserved. 2. Add a cros-version label doesn't match lsb-release, run dummy test, confirm the label is removed by verify task, and verify job failed. Change-Id: Ia4760967118f2aacfe5c7f378bb482df7995cef3 Reviewed-on: https://chromium-review.googlesource.com/262390 Trybot-Ready: Dan Shi <dshi@chromium.org> Tested-by: Dan Shi <dshi@chromium.org> Reviewed-by: Fang Deng <fdeng@chromium.org> Commit-Queue: Dan Shi <dshi@chromium.org> Reviewed-by: Chris Sosa <sosa@chromium.org>
/external/autotest/client/common_lib/cros/autoupdater_unittest.py
|
c861752763c8cb0d780a2933996e53af419d6fa3 |
|
10-Jun-2014 |
Chris Sosa <sosa@chromium.org> |
Re-land "Rollback: check for can_rollback before performing rollback." This CL is a re-land of 4acbaa6864842f3464cf8816b01faf92424ead06. In addition to re-landing it adds a build number check and unittests that verify this functionality. BUG=chromium:366508 TEST=Unittests Change-Id: I6fbed8ca9d627526e35a189e2cdae037ae2d3ed1 Reviewed-on: https://chromium-review.googlesource.com/203162 Tested-by: Chris Sosa <sosa@chromium.org> Reviewed-by: Alex Vakulenko <avakulenko@chromium.org> Commit-Queue: Chris Sosa <sosa@chromium.org>
/external/autotest/client/common_lib/cros/autoupdater_unittest.py
|
df8aef7430bc92d8ee63c9e460be9605dc7fad6b |
|
16-Dec-2013 |
Don Garrett <dgarrett@google.com> |
Improve the standard error message in the lab if an update fails. Produce a more meaningful (but still generic) error message in the lab if an update fails to apply. Take 2! BUG=chromium:246779 TEST=New unittest + trybots Change-Id: I9f481e9c4143d66de1d7a91f1436e9d1155aa8ab Reviewed-on: https://chromium-review.googlesource.com/180255 Tested-by: Don Garrett <dgarrett@chromium.org> Reviewed-by: Richard Barnette <jrbarnette@chromium.org> Commit-Queue: Don Garrett <dgarrett@chromium.org>
/external/autotest/client/common_lib/cros/autoupdater_unittest.py
|
83e6b54fa090935000130fd1786422d34717d055 |
|
13-Dec-2013 |
Richard Barnette <jrbarnette@chromium.org> |
Revert "Improve the standard error message in the lab if an update fails." This reverts commit 71fe97fe10f6979e7db628e28ef0de087b79c021. BUG=chromium:328522 Change-Id: Iec595fa3094a8079056786db88c8639209896fec Reviewed-on: https://chromium-review.googlesource.com/180046 Reviewed-by: Richard Barnette <jrbarnette@chromium.org> Commit-Queue: Richard Barnette <jrbarnette@chromium.org> Tested-by: Richard Barnette <jrbarnette@chromium.org>
/external/autotest/client/common_lib/cros/autoupdater_unittest.py
|
71fe97fe10f6979e7db628e28ef0de087b79c021 |
|
11-Dec-2013 |
Don Garrett <dgarrett@google.com> |
Improve the standard error message in the lab if an update fails. Produce a more meaningful (but still generic) error message in the lab if an update fails to apply. BUG=chromium:246779 TEST=New unittest + trybots Change-Id: Ib3be5fe27d7fd60732f9d20db4a08d1994358939 Reviewed-on: https://chromium-review.googlesource.com/179543 Reviewed-by: Richard Barnette <jrbarnette@chromium.org> Commit-Queue: Don Garrett <dgarrett@chromium.org> Tested-by: Don Garrett <dgarrett@chromium.org>
/external/autotest/client/common_lib/cros/autoupdater_unittest.py
|
03eaad90a2fabae6f3253e9acde8859681237610 |
|
26-Jun-2013 |
joychen <joychen@google.com> |
Update devserver urls with /archive in autotest(2) [autotest] Remove archive from the devserver url patterns. Devserver is removing static/archive so that everything is served straight from the static directory. Cutting out calls in autotest to match. BUG=chromium:214373 TEST=Ran a suite with a reimage job on a DUT with the old style job_repo_url. Change-Id: Id3e2e0559c82a5424ef50406c7360ce28ca9a337 Reviewed-on: https://gerrit.chromium.org/gerrit/62918 Reviewed-by: Prashanth Balasubramanian <beeps@chromium.org> Commit-Queue: Joy Chen <joychen@chromium.org> Reviewed-by: Joy Chen <joychen@chromium.org> Tested-by: Joy Chen <joychen@chromium.org>
/external/autotest/client/common_lib/cros/autoupdater_unittest.py
|
458bf9ef5cf16bf88b306844a54d073c9cde5856 |
|
20-Jul-2013 |
Richard Barnette <jrbarnette@chromium.org> |
Revert "Update devserver urls with /archive in autotest." This reverts commit f67d57a79eab93bf731f5bcf2a48fd04e3e08c68 This seems to be causing bugs in the test environment prior to pushing to prod. BUG=chromium:262279 TEST=see bug description Change-Id: I79c300ad5647d283b862322e7ce29d8b7165766d Reviewed-on: https://gerrit.chromium.org/gerrit/62708 Commit-Queue: Richard Barnette <jrbarnette@chromium.org> Tested-by: Richard Barnette <jrbarnette@chromium.org> Reviewed-by: Joy Chen <joychen@chromium.org>
/external/autotest/client/common_lib/cros/autoupdater_unittest.py
|
f67d57a79eab93bf731f5bcf2a48fd04e3e08c68 |
|
26-Jun-2013 |
joychen <joychen@google.com> |
Update devserver urls with /archive in autotest. Devserver is removing static/archive so that everything is served straight from the static directory. Cutting out calls in autotest to match. BUG=chromium:214373 TEST=None Change-Id: Iebc74469c93d0c95b676dcc45045dbcbd089efb5 Reviewed-on: https://gerrit.chromium.org/gerrit/60101 Commit-Queue: Joy Chen <joychen@chromium.org> Reviewed-by: Joy Chen <joychen@chromium.org> Tested-by: Joy Chen <joychen@chromium.org>
/external/autotest/client/common_lib/cros/autoupdater_unittest.py
|
b9ada9bada466ef06967a0ce05e976f85a6995ee |
|
12-Jun-2013 |
Chris Sosa <sosa@chromium.org> |
Fix a couple broken unittests. 1) Use mock to mock out call to find stateful update script. 2) Change timeout value to 240 given change to base timeout. BUG=chromium:246372 chromium:243922 TEST=Ran unittests Change-Id: Ica7b598f96404e6bf13408df8cf60853000b1101 Reviewed-on: https://gerrit.chromium.org/gerrit/58412 Tested-by: Chris Sosa <sosa@chromium.org> Reviewed-by: Aviv Keshet <akeshet@chromium.org> Commit-Queue: Chris Sosa <sosa@chromium.org>
/external/autotest/client/common_lib/cros/autoupdater_unittest.py
|
73aa2908e457c64ede3597cc78451cca5fba85be |
|
03-May-2013 |
Dan Shi <dshi@chromium.org> |
[Autotest] add support to check pgo-generate build After a pgo-generate build is installed, lsb-release has version string like '3837.0.0-pgo-generate', autoupdater needs to be updated to handle version string in such form. BUG=chromium:237803 TEST=local unittest, and try lumpy-release-pgo-generate/R28-4082.0.0 DEPLOY=none Change-Id: I9548c430fa64998fe9965daa707f6a6606f9f783 Reviewed-on: https://gerrit.chromium.org/gerrit/50050 Reviewed-by: Chris Sosa <sosa@chromium.org> Commit-Queue: Dan Shi <dshi@chromium.org> Reviewed-by: Dan Shi <dshi@chromium.org> Tested-by: Dan Shi <dshi@chromium.org>
/external/autotest/client/common_lib/cros/autoupdater_unittest.py
|
7231260da421abdf5ceceff6ab60155936dca21f |
|
17-Apr-2013 |
Chris Sosa <sosa@chromium.org> |
Update the stateful partition during an update test. For test images, we may need to update the stateful partition during a test as Y may not be compatible with X. For example, we just got burned with the Python2.6->Python2.7 upgrade where the new rootfs symlinked /usr/bin/python to /usr/local/bin/python2.7 which doesn't exist unless you update the stateful partition as well. As part of this, I have exposed the stateful update from autoupdater to make it easier to use. I have also added unittests for this method. BUG=chromium:232085 TEST=pylint + manual Change-Id: I6088cf671d090fca7aabff25335f4c0b8e3947c1 Reviewed-on: https://gerrit.chromium.org/gerrit/48331 Reviewed-by: Scott Zawalski <scottz@chromium.org> Reviewed-by: Chris Sosa <sosa@chromium.org> Tested-by: Chris Sosa <sosa@chromium.org> Commit-Queue: Chris Sosa <sosa@chromium.org>
/external/autotest/client/common_lib/cros/autoupdater_unittest.py
|
7f79551b1fd8d8742b8d1013ceb5d023fec07f83 |
|
12-Apr-2013 |
Dan Shi <dshi@chromium.org> |
[Autotest] Correct version check for chrome-perf build. Code is changed in check_version_to_confirm_install, so that special logic is only applied to trybot paladin build. For any other build, the version without any tail part (e.g., -rc#) is used to match the version in lsb-release. BUG=chromium:230375 TEST=local unit test, run_suite with lumpy-chrome-perf/R28-3970.0.0-b2996 DEPLOY=none Change-Id: I0283546a0b1d7f1036240bb6062d37b54ca53120 Reviewed-on: https://gerrit.chromium.org/gerrit/48016 Reviewed-by: Richard Barnette <jrbarnette@chromium.org> Commit-Queue: Dan Shi <dshi@chromium.org> Reviewed-by: Dan Shi <dshi@chromium.org> Tested-by: Dan Shi <dshi@chromium.org>
/external/autotest/client/common_lib/cros/autoupdater_unittest.py
|
190c780678495614cb477453d44cab6aefcfbe1e |
|
04-Apr-2013 |
Dan Shi <dshi@chromium.org> |
[Autotest] Correct version check for trybot release build For release build, even trybot build has version string without the date string. This CL checks if the image is a release build based on update_url (looking for -release). BUG=chromium:226120 TEST=manual test in local machine, try both paladin and release build from trybot. DEPLOY=none Change-Id: I8776c2fbb24973c4c6f3055af705123e0deec14b Reviewed-on: https://gerrit.chromium.org/gerrit/47349 Reviewed-by: Dan Shi <dshi@chromium.org> Tested-by: Dan Shi <dshi@chromium.org> Commit-Queue: Dan Shi <dshi@chromium.org> Reviewed-by: Chris Sosa <sosa@chromium.org>
/external/autotest/client/common_lib/cros/autoupdater_unittest.py
|
775ecd579b8dd47f9d75243c4514e5c9ec941e53 |
|
27-Mar-2013 |
Dan Shi <dshi@chromium.org> |
[Autotest] Copy only new data in /var/log folder after each test. Copy all content in /var/log folder causes overhead in both test time and test result storage. The /var/log folder's size can be over 40MB after a test is finished. Code change is made to implement the diff logic to only copy new data in /var/log folder before and after each test. BUG=chromium:217983 TEST=manually run autoserv with sleep test and verify new data in /var/log folder is copied over to [test]/sysinfo/var/log_diff. Also use trybot build trybot-lumpy-paladin/R28-3915.0.0-b741 to confirm autoupdate job's /var/log is collected as expected. DEPLOY=manual, before push to prod, this CL must be backport to all branches being tested. Change-Id: Ic78c5aa6c35eeab63bb3a0d8cb7095b7f55f217b Reviewed-on: https://gerrit.chromium.org/gerrit/46658 Commit-Queue: Dan Shi <dshi@chromium.org> Reviewed-by: Dan Shi <dshi@chromium.org> Tested-by: Dan Shi <dshi@chromium.org>
/external/autotest/client/common_lib/cros/autoupdater_unittest.py
|
b95bb86f445f886b3e66762c6b10686c52ffe905 |
|
23-Mar-2013 |
Dan Shi <dshi@chromium.org> |
[Autotest] Enable trying stateful update only in machine_install The issue (222238) of version in /etc/lsb-release does not have the rc# was fixed in CL https://gerrit.chromium.org/gerrit/#/c/46020/. Stateful update only for DUT running image with same version is enabled. For trybot build, machine_install will always do a full install, as cros version, e.g., 3888.0.2013_03_21_1340, does not follow the same standard as paladin build, e.g., 3888.0.0-cl2. BUG=chromium:222098 TEST=manually run_suite in local machine, against following build: trybot-lumpy-paladin/R27-3888.0.0-b711, lumpy-paladin/R27-3893.0.0-rc2, lumpy-release/R27-3893.0.0 Change-Id: Ib0d558e760fdda975240fe9487417fed445be199 Reviewed-on: https://gerrit.chromium.org/gerrit/46330 Tested-by: Dan Shi <dshi@chromium.org> Reviewed-by: Richard Barnette <jrbarnette@chromium.org> Commit-Queue: Dan Shi <dshi@chromium.org>
/external/autotest/client/common_lib/cros/autoupdater_unittest.py
|
eadbf7098c7cf810aaaf88791b1d59b786407e9f |
|
14-Mar-2013 |
Scott Zawalski <scottz@google.com> |
Modify our support of --image to work with our devservers. Add a pathway to the --image code in site_host to stage anything that is passed to it via --image that does not start with http://. Added code to properly update job_repo_url in site_host rather than in the try-jobs we spawn off. This makes it so that repaired images as well as installs via --install have the proper job_repo_url if they exist in the AFE. Updated AfeClient.html to show examples of what can be specified in Image Url. Update old way of setting REPO URL in site_autotest.py to only be used if someone is specifying a HTTP URL themselves, otherwise use the AFE. TEST=ran autoserv: ./autoserv --image=stumpy-release/R27-3836.0.0 -m scottz-stumpy1 -s tests/sleeptest/control and ./autoserv --image=http://172.22.50.205:8082/update/stumpy-paladin/R27-3837.0.0-rc2 -m scottz-stumpy1 -s tests/sleeptest/control and with a bad image which fails after a short while with an error about the build path. ./autoserv --image=x86-mario-release/R27-3834.dd0.0 -m scottz-mario1 -s tests/sleeptest/control Test on a non-afe host: ./autoserv --image=x86-mario-release/R27-3834.0.0 -m 172.29.151.133 -s tests/sleeptest/control Tested repair update as well just to make sure I didn't break anything. ./autoserv -R -m scottz-mario1 # with a modification to make verify fail always. Ran tests through the frontend. BUG=chromium-os:38653 Change-Id: I4b620a4332c695f4c972a8f8c112b4bf1dd6ba9a Reviewed-on: https://gerrit.chromium.org/gerrit/45419 Tested-by: Scott Zawalski <scottz@chromium.org> Reviewed-by: Dan Shi <dshi@chromium.org> Reviewed-by: Richard Barnette <jrbarnette@chromium.org> Reviewed-by: Scott Zawalski <scottz@chromium.org> Commit-Queue: Scott Zawalski <scottz@chromium.org>
/external/autotest/client/common_lib/cros/autoupdater_unittest.py
|