summaryrefslogtreecommitdiffstats
path: root/build/android/buildbot/bb_utils.py
Commit message (Collapse)AuthorAgeFilesLines
* [Android] Convert uses of cmd_helper in tools/ to devil.jbudorick2016-01-111-1/+1
| | | | | | | | BUG=476719 Review URL: https://codereview.chromium.org/1578863002 Cr-Commit-Position: refs/heads/master@{#368675}
* [Android] Prepare build/android/ for catapult+devil.jbudorick2016-01-111-0/+1
| | | | | | | | BUG=476719 Review URL: https://codereview.chromium.org/1571803002 Cr-Commit-Position: refs/heads/master@{#368599}
* [Android] Add a custom pylintrc for build/android/.jbudorick2015-09-081-2/+2
| | | | | | | | | | | The default depot_tools pylintrc disables some checks that we can reasonably enable in build/android/. This CL does so. BUG= Review URL: https://codereview.chromium.org/1315743004 Cr-Commit-Position: refs/heads/master@{#347720}
* Add option to restart usb on device status check before performing check.navabi@google.com2013-10-191-0/+3
| | | | | | | | | | | | | | | | Restart USB has been known to bring back offline devices. Add option to device status check to restart usb ports before performing the check. This requires restart_usb to be installed (see https://code.google.com/p/chromium/issues/detail?id=305769). Prints warning if the utility has not been installed on the host. We will add this first to perf bots. Restarting usb has fixed device issues on these bots. If we find it works and does not have unseen consequences, we will deploy on all bots (i.e. make default of --restart-usb to True). BUG=299891 Review URL: https://codereview.chromium.org/26747004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229553 0039d316-1c4b-4281-b951-d872f2087c98
* Attempt #3 at archiving the layout test results from the android bots.dpranke@chromium.org2013-09-071-0/+3
| | | | | | | | | | | | | This re-lands the changes in r220393 and r220374 (which were reverted in r220434) with the change that we will upload to googlestorage rather than attempting to scp the files across. R=ilevy@chromium.org BUG=276076 Review URL: https://chromiumcodereview.appspot.com/23455032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@221909 0039d316-1c4b-4281-b951-d872f2087c98
* Stop trying to archive results from the bots on chromium.webkit android bots.dpranke@chromium.org2013-08-291-3/+0
| | | | | | | | | | | | | We need to switch to googlestorage first. This change reverts r220393 and r220374. TBR=ilevy@chromium.org BUG=276076 Review URL: https://codereview.chromium.org/23647005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@220434 0039d316-1c4b-4281-b951-d872f2087c98
* Re-land r22016 "Archive webkit_tests results on android bots if requested"dpranke@chromium.org2013-08-291-0/+3
| | | | | | | | | | | | | (With a fix; the prior version had the wrong path to the archive tool). Original review was in https://codereview.chromium.org/22825016/ . TBR=ilevy@chromium.org BUG=276076 Review URL: https://codereview.chromium.org/23444021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@220374 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 220166 "Archive webkit_tests results on android bots if r..."tkent@chromium.org2013-08-291-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Android bot throws an exception since this change. < cat /b/build/slave/WebKit_Android__Nexus4_/build/src/out/Release/test_logs/unit_test.log An instance of host heart beart running... will kill Traceback (most recent call last): File "build/android/buildbot/bb_device_steps.py", line 469, in <module> sys.exit(main(sys.argv)) File "build/android/buildbot/bb_device_steps.py", line 465, in main MainTestWrapper(options) File "build/android/buildbot/bb_device_steps.py", line 402, in MainTestWrapper bb_utils.RunSteps(options.test_filter, GetTestStepCmds(), options) File "/b/build/slave/WebKit_Android__Nexus4_/build/src/build/android/buildbot/bb_utils.py", line 97, in RunSteps cmd(options) File "build/android/buildbot/bb_device_steps.py", line 257, in RunWebkitLayoutTests '--builder-name', options.build_properties.get('buildername', '')]) File "/b/build/slave/WebKit_Android__Nexus4_/build/src/build/android/buildbot/bb_utils.py", line 56, in RunCmd code = SpawnCmd(command, stdout, cwd).wait() File "/b/build/slave/WebKit_Android__Nexus4_/build/src/build/android/buildbot/bb_utils.py", line 49, in SpawnCmd return subprocess.Popen(command, cwd=cwd, stdout=stdout) File "/usr/lib/python2.7/subprocess.py", line 679, in __init__ errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory > Archive webkit_tests results on android bots if requested. > > R=ilevy@chromium.org, bulach@chromium.org, peter@chromium.org > BUG=276076 > > Review URL: https://chromiumcodereview.appspot.com/22825016 TBR=dpranke@chromium.org Review URL: https://codereview.chromium.org/23601007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@220210 0039d316-1c4b-4281-b951-d872f2087c98
* Archive webkit_tests results on android bots if requested.dpranke@chromium.org2013-08-291-0/+3
| | | | | | | | | R=ilevy@chromium.org, bulach@chromium.org, peter@chromium.org BUG=276076 Review URL: https://chromiumcodereview.appspot.com/22825016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@220166 0039d316-1c4b-4281-b951-d872f2087c98
* [Android] Buildbot changes for EMMA code coveragegkanwar@chromium.org2013-08-221-0/+2
| | | | | | | | | | | | One piece of the overall java code coverage change. See: https://codereview.chromium.org/20210002/ NOTRY=True BUG=255644 Review URL: https://chromiumcodereview.appspot.com/23345003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@219083 0039d316-1c4b-4281-b951-d872f2087c98
* [Android Buildbot] Make RunCmd execute command in a dir of choice.sivachandra@chromium.org2013-08-021-4/+5
| | | | | | | | | BUG=249997 NOTRY=True Review URL: https://chromiumcodereview.appspot.com/21647002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@215176 0039d316-1c4b-4281-b951-d872f2087c98
* Updates the test runner script exit codesgkanwar@google.com2013-07-101-4/+6
| | | | | | | | | | | | | | | | | | The script now returns exit codes based on what occurred in the test. Exit codes: 0 -- normal 1 -- fail/crash 88 -- warning In addition, the scripts now handle DeviceUnresponsiveError by returning a warning exit code overall, rather than silently moving on. BUG=170477, 258171 Review URL: https://chromiumcodereview.appspot.com/18323020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210749 0039d316-1c4b-4281-b951-d872f2087c98
* [Android] Refactor the buildbot scripts to prepare for downstream usage.sivachandra@chromium.org2013-07-021-11/+7
| | | | | | | | BUG=249997 Review URL: https://chromiumcodereview.appspot.com/17114007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209694 0039d316-1c4b-4281-b951-d872f2087c98
* [Android] Refactor bb_host_steps to prepare for downstream usage.sivachandra@chromium.org2013-06-151-0/+15
| | | | | | | | | | | | - Refactored bb_host_steps.py to take a list of steps. - Moved run step logic into bb_utils BUG=249997 NOTRY=true Review URL: https://chromiumcodereview.appspot.com/15817022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@206555 0039d316-1c4b-4281-b951-d872f2087c98
* Port remaining android buildbot code into pythonilevy@chromium.org2013-06-101-8/+11
| | | | | | | | | | | | | | | | | | | - Run envsetup.sh and retrieve environment rather than wrapping commands in a bash shell. Consolidate remaining PATH code. This also cleans up the preamble output. - Port android landmine code to python. - Simplified testing command layout in bb_run_bot. - Change bb_run_bot_test to run in parallel. - Fixed bug where dbg clobber affects release bot using same checkout - Made step names more similar to other chromium bots. - Consolidated factory-prop and build-prop parsing code. BUG=176126 NOTRY=True Review URL: https://chromiumcodereview.appspot.com/16688002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@205244 0039d316-1c4b-4281-b951-d872f2087c98
* Add a new script bb_host_steps.py which handles all host side steps.sivachandra@chromium.org2013-06-071-0/+75
BUG=154525 NOTRY=True Review URL: https://chromiumcodereview.appspot.com/15261003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204970 0039d316-1c4b-4281-b951-d872f2087c98