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

99 Коммитов

Автор SHA1 Сообщение Дата
Ben Pastene c6e20bd5db chromeos: Don't swallow test args when '--' is present.
When '--' is present on the cmd line, anything to the right of it is
considered args to the test binary and will be pass untouched to it.

This also adds the '--' arg to all isolated-script tests, which is
practically only telemetry tests.

Bug: 1108412
Change-Id: Iec53e68d39c0bbe947ebdc166426d6b4c848e892
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2318309
Commit-Queue: Ben Pastene <bpastene@chromium.org>
Reviewed-by: Brian Sheedy <bsheedy@chromium.org>
Cr-Commit-Position: refs/heads/master@{#794225}
GitOrigin-RevId: 983340cc7c5746b3619b4d4bddbfa2340c4219af
2020-08-03 12:42:32 -07:00
Ben Pastene 88271c6b61 chromeos: Flash the right type of DUT image based on chrome-branding.
It currently defaults to the 'release' image, which is internal &
Google-only.

We have some public testers that need to flash to the 'full' images.
Adding the flag should let us do that by passing down the right type
of image based on GN args, which get bound to tests via generated
wrapper scripts.

Bug: 1057152
Change-Id: Ib1a82eb16ca274fe1e04946b588ec2dc2e049c77
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2303981
Commit-Queue: Ben Pastene <bpastene@chromium.org>
Reviewed-by: Brian Sheedy <bsheedy@chromium.org>
Reviewed-by: Dirk Pranke <dpranke@google.com>
Cr-Commit-Position: refs/heads/master@{#790091}
GitOrigin-RevId: c8ab1d5ab787fe49f033f8fdc328e6d2244ecfe0
2020-07-20 13:47:43 -07:00
Ben Pastene 05ee82e7cd chromeos: Correctly set the '--flash' arg for host-side tests.
It's already set for remote-side tests. After crrev.com/c/2283899, we
can set it for host-side tests too.

Bug: 1057152
Change-Id: I2e37d22fb24e928dff831d8383068fd8d1558edb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2285251
Reviewed-by: Brian Sheedy <bsheedy@chromium.org>
Commit-Queue: Ben Pastene <bpastene@chromium.org>
Cr-Commit-Position: refs/heads/master@{#785989}
GitOrigin-RevId: 8b53d4ddd669db5e321e531be1e55922f2266a0b
2020-07-07 14:16:32 -07:00
Ben Pastene 111571fbf8 chromeos: Treat all unknown-args as the cmd to run in host-side tests.
When running tests that are launched from the host (eg telemetry tests),
the test_runner will take all args passed to it after the last known
arg and treat that as the host-side test command.

Consequently if a known arg is interleaved into the unknown args, the
test runner will not pick it up. By treating unknown args (rather than
trailing args) as the command, we can embed known args into the list.

This will let something like crrev.com/c/2283576 land as-is where we add
'--flash' as the very last arg. Without this CL, that arg is treated
as an arg to telemetry instead of an arg to the test runner.

Bug: 1057152
Change-Id: Id5326dfa3bceab86ae97dc260c9699cf35f56b08
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2283899
Reviewed-by: Brian Sheedy <bsheedy@chromium.org>
Commit-Queue: Ben Pastene <bpastene@chromium.org>
Cr-Commit-Position: refs/heads/master@{#785787}
GitOrigin-RevId: 5b185d12d2f6721d494101188717bedcdd828525
2020-07-07 09:37:41 -07:00
Ben Pastene 1b4cda8b47 Enable pre-test flashing for base_unittests on internal CrOS HW testers.
This tests it out on a single test suite. If it looks good, it'll be
rolled out more broadly.

This will let us tear-down all the out-of-band flashing logic for
these devices, and replace it with on-demand pre-test flashing. The
latter being much simpler to maintain, having less moving parts, and
generally being more visible.

Bug: 1057152
Change-Id: Ic2fba3725b01bec2d3dedc4898e8acfe3ad5b22d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2261702
Reviewed-by: Erik Chen <erikchen@chromium.org>
Commit-Queue: Ben Pastene <bpastene@chromium.org>
Cr-Commit-Position: refs/heads/master@{#781967}
GitOrigin-RevId: e082e1cf9f9626cdd04a8d5e7356060b62ec27a1
2020-06-25 12:58:05 -07:00
Ben Pastene 467aa30201 chromeos: Move system logs from host-side into a subdir.
Same thing that crrev.com/c/2219679 did, but for tests invoked via
host-side cmd (eg: telemetry) rather than device-side cmd (eg: gtests).

Bug: 1087407
Change-Id: I514a01583bbfea6a4a600d738587d8663ae0adec
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2222901
Reviewed-by: Brian Sheedy <bsheedy@chromium.org>
Commit-Queue: Ben Pastene <bpastene@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#773360}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: eef14587cc35fea6d3610d65f2c2306dee2d4d0d
2020-05-29 21:49:57 +00:00
Ben Pastene 06ffb22a92 chromeos: Don't capture power_manager logs after device tests.
Those logs aren't getting cycled out, and I suspect they're not very
useful. So just ignore them.

And move all system logs to a 'system_logs' sub dir.

Bug: 1087407
Change-Id: Ib404945fb10f79da2b0cbe9276b2244500d023ba
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2219679
Reviewed-by: Brian Sheedy <bsheedy@chromium.org>
Commit-Queue: Ben Pastene <bpastene@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#772810}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: f3947bcf3f71229cffa2182d157a2796f41b7ab7
2020-05-28 18:50:28 +00:00
Dirk Pranke 453b0af9fa Update TEAM in OWNERS for build-related directories.
Now that there's a build@chromium.org list, this CL
updates the various TEAM= entries in the OWNERS files
to reflect that.

R=agrieve@chromium.org, thakis@chromium.org, mark@chromium.org

Change-Id: I8c41a604dd89aa20c9b381090701eff699c1d302
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2209616
Reviewed-by: Mark Mentovai <mark@chromium.org>
Reviewed-by: Nico Weber <thakis@chromium.org>
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: Sylvain Defresne <sdefresne@chromium.org>
Commit-Queue: Dirk Pranke <dpranke@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#770658}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 2c0d2f004573db25485ffa95e2a8ec00a61fef18
2020-05-20 17:39:31 +00:00
Ben Pastene 8cb92d5b18 chromeos: Allow arbitrary env vars to be specified for device tests.
Some tests will need special env vars set on device during test
execution. This adds the needed plumbing so we can specify them via
cmd line.

Bug: 1075843
Change-Id: I47203abe4cf4bfe6fa7aa60a4680dd5dacdec25b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2175746
Commit-Queue: Ben Pastene <bpastene@chromium.org>
Reviewed-by: Erik Chen <erikchen@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#764787}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 64267a0ff37d992bcf90edc16c8f3dadd94149e3
2020-05-01 20:56:54 +00:00
Ben Pastene 48e294eda4 Strip chrome before deploying it when running disk-usage Tast test.
The results of the disk-usage test reports inflated numbers for Chrome
since we don't strip symbols. By doing so here, we can get results
that more resemble what gets shipped on devices.

Bug: 1071107
Change-Id: I55104f1c02a21d076df971e49edbc306e3cdd3d3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2155050
Reviewed-by: Erik Chen <erikchen@chromium.org>
Reviewed-by: Steven Bennetts <stevenjb@chromium.org>
Commit-Queue: Ben Pastene <bpastene@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#760281}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 925601939cf9975273623b80db7643e17b823b79
2020-04-18 01:01:00 +00:00
Ben Pastene 2de23f31c9 Roll src/third_party/chromite 14245e8100e9..de5575dc8a09 (14 commits)
14245e8100..de5575dc8a

git log 14245e8100e9..de5575dc8a09 --date=short --first-parent --format='%ad %ae %s'
2020-04-16 vapier@chromium.org cbuildbot: switch to python3 only via virtualenv wrapper [reland]
2020-04-16 cjmcdonald@chromium.org pytest: Remove 'passes_when_run_alone' marker
2020-04-16 cjmcdonald@chromium.org pytest: Mark all tests that leak processes & skip them
2020-04-16 cjmcdonald@chromium.org pytest: Add autouse fixture to assert that tests don't leak processes
2020-04-16 chrome-bot@chromium.org Update config settings by config-updater.
2020-04-16 uekawa@google.com cros_mark_android_as_stable: Update GIT_COMMIT_MESSAGE to pass lint.
2020-04-16 morg@google.com Add Android arm64 support for cbuildbot_run
2020-04-16 lamontjones@chromium.org toolchain_util: recipes benchmark afdo profile creation
2020-04-16 lamontjones@chromium.org api: freshen python bindings.
2020-04-16 vapier@chromium.org config_lib: delete unused CQ/PreCQ constants
2020-04-15 chrome-bot@chromium.org Update config settings by config-updater.
2020-04-15 navil@google.com Support a dry run of payload generation.
2020-04-15 andrewlamb@chromium.org Revert "Add Android arm64 support for cbuildbot_run"
2020-04-15 bpastene@chromium.org Reland: device: Don't assume '--device=localhost' means VM.

Created with:
  gclient setdep -r src/third_party/chromite@de5575dc8a09

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/chromite-chromium-autoroll
Please CC chrome-os-gardeners@google.com on the revert to ensure that a human
is aware of the problem.

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md

Cq-Include-Trybots: luci.chrome.try:chromeos-betty-pi-arc-chrome;luci.chromium.try:chromeos-kevin-rel
Bug: None
Change-Id: I59e7e9c15606bbc183f5809f0090a3938fe15efe
Tbr: chrome-os-gardeners@google.com
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2152867
Commit-Queue: Ben Pastene <bpastene@chromium.org>
Commit-Queue: chromium-autoroll <chromium-autoroll@skia-public.iam.gserviceaccount.com>
Reviewed-by: chromium-autoroll <chromium-autoroll@skia-public.iam.gserviceaccount.com>
Cr-Original-Commit-Position: refs/heads/master@{#759742}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 2f1b9d52a783a871c7c2301470e11a69052bcfde
2020-04-16 18:47:35 +00:00
Hiroki Sato cda07ba655 Revert "Manually roll chromite to pick up localhost vs VM fixes."
This reverts commit a5301433ed9a9610c127691d6c0f6d4c4af82f7d.

Reason for revert: betty-pi-arc-pi-android-pfq is continuously failing

Bug: 1070126

Original change's description:
> Manually roll chromite to pick up localhost vs VM fixes.
> 
> Picks up a single change:
> $ git log 97d7f0702..8ef1e6c0 --date=short --first-parent --format='%ad %ae %s'
> 2020-04-06 bpastene@chromium.org device: Don't assume '--device=localhost' means VM.
> 
> And updates chromeos/test_runner.py to not specify '--device=localhost'
> when running VM tests.
> 
> Bug: 1067800
> Change-Id: Id8af6b2cb1d8a082b71a6ac01cfe9522578a21b4
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2145762
> Reviewed-by: Erik Chen <erikchen@chromium.org>
> Commit-Queue: Ben Pastene <bpastene@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#758264}

TBR=achuith@chromium.org,erikchen@chromium.org,bpastene@chromium.org

# Not skipping CQ checks because original CL landed > 1 day ago.

Bug: 1067800
Change-Id: Ide5832c94b127d0ad360f66954bf2ce101b0933e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2146409
Reviewed-by: Hiroki Sato <hirokisato@chromium.org>
Commit-Queue: Hiroki Sato <hirokisato@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#758471}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 555860095f79be6bf7038c245fe76eb006ad27f0
2020-04-13 06:57:09 +00:00
Ben Pastene da28665bf0 Manually roll chromite to pick up localhost vs VM fixes.
Picks up a single change:
$ git log 97d7f0702..8ef1e6c0 --date=short --first-parent --format='%ad %ae %s'
2020-04-06 bpastene@chromium.org device: Don't assume '--device=localhost' means VM.

And updates chromeos/test_runner.py to not specify '--device=localhost'
when running VM tests.

Bug: 1067800
Change-Id: Id8af6b2cb1d8a082b71a6ac01cfe9522578a21b4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2145762
Reviewed-by: Erik Chen <erikchen@chromium.org>
Commit-Queue: Ben Pastene <bpastene@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#758264}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: a5301433ed9a9610c127691d6c0f6d4c4af82f7d
2020-04-10 20:11:35 +00:00
Steven Bennetts d446ff55fa Add process_perf_results.py to disk_usage_tast_test's merge script v2
Bug: 1047454
Change-Id: I9cd74e14d66ed9018c48dee4c711e85c456c1610
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2044874
Commit-Queue: Steven Bennetts <stevenjb@chromium.org>
Reviewed-by: Ben Pastene <bpastene@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#743190}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 5538c8781ca5d22b52faab6ac2ca770cf96ddd3c
2020-02-20 19:10:02 +00:00
Takuto Ikuta 18acd03bc6 build: remove unused references to swarming_client
subprocess42 is not used by test_runner.py anymore.

Bug: 1050466
Change-Id: Ifd064b362d13c778c59cfd3e3d56939f6fe052c8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2053750
Reviewed-by: Ben Pastene <bpastene@chromium.org>
Commit-Queue: Ben Pastene <bpastene@chromium.org>
Auto-Submit: Takuto Ikuta <tikuta@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#741109}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 68e9cfed1fd2f97aecd60659b334bc528ce026c8
2020-02-13 17:42:54 +00:00
Ben Pastene 76306b03cb chromeos: Switch to subprocess32 (instead of 42) in test runner.
In the beginning python was created. This has made a lot of people
very angry and been widely regarded as a bad move.

Bug: 1050466
Change-Id: Ieac7ca2a42cb21e78d77d628c3fb645d32b7625f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2047351
Reviewed-by: John Budorick <jbudorick@chromium.org>
Commit-Queue: Ben Pastene <bpastene@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#740044}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 006cf3e0271407fc467ebbbff2d3c374f3bd4361
2020-02-10 23:56:51 +00:00
Ben Pastene 73b49c3219 chromeos: Add journal & power_manager log dirs to captured test results.
- journal contains system-wide logs (in a machine-readable format).
- power_manager contains logs from the daemon that controls system
  power, and may provide some insight when a device/VM shuts down
  unexpectedly

Bug: 1043953
Change-Id: I14721bdbdc62095d864145bd3d491c2d880b1df2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2016665
Reviewed-by: Brian Sheedy <bsheedy@chromium.org>
Reviewed-by: John Budorick <jbudorick@chromium.org>
Commit-Queue: Ben Pastene <bpastene@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#734661}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 35eb707c6399d9a8b282b6568392d4d48dd676e2
2020-01-23 22:41:02 +00:00
Xiyuan Xia 4e2d273755 cros: Run gtest perf test on device
- Add --trace-dir=PATH to chromeos/test_runner.py
  When present, test_runner script passes the switch with
  device local path (e.g. /tmp) to gtest to generate trace
  file on device and collects the trace files back to PATH
  on host afterwards.
- Update run_gtest_benchmark.py to map the trace file path
  in the test result json collected by test_runner script
  so that processor scripts could find and computer metrics
  from the trace file.

Example usage:

For developers:
  tools/perf/run_gtest_benchmark.py
    out_${SDK_BOARD}/Release/bin/run_interactive_ui_tests
    --device=$DUT
    --gtest_filter=All/OverviewAnimationsTest.EnterExit/7
    --output-dir=/tmp/perf_output
    --output-format=histograms
    --dbus-stub --stop-ui

For perf bots:
  testing/scripts/run_performance_tests.py
    --isolated-script-test-output=/tmp/perf_output/output.json
    --non-telemetry=true
    --use-gtest-benchmark-script
    --gtest-benchmark-name=interactive_ui_tests
    tools/perf/run_gtest_benchmark.py
      out_${SDK_BOARD}/Release/bin/run_interactive_ui_tests
      --device=$DUT
      --output-format=histograms
      --dbus-stub --stop-ui

Bug: 945711
Change-Id: Ia6911921b8354d7763be96c30a8877c9d598f103
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1974587
Commit-Queue: Xiyuan Xia <xiyuan@chromium.org>
Reviewed-by: Ben Pastene <bpastene@chromium.org>
Reviewed-by: Caleb Rouleau <crouleau@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#726402}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 366071126e3a105df3343670e1b3994207b8e1eb
2019-12-19 16:53:26 +00:00
Ben Pastene 337f0f19d5 Add a yapf style to //build/chromeos/ and auto-format all python files.
Format all the things!

Change-Id: I33f02e6e21c4388f381b35e06394fb916bfddddd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1891735
Commit-Queue: Ben Pastene <bpastene@chromium.org>
Reviewed-by: John Budorick <jbudorick@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#711845}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: df195fd51b35cccbfcc22d810747e3ac11af3d1a
2019-11-01 20:30:50 +00:00
Ben Pastene 845c454b4b chromeos: Only fetch the system logs we care about during device tests.
Instead of pulling all of /var/log/ from the device after tests, this will
pull only logs we realistically care about.

This will help prevent us from pulling massive files like:
https://chrome-isolated.appspot.com/browse?namespace=default-gzip&digest=feb62a5316e66179b97b2e422e49ded65dd77ccb&as=system.journal

Bug: 1018990
Change-Id: Ie9e901ee921bc8c45ae78f493776cecf0d2fd21e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1891131
Reviewed-by: John Budorick <jbudorick@chromium.org>
Commit-Queue: Ben Pastene <bpastene@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#711729}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: d1f290fdb4c81cca3759eace00cad711ce505bbc
2019-11-01 16:26:14 +00:00
Ben Pastene 413cc1e5e3 build: Remove references to blacklist in CrOS test runner.
R=jbudorick

Change-Id: I2d8c84a4dba8f022450c5ac8e6d094667c4e4fba
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1872154
Auto-Submit: Ben Pastene <bpastene@chromium.org>
Reviewed-by: John Budorick <jbudorick@chromium.org>
Commit-Queue: Ben Pastene <bpastene@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#707863}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: a135a52d9be72a01097600f41640b409b2a3d471
2019-10-21 17:15:59 +00:00
Anushruth 83403f169f Extend timeout for chrome_all_tast_tests_informational as it takes longer
Temporary fix for chrome_all_tast_tests_informational as it takes more than 60 minutes
to complete a run. Tast tests cannot be sharded yet (See crbug.com/968262). Also includes
a bugfix which replaces use of 'str' to 'encode' as some informational tests use '🔥' '❄'
characters.

Timeout example: https://ci.chromium.org/p/chromium/builders/ci/chromeos-kevin-rel-hw-tests/15876

Bug: 988581

Change-Id: Idd85797811d722289176565e452d163d6e8bb3b4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1839018
Commit-Queue: Anushruth  <anushruth@chromium.org>
Reviewed-by: Ben Pastene <bpastene@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#704079}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 7f095908d28a18cf30ae89c83d5731b615304cb9
2019-10-09 05:30:21 +00:00
Chinglin Yu 620022c5ef chromeos: Add LD_LIBRARY_PATH the generated test runner script.
This adds LD_LIBRARY_PATH=./ to the test runner script to make it load
dependent shraed objects in test invocation.

Bug: 1002751
Change-Id: I96cb90a245ce83985971e776e14f6d9f5085b802
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1832848
Reviewed-by: Ben Pastene <bpastene@chromium.org>
Commit-Queue: Chinglin Yu <chinglinyu@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#701884}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 22773f51eab5117b01368945d5267bc2446332dd
2019-10-02 03:36:14 +00:00
Ben Pastene 27104bd678 chromeos: Add a doc for debugging test failures on Chrome OS.
Add a link to that doc in Tast test failure log snippets.

Will make failure snippets look like:
https://logs.chromium.org/logs/chromium/buildbucket/cr-buildbucket.appspot.com/8904924613768986736/+/steps/chrome_all_tast_tests__with_patch__on_ChromeOS/0/logs/Deterministic_failure:_session.LogoutCleanup__status_FAILURE_/0

Bug: 923426
Change-Id: Id7d19fa94126a013763e6671cfc0cd8f6263c71b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1759234
Commit-Queue: Ben Pastene <bpastene@chromium.org>
Reviewed-by: John Budorick <jbudorick@chromium.org>
Reviewed-by: Mitsuru Oshima <oshima@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#692275}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: b30c66e96926c66b5bd6a5c02bb96d56b3fcd433
2019-08-30 23:25:10 +00:00
Ben Pastene d3448e0c5a chromeos: Don't strip symbols from Chrome for host-side (eg telemetry) tests.
But do strip them for tast tests on coverage bots. Tast is likely broken
on the coverage bot right now, but the bot's stuck failing on compile,
so I don't think anyone noticed.

Bug: 995776
Change-Id: I3fbfe16133c876c110eddf0747e49f5ee7fdffe4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1762446
Reviewed-by: John Budorick <jbudorick@chromium.org>
Commit-Queue: Ben Pastene <bpastene@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#689040}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 3ca6ffec4ee4dcf6f676a1d13996cdc094e95f5c
2019-08-21 16:52:49 +00:00
Ben Pastene 1820858482 chromeos: Don't strip symbols from Chrome for Tast tests even on VMs.
I believe we have enough room for this now that we're mounting the
browser outside the default deploy dir.

Change-Id: Ifdb667daadee13603bc3de2833c5ccb3d11961bc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1758832
Reviewed-by: John Budorick <jbudorick@chromium.org>
Commit-Queue: Ben Pastene <bpastene@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#687880}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 13c30b3c64b522e808c538b407f455d328177b48
2019-08-16 23:37:34 +00:00
Ben Pastene 078bc3497a chromeos: Point TMPDIR to /usr/local/tmp during VM/DUT tests.
vpython uses both HOME and TMPDIR as workspaces. Now that /tmp is
mounted with noexec, we need to point vpython to a tmp dir without that
restriction.

Bug: 990859
Change-Id: I17629676abb898923658a48862a909e99d4fac1e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1735554
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Commit-Queue: Ben Pastene <bpastene@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#684074}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 37fea8c4e744b0e53c3c8503a62533c034962059
2019-08-05 19:44:23 +00:00
Eashan Bhatt a5933d77a4 test_runner: Deprecate --private-key
The workaround for using private key has been fixed on the chromeos
  side and is no longer needed here.

BUG=chromium:972869
TEST=manual

Change-Id: I2bedc47785a0f50cd198017155f294b45fa09e04
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1717996
Reviewed-by: Achuith Bhandarkar <achuith@chromium.org>
Reviewed-by: Ben Pastene <bpastene@chromium.org>
Commit-Queue: Eashan Bhatt <eashanbhatt@google.com>
Cr-Original-Commit-Position: refs/heads/master@{#680983}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 35bc6451f74d62cf8a52e301501ba7bd485ea7d8
2019-07-25 20:38:54 +00:00
Ben Pastene cdb8b3fe48 Capture system logs when running host-side tests on CrOS DUTs.
Bug: 608034
Change-Id: Iec72254dd2949c329be60980f27dd7c940b26fcc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1717158
Reviewed-by: Dirk Pranke <dpranke@chromium.org>
Commit-Queue: Ben Pastene <bpastene@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#680869}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 908863ca0e08af19ae9a30f29821b6340847a6a8
2019-07-25 16:20:03 +00:00
Keiichi Watanabe 5d238c68de Remove modprobe for vivid on Chrome OS VM
We no longer need to load vivid explicitly on Chrome OS VM
because it's already loaded at the start-up time by upstart.

Bug: 904730, 852302
Test: capture_unittests passed at chromeos-amd64-generic-rel on CQ
Change-Id: Id75594458c7ca92c406cf4074845763c0672f944
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1710286
Reviewed-by: Ben Pastene <bpastene@chromium.org>
Commit-Queue: Keiichi Watanabe <keiichiw@chromium.org>
Auto-Submit: Keiichi Watanabe <keiichiw@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#679872}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: b34a6dc8903ad13a9484ee3d33492b1d14ccfd06
2019-07-23 04:28:24 +00:00
Ben Pastene f9514f2deb chromeos: Make additional args to the sanity test non-fatal.
It currently breaks the with/without patch retry flow:
https://ci.chromium.org/p/chromium/builders/try/chromeos-kevin-rel/820
https://chromium-swarm.appspot.com/task?d=true&id=46179d96935c9210

So let's ignore any --test-launcher-* args. The sanity tests is quick
and (hopefully) non-flaky enough to not need any of those.

R=jbudorick

Change-Id: I577508a63eaa6dbed3a248301bc0e39a8c19bcc7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1707048
Reviewed-by: John Budorick <jbudorick@chromium.org>
Commit-Queue: Ben Pastene <bpastene@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#678346}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 8841d1d9d5317cfbad6087c7cde43598ecdb6b30
2019-07-17 17:37:22 +00:00
Ben Pastene f52a9d0c5a Refactor out references to VMs in build configs for simplechrome tests.
This renames the test "cros_vm_sanity_test" to "cros_browser_sanity_test"
since we also run it on chromebooks.

This also renames the target "cros_vm_launcher" to "cros_test_wrapper"
since we use that wrapper script to launch tests on chromebooks. (Used
mainly for telemetry tests.)

Bug: 866062
Change-Id: I4e6d0b7934ca15f132692121ddac94c56fb3d258
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1689981
Reviewed-by: John Budorick <jbudorick@chromium.org>
Commit-Queue: Ben Pastene <bpastene@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#675399}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 4534c39e40005e35370b4f3b1aed54c4fe4756f8
2019-07-08 22:55:34 +00:00
Ben Pastene f50d8c8e98 Add bpastene@ to //build/chromeos/OWNERS
R=jbudorick

Change-Id: I415d23b8cdab2a3762a5ee294ed101320d99ea3f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1677230
Commit-Queue: Ben Pastene <bpastene@chromium.org>
Reviewed-by: John Budorick <jbudorick@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#675273}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 25deffcf604f5255c9b47eba10d59cf1214657a2
2019-07-08 17:24:30 +00:00
Ben Pastene a6157df4ce chromeos: Point vpython to /usr/local/tmp instead of /tmp during tests.
/tmp will soon no longer be mounted with exec permissions in test images.
We've been using /tmp to install vpython binaries during some browser
tests, so move them to /usr/local/tmp, which should remain mounted with
exec permissions.

R=jbudorick, vapier

Bug: 936818
Change-Id: I0c6ed52f0c1d91d2e905674a74b193a604145f9b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1684632
Reviewed-by: John Budorick <jbudorick@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Commit-Queue: Ben Pastene <bpastene@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#674094}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 215b9c188f1e5aa78c2b25cad7140c726c17d102
2019-07-02 16:46:47 +00:00
Ben Pastene ff7a641a07 chromeos: Add a test runner arg that stops the UI on the device.
And enable it for some UI tests.

Bug: 947531
Change-Id: I1545ce6f718214a65690cc6044e2398d9a0bc218
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1635350
Reviewed-by: John Budorick <jbudorick@chromium.org>
Commit-Queue: Ben Pastene <bpastene@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#665248}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 4dad0e4bd5ea5659770c2e5c4e6b8d127a21c6a5
2019-05-31 20:43:22 +00:00
Ben Pastene 2a57b80f66 chromeos: Ensure cros_run_test's exit code is propagated if it's non-zero.
eg: https://chromium-swarm.appspot.com/task?id=4527b399d8f02d10
Something went wrong there, and cros_run_test return non-zero, but no
failed Tast tests were found, so the test runner returned zero.

This'll prevent that from happening.

Bug: 947531
Change-Id: Ie43912771820f3920c30b82f82d6d54555868164
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1638777
Reviewed-by: John Budorick <jbudorick@chromium.org>
Commit-Queue: Ben Pastene <bpastene@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#665223}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 72d151e8d9b1fb4b4172bc15e24ce42cf61c47cd
2019-05-31 19:43:05 +00:00
Ben Pastene 41416a0150 chromeos: Remove references to Tast's dep:chrome_login.
It's been folded into dep:chrome.

Bug: 963618
Change-Id: Id98b1e01116538f2c9c2f9ddccd9ac023e33d44c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1637479
Reviewed-by: Achuith Bhandarkar <achuith@chromium.org>
Reviewed-by: Dan Erat <derat@chromium.org>
Reviewed-by: Dirk Pranke <dpranke@chromium.org>
Commit-Queue: Ben Pastene <bpastene@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#664937}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 904ac73be37df0248f99b5528f8960834ff13a1f
2019-05-30 23:03:46 +00:00
Ben Pastene 57ee4e3bef chromeos: Run all Tast tests via the host-side tast bin.
*except for coverage tests, since they need special setup.

This removes support for the '--use-host-tast-bin' arg, since we'll
now default to always using.

Bug: 923426
Change-Id: Ifb57f53153c4d4db73e98e98cce1ef9a49548679
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1585002
Reviewed-by: John Budorick <jbudorick@chromium.org>
Commit-Queue: Ben Pastene <bpastene@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#655245}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: d33514e31c554ba8e861ad03ac6dc66d5a325cf2
2019-04-30 16:05:42 +00:00
Ben Pastene 70dcfa3e46 chromeos: Switch Tast result parser to use streamed_results.jsonl.
This should let us parse some results even if something goes wrong
and the final results.json doesn't get generated for some reason.

Bug: 923426
Change-Id: I028896c9edc7aeb8b3ec6339b8867f0b29ae095f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1575105
Reviewed-by: John Budorick <jbudorick@chromium.org>
Commit-Queue: Ben Pastene <bpastene@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#654678}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: ba744c00f6bd238921962db91c7545edc34eebe9
2019-04-26 23:59:19 +00:00
Ben Pastene 26539ae5b0 chromeos: Add a few more dirs to the list we don't copy over during tests.
These shouldn't be used on the device during tests (only the host).

Bug: 866062
Change-Id: I1d8ecf6cc9b416c34cc90bb55377bb8185556fa1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1572266
Auto-Submit: Ben Pastene <bpastene@chromium.org>
Commit-Queue: John Budorick <jbudorick@chromium.org>
Reviewed-by: John Budorick <jbudorick@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#652277}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 9220d4b37fc0bf0c27d386bfbe213f343f96eb36
2019-04-18 20:23:44 +00:00
Ben Pastene 2c6f5922db chromeos: Restructure test runner args a bit.
This makes the "test_type" arg the very first arg. Previously, anything
that came before it couldn't be passed in from the generated test script.

eg: running `./$out/bin/run_gtest --device $DUT_IP` would have no effect
since "--device" came before the "test_type" arg (which itself was
set in the generated script).

Bug: 866062
Change-Id: I7712f11b23f78f28e9831fe506b9467db8c217e4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1572959
Reviewed-by: John Budorick <jbudorick@chromium.org>
Commit-Queue: Ben Pastene <bpastene@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#652208}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: fef7399c060df4ae25879ac8fb05070f1b0ccf95
2019-04-18 17:41:26 +00:00
Ben Pastene 6cacb8c92b chromeos: Parse test results when using the host-side Tast runner.
Bug: 923426
Change-Id: I26920165476cbc5a6cb7d03329e66d346528f1d1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1565617
Reviewed-by: Dan Erat <derat@chromium.org>
Reviewed-by: John Budorick <jbudorick@chromium.org>
Commit-Queue: Ben Pastene <bpastene@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#651744}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: a4bda7b436add2044c64c0b83753e8c8a9012662
2019-04-17 16:08:24 +00:00
Ben Pastene 26445a002a Add an arg to cros test runner to optionally use host-side Tast bin.
And enable it on the fyi bot. This'll let me safely iterate on it w/o
breaking things again.

CQ_INCLUDE_TRYBOTS=luci.chromium.try:chromeos-kevin-rel

Bug: 923426
Change-Id: I3f2a8973e7d7c1d35001643fe26e1cf6c08f9477
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1565154
Reviewed-by: John Budorick <jbudorick@chromium.org>
Commit-Queue: Ben Pastene <bpastene@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#650054}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 86fbe06b11705f92a5a8ca700c7e27becdcd337b
2019-04-11 21:28:18 +00:00
Ben Pastene 340e3d29a3 Force all tast tests to use local_test_runner.
This is a functional revert of https://chromium-review.googlesource.com/c/chromium/src/+/1553805

Turns out `cros_run_test --tast` doesn't exit non-zero if one of the tests
fail. So we've been ignoring failures since that landed. This reverts back
to using local_test_runner, which does reliably exit non-zero on failure.

Hard-coding the conditional instead of reverting the original CL to
avoid merge conflicts and for easier follow-up fixes.

Bug: 923426
Change-Id: Iaa49011061f42f062e79d0d6867f0741314d473b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1558494
Reviewed-by: John Budorick <jbudorick@chromium.org>
Commit-Queue: Ben Pastene <bpastene@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#648835}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 41e078e8a655634994f8169a5965990926bba98c
2019-04-08 20:19:50 +00:00
Ben Pastene 3ebe394d21 Capture Tast results in the CrOS system logs dir.
Practically speaking, the logs dir is just the isolated out dir.

This'll collect a number of *.json files for the tests, which I'll convert
into standard chromium json results in a follow-up.

Bug: 923426
Change-Id: I488b740d733a192c97de11bc2ec4dd06f2ffbd1e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1554797
Reviewed-by: John Budorick <jbudorick@chromium.org>
Commit-Queue: Ben Pastene <bpastene@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#648786}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: c4a5c357a442b5e31c07e215ebb31eec77441fe7
2019-04-08 19:14:07 +00:00
Ben Pastene e4948d79f2 Use the host-side tast bin to run tast tests instead of the DUT-side local_test_runner.
This is done by using cros_run_test's "--tast" feature instead of using
its "--remote-cmd" option. The tast bin has a lot more features, one of
which is better result reporting. Leveraging these more accurate results
will come in a follow-up.

CQ_INCLUDE_TRYBOTS=luci.chromium.try:chromeos-kevin-rel

Bug: 923426
Change-Id: I6e30c62c0a1bba0444d3b6d25a0e59a70de50263
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1553805
Commit-Queue: Ben Pastene <bpastene@chromium.org>
Reviewed-by: John Budorick <jbudorick@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#648032}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 5084d89d50df91778c36cf3fd6e09b047b50a24d
2019-04-05 01:53:38 +00:00
Ben Pastene 71333e009f Fix args for interactive_ui_tests on cros VM fyi bot.
I typo'ed the dbus one. And we don't need a to fake a src checkout since
we already essentially have one on disk thanks to the fact that we scp
all of the test's runtime_deps.

R=jbudorick

Bug: 946685
Change-Id: I16ee3cf79f400ad7de883cb3b60da448019f2338
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1546198
Commit-Queue: Ben Pastene <bpastene@chromium.org>
Reviewed-by: John Budorick <jbudorick@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#646943}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: c99736ed42b4138cb54152f17a667507b7842c5d
2019-04-02 20:42:45 +00:00
Ben Pastene 127e5f5304 Add interactive_ui_tests' SplitViewResize on the FYI cros VM test bot.
And remove a couple old suites from the fyi bot.

Bug: 946685
Change-Id: I621e6482c39b9af47173db644a5a1866741fa7eb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1548054
Reviewed-by: John Budorick <jbudorick@chromium.org>
Commit-Queue: Ben Pastene <bpastene@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#646560}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 39af4ef6f76f173ae2d057e08493c85e913024b0
2019-04-01 23:35:09 +00:00
Ben Pastene 9337a8c07a Set the LLVM env var for chrome when running coverage tests on CrOS.
Since chrome-on-cros is launched/managed by initctl, it has its own
method for configuring the environment. This is done by chrome_dev.conf

Bug: 934059
Change-Id: I90c5262b4d27142b308ba2aa2e6d5b0f514d0cec
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1546310
Reviewed-by: John Budorick <jbudorick@chromium.org>
Commit-Queue: Ben Pastene <bpastene@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#645884}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 86bc16b2c84f1882f46274bb909f14e1758fde86
2019-03-29 19:06:48 +00:00
Ben Pastene 5a1bd0a035 Run cros tast and sanity tests via on_device scripts.
Instead of passing in the single command directly to cros_run_test. (Or
in the case of vm_sanity, letting cros_run_test do that for us.)

This will let us add additional pre-test setup commands for both tests.
(None for now, but coverage tests will use some.)

Bug: 934059
Change-Id: Iba15f4817293c4a1c5db2dabc89f4a97fee49664
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1542298
Reviewed-by: John Budorick <jbudorick@chromium.org>
Commit-Queue: Ben Pastene <bpastene@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#645790}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: ca17d127f40b91a53d0b53e59a30c57f2830ef9a
2019-03-29 16:08:54 +00:00