Граф коммитов

25 Коммитов

Автор SHA1 Сообщение Дата
sivachandra@chromium.org acae236b73 [Android] Add a flag to skip provisioning check during device status check.
This is required for a downstream bot which builds Android from source and flashes it with every build.

Review URL: https://chromiumcodereview.appspot.com/17893011

git-svn-id: http://src.chromium.org/svn/trunk/src/build@208902 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-27 12:47:18 +00:00
navabi@google.com f23eaf8c99 Turn off devices with low battery and don't fail device status step.
BUG=224004

Review URL: https://chromiumcodereview.appspot.com/16950029

git-svn-id: http://src.chromium.org/svn/trunk/src/build@208088 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-22 21:05:50 +00:00
navabi@google.com 5bab7e0c61 Do not send alerts on slow install and make the step fail on < 15% battery.
The slow install errors were happening too often causing too many alert emails.
A few bots have had device battery problems. E.g.
http://build.chromium.org/p/chromium.perf/builders/Android%20GN
The device status step will fail when charge is < 15%, allowing devices to
recharge before running more tests on them, and thus avoiding devices turning
off and needing someone to go to the clab to restart the devices.

TBR=cmp@chromium.org
BUG=224004

Review URL: https://chromiumcodereview.appspot.com/16747007

git-svn-id: http://src.chromium.org/svn/trunk/src/build@205912 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-12 20:18:54 +00:00
sivachandra@chromium.org 7460772c72 Do not alert if devices with user/eng Android builds are not provisioned.
BUG=245058

Review URL: https://chromiumcodereview.appspot.com/16196004

git-svn-id: http://src.chromium.org/svn/trunk/src/build@205021 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-08 05:02:45 +00:00
bulach@chromium.org a3f4ed5c97 Android: removes pylib.constants.CHROME_DIR.
Follow up from crrev.com/204357, it has now rolled downstream
so it's safe to remove the constant.

BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com/15839006

git-svn-id: http://src.chromium.org/svn/trunk/src/build@204812 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-07 13:39:24 +00:00
navabi@google.com f2ee63ec18 Use full path to apk install script and CheckInstall apk.
Allows device status check to be run from any directory after envsetup.sh has
been run. Also fix for declaring fail_step_lst when there are no online devices.

TBR=cmp@chromium.org
BUG=

Review URL: https://chromiumcodereview.appspot.com/16280004

git-svn-id: http://src.chromium.org/svn/trunk/src/build@204208 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-05 08:22:45 +00:00
navabi@google.com 15d1a1ddf8 This is a less aggressive patch than the description below. The original was reverted for breaking the Android tests bot (https://codereview.chromium.org/16299003).
Removes check install step and moves it into the device status check. This will allow us to examine Android install speeds, which have recently caused timeout problems when installing large APK's. Unlike the original CL, low install speed only causes a warning (i.e. does not fail the step). The step fails if the battery of an online device is less than 5%.

BUG=230970, 224004, 242237

---------------------------------------------------
Original CL:
Move CheckInstall to device status and fail on low install speed and battery.

Removes the recently added CheckInstall step and moves the checking to the
device status check step. Recently, devices will install very slowly causing
tests to fail with device problems. We have also seen battery issues. The new
device status check step will fail if any devices install unreasonably slow
(i.e. < 800 KB/s) or have critically low battery level (i.e. < 5%).

BUG=230970, 224004, 242237

Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=203587

Review URL: https://chromiumcodereview.appspot.com/16110005

git-svn-id: http://src.chromium.org/svn/trunk/src/build@204013 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-04 19:19:46 +00:00
justinlin@chromium.org 81dba6dddf Revert 203587 "Move CheckInstall to device status and fail on lo..."
Broke android tests.

> Move CheckInstall to device status and fail on low install speed and battery.
> 
> Removes the recently added CheckInstall step and moves the checking to the
> device status check step. Recently, devices will install very slowly causing
> tests to fail with device problems. We have also seen battery issues. The new
> device status check step will fail if any devices install unreasonably slow
> (i.e. < 800 KB/s) or have critically low battery level (i.e. < 5%).
> 
> BUG=230970, 224004, 242237
> 
> Review URL: https://chromiumcodereview.appspot.com/16110005

TBR=navabi@google.com
Review URL: https://codereview.chromium.org/16299003

git-svn-id: http://src.chromium.org/svn/trunk/src/build@203594 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-01 06:42:15 +00:00
navabi@google.com b5ff01f371 Move CheckInstall to device status and fail on low install speed and battery.
Removes the recently added CheckInstall step and moves the checking to the
device status check step. Recently, devices will install very slowly causing
tests to fail with device problems. We have also seen battery issues. The new
device status check step will fail if any devices install unreasonably slow
(i.e. < 800 KB/s) or have critically low battery level (i.e. < 5%).

BUG=230970, 224004, 242237

Review URL: https://chromiumcodereview.appspot.com/16110005

git-svn-id: http://src.chromium.org/svn/trunk/src/build@203587 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-01 04:55:00 +00:00
sivachandra@chromium.org 5e50ec4cf4 Alert on zero online devices when last devices file is missing or empty.
BUG=238535

Review URL: https://chromiumcodereview.appspot.com/14652029

git-svn-id: http://src.chromium.org/svn/trunk/src/build@198931 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-08 17:52:00 +00:00
sivachandra@chromium.org d52c1fbe79 Flunk the build if no Android devices are online.
This is useful as the bot is proceeding to the next step and failing
there otherwise.

BUG=


Review URL: https://chromiumcodereview.appspot.com/12886036

git-svn-id: http://src.chromium.org/svn/trunk/src/build@189341 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-20 17:56:11 +00:00
sivachandra@chromium.org e7e9db03d3 Check if mantarays are charging, and alert on all Android device errors.
BUG=168400

Review URL: https://chromiumcodereview.appspot.com/12382006

git-svn-id: http://src.chromium.org/svn/trunk/src/build@189091 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-19 20:42:54 +00:00
bulach@chromium.org ff0fdc4390 Android: fixes "device_status_check.py" for missing status.
Some android devices don't report battery status, fail gracefuly.

BUG=169183
TEST=


Review URL: https://chromiumcodereview.appspot.com/11828044

git-svn-id: http://src.chromium.org/svn/trunk/src/build@176321 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-01-11 13:07:50 +00:00
ilevy@chromium.org 904bfa7a52 Move android buildbot steps into buildbot dir
- Move the step creation lines to the parent script.  The biggest
  advantage of this is the full step is properly printed, starting
  with the exact shell line used to run the test suite.

- Rename some steps into c++ style.

BUG=168894
NOTRY=true

Review URL: https://codereview.chromium.org/11817033

git-svn-id: http://src.chromium.org/svn/trunk/src/build@176010 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-01-10 04:00:07 +00:00
ilevy@chromium.org bffd1736b6 Add check for device provisioning
Extend device_status_check to look for incorrectly setup devices.
BUG=165981
NOTRY=true

Review URL: https://codereview.chromium.org/11637046

git-svn-id: http://src.chromium.org/svn/trunk/src/build@174343 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-12-21 03:58:12 +00:00
navabi@chromium.org b5f1cf40a7 Add code to debug difference between adb devices checks.
We are getting emails that do not detect all available devices when checked, but
when the list of connected devices is printed, it shows all devices. This will
give us extra information to debug.

BUG=


Review URL: https://chromiumcodereview.appspot.com/11060017

git-svn-id: http://src.chromium.org/svn/trunk/src/build@160066 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-10-04 03:44:04 +00:00
jknotten@chromium.org e820ee6681 Ignore device status check emailing exceptions.
The Android device status checker will attempt to alert by email when
a device fails. If the email step generates an exception, we don't
want to fail the 'Device Status Check' build step, because that causes
the entire build to fail.


Review URL: https://chromiumcodereview.appspot.com/11013024

git-svn-id: http://src.chromium.org/svn/trunk/src/build@159936 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-10-03 18:52:42 +00:00
ilevy@chromium.org 3ce527b0d0 Fix device status link
BUG=152583
TBR=cmp,navabi1

Review URL: https://codereview.chromium.org/11051012

git-svn-id: http://src.chromium.org/svn/trunk/src/build@159859 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-10-03 06:59:52 +00:00
navabi@chromium.org 7951156a18 Make device_status_check.py email clank-infra if devices go offline.
BUG=152583


Review URL: https://chromiumcodereview.appspot.com/11021004

git-svn-id: http://src.chromium.org/svn/trunk/src/build@159819 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-10-03 00:49:53 +00:00
ilevy@chromium.org 2056e99605 Android device status: create out dir if needed
- I recently changed device status to run before gyp
  This exposed a dependence on the out directory
  existing and broke new android testers.

TEST=Ran device status with --out-dir pointing to
     non-existent dir.

R=bulach@chromium.org
BUG=

Review URL: https://codereview.chromium.org/10962022

git-svn-id: http://src.chromium.org/svn/trunk/src/build@158075 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-09-21 21:07:30 +00:00
ilevy@chromium.org 680786820b Minor fixes to android device_status script
- Build titles were too long, making shorter
- Switching to STEP_TEXT as STEP_SUMMARY_TEXT is only visible
  while this is the active step.

BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com/10665012

git-svn-id: http://src.chromium.org/svn/trunk/src/build@154824 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-09-04 22:18:32 +00:00
bulach@chromium.org 42c382abb6 [android] Split top-level scripts and libraries from build/android.
- Top-level scripts are kept under build/android.
- Utility libraries have been moved to build/android/pylib.
- Fixes all imports and headers.

This is in preparation for landing the "instrumentation" (java-based) tests,
which will reuse several of these components.

BUG=
TEST=existing android tests


Review URL: https://chromiumcodereview.appspot.com/10693110

git-svn-id: http://src.chromium.org/svn/trunk/src/build@145653 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-07-09 09:11:57 +00:00
ilevy@chromium.org 84f609499e Revert "Revert 143261 - Upstreaming android tools"
- fixing permissions and relanding. CQ does not run
  check_perms apparently.

- original review:
  https://chromiumcodereview.appspot.com/10578032/

- failing bot log:
  http://build.chromium.org/p/chromium/builders/Linux/builds/26592/steps/check_perms/logs/stdio

This reverts commit 1ad94575470ccb61f9a64915638aafac3269a28f.

BUG=
TEST=


Review URL: https://chromiumcodereview.appspot.com/10598004

git-svn-id: http://src.chromium.org/svn/trunk/src/build@143329 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-06-21 01:57:32 +00:00
creis@chromium.org e86bdc973e Revert 143261 - Upstreaming android build tools
- These are used to monitor and debug devices when running tests

Hooks will be added in a separate CL.

BUG=
TEST=


Review URL: https://chromiumcodereview.appspot.com/10578032

TBR=ilevy@chromium.org
Review URL: https://chromiumcodereview.appspot.com/10583044

git-svn-id: http://src.chromium.org/svn/trunk/src/build@143268 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-06-20 21:45:04 +00:00
ilevy@chromium.org 5968638430 Upstreaming android build tools
- These are used to monitor and debug devices when running tests

Hooks will be added in a separate CL.

BUG=
TEST=


Review URL: https://chromiumcodereview.appspot.com/10578032

git-svn-id: http://src.chromium.org/svn/trunk/src/build@143261 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-06-20 21:05:29 +00:00