0
Commit Graph

202 Commits

Author SHA1 Message Date
Gabriel Charette
45cbb4a7b4 Fix Windows paths in web tests documentation
Paths can't be copy-pasted if using POSIX style separators.

R=danakj@chromium.org

Change-Id: I223f6d2133f827d43ff40bedb7d4a700805f2cc3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2773922
Auto-Submit: Gabriel Charette <gab@chromium.org>
Commit-Queue: danakj <danakj@chromium.org>
Reviewed-by: danakj <danakj@chromium.org>
Cr-Commit-Position: refs/heads/master@{#864652}
2021-03-19 15:08:12 +00:00
Zequan Wu
6d00cccdc9 [Docs] Get llvm-cov and llvm-profdata by setting "checkout_clang_coverage_tools"
Change-Id: I219aad59ab54de07dc1206cf395a4b0f33821d7f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2761961
Auto-Submit: Zequan Wu <zequanwu@google.com>
Reviewed-by: Nico Weber <thakis@chromium.org>
Commit-Queue: Zequan Wu <zequanwu@google.com>
Cr-Commit-Position: refs/heads/master@{#863006}
2021-03-15 22:40:44 +00:00
Preethi Mohan
dd828884d1 flag specific support in rebaseline-cl.
Added the option --flag-specific=<foo>.
Currently supporting only 'highdpi' for flag-specific.
New experimental highdpi builder is added which gets triggered with this option.
Results from the new builder are fetched and rebaselined under
third_party/blink/web_tests/flag-specific/<foo>/. Other builders are ignored with this option.

Rebaselined the highdpi tests using these changes.

Bug: 1068400

Change-Id: I5638eb225398159caa06963c9ef5f3991b1a7a3b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2545863
Reviewed-by: Xianzhu Wang <wangxianzhu@chromium.org>
Reviewed-by: Stephen McGruer <smcgruer@chromium.org>
Commit-Queue: Preethi Mohan <preethim@google.com>
Cr-Commit-Position: refs/heads/master@{#859222}
2021-03-03 02:03:48 +00:00
Stephen McGruer
ba2aa52196 [WPT Import] Document rubber-stamper bot interactions
Bug: 1175765
Change-Id: If7706c935f0ca137eecdc1584f1c8ed0f3064ccd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2724052
Commit-Queue: Stephen McGruer <smcgruer@chromium.org>
Reviewed-by: Luke Z <lpz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#858280}
2021-02-26 21:27:43 +00:00
Ben Joyce
9b52f6ce6a Fix path of doc linked in code_coverag doc.
Doc location has moved.

Bug: None
Change-Id: I523a605f8eda83f6c28f4f7a3db615248054e576
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2716116
Auto-Submit: benjamin joyce <bjoyce@chromium.org>
Reviewed-by: Yuke Liao <liaoyuke@chromium.org>
Commit-Queue: Yuke Liao <liaoyuke@chromium.org>
Cr-Commit-Position: refs/heads/master@{#857416}
2021-02-24 23:22:50 +00:00
Greg Guterman
de78a04e94 Add RTS doc and DEPS hook
The first step to doing RTS is to download the model and executable.
This new gclient arg will also decide whether we run RTS.

Bug: 1175871
Change-Id: I2c99671e68f386978402ad8e0cb9f0b3b4980a84
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2693808
Commit-Queue: Gregory Guterman <guterman@google.com>
Auto-Submit: Gregory Guterman <guterman@google.com>
Reviewed-by: Dirk Pranke <dpranke@google.com>
Reviewed-by: Nodir Turakulov <nodir@chromium.org>
Cr-Commit-Position: refs/heads/master@{#854570}
2021-02-17 01:37:55 +00:00
David Jacobo
3871d74d7f [docs] Fix link to writing Simple gtests
Bug: None
Change-Id: I1f5ad3284cc9c105e82e62e09e686b1d4f130ca5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2698398
Auto-Submit: David Jacobo <djacobo@chromium.org>
Commit-Queue: Yusuke Sato <yusukes@chromium.org>
Reviewed-by: Yusuke Sato <yusukes@chromium.org>
Cr-Commit-Position: refs/heads/master@{#854538}
2021-02-17 00:13:45 +00:00
Arnaud Mandy
f0d227afff docs: Update path to protocol mode.
commit 2389045 (Move content/shell/$process/web_test
 to content/web_test/$process) has updated the
path to test_info_extractor.h

The current patch fixes the link to "protocol mode"

Bug: 1174454
Change-Id: Ib22507db10f75d0e5cdabb53aa13bd38ef52bb53
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2673426
Reviewed-by: Kentaro Hara <haraken@chromium.org>
Commit-Queue: Arnaud Mandy <arnaud.mandy@intel.com>
Cr-Commit-Position: refs/heads/master@{#850567}
2021-02-04 14:00:31 +00:00
Greg Guterman
d055171145 Revert "Proof of concept for test selection via GN"
This reverts commit 8da79b7118.

Reason for revert: We're looking into other methods of test selection because our filtering of source files conflicts with state sharing between test files.

Original change's description:
> Proof of concept for test selection via GN
>
> This CL implements gn based unittest filtering. The files in the rts_exclude_file are manually selected for this example, but will later be populated using the smart logic in rts-chromium.
> These two cases (source_set and test template) cover most of the test files. I haven't seen any other templates with unittests, but even if there are some this would be a great start. This also doesn't cover webtests, but I think there's enough exclusion power here to save a lot of compute.
> This also adds a linux-rts builder to the mb config to prepare the experimental builder.
>
> Bug: 1145216
> Change-Id: I7343249f3df0739e39cfe351e5714d7978059d86
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2551276
> Commit-Queue: Gregory Guterman <guterman@google.com>
> Reviewed-by: Dirk Pranke <dpranke@google.com>
> Reviewed-by: Nodir Turakulov <nodir@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#841248}

TBR=dpranke@google.com,nodir@chromium.org,chromium-scoped@luci-project-accounts.iam.gserviceaccount.com,guterman@google.com

Bug: 1145216
Change-Id: I96ec160c5f2e08e8be7faed7c6126aff3f82c053
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2667128
Reviewed-by: Gregory Guterman <guterman@google.com>
Reviewed-by: Nodir Turakulov <nodir@chromium.org>
Reviewed-by: Dirk Pranke <dpranke@google.com>
Commit-Queue: Gregory Guterman <guterman@google.com>
Cr-Commit-Position: refs/heads/master@{#849942}
2021-02-03 03:46:16 +00:00
Ken Rockot
6355f0991c Migrate remaining WPT to Mojo JS modules
All remaining WPT using Mojo bindings are migrated to newer module-based
bindings here. Support for loading older bindings variants in WPT is
removed.

Bug: 1004256
Change-Id: I630a6ddb0e5b89f5b7e6c538a273c3725a485aae
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2664907
Commit-Queue: Ken Rockot <rockot@google.com>
Reviewed-by: Stephen McGruer <smcgruer@chromium.org>
Reviewed-by: Michael Moss <mmoss@chromium.org>
Reviewed-by: Alexander Cooper <alcooper@chromium.org>
Cr-Commit-Position: refs/heads/master@{#849713}
2021-02-02 19:42:58 +00:00
Ben Joyce
88282360b2 Update coverage for android native coverage.
Can run android code coverage locally with this change. Uses the same
command as  outlined:
https://chromium.googlesource.com/chromium/src/+/master/docs/testing/code_coverage.md#local-coverage-script

Bug: 985574
Change-Id: Icb0e9a1e55bfdad7f6a4bcb3c49a2abaa3e6729c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2658964
Commit-Queue: benjamin joyce <bjoyce@chromium.org>
Auto-Submit: benjamin joyce <bjoyce@chromium.org>
Reviewed-by: Yuke Liao <liaoyuke@chromium.org>
Cr-Commit-Position: refs/heads/master@{#848784}
2021-01-29 23:53:31 +00:00
Christian Dullweber
0a8fc39368 Split grouped tests by Feature annotation
Feature flags in instrumentation tests only change when Chrome is
restarted. To allow to run tests in Batches that have methods with
@Features annotation, split tests into groups based on enabled/disabled
Features by adding a Batch.SplitByFeature annotation.

Bug: 1170735
Change-Id: Id90d704bcd949eb8630172ed1051cb3fdfc5435f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2645136
Reviewed-by: Yaron Friedman <yfriedman@chromium.org>
Reviewed-by: Michael Thiessen <mthiesse@chromium.org>
Reviewed-by: benjamin joyce <bjoyce@chromium.org>
Reviewed-by: Rohit Agarwal <roagarwal@chromium.org>
Commit-Queue: Christian Dullweber <dullweber@chromium.org>
Cr-Commit-Position: refs/heads/master@{#848181}
2021-01-28 18:35:36 +00:00
Nicholas Verne
f4b76305d5 Split out tast_control so we can watch changes to tast_disabled_tests.
Bug: 1157356
Change-Id: Ic6762bfa9c1e3f1978ff0a8197f0f80f4800eec2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2643678
Reviewed-by: Ryo Hashimoto <hashimoto@chromium.org>
Reviewed-by: Ben Pastene <bpastene@chromium.org>
Reviewed-by: Shuhei Takahashi <nya@chromium.org>
Commit-Queue: Nicholas Verne <nverne@chromium.org>
Cr-Commit-Position: refs/heads/master@{#847490}
2021-01-27 04:08:05 +00:00
Stephen McGruer
7878d06f97 [documentation] Update some web_tests documentation relating to Android
Android is no longer supported for running web_tests (and has not been
for some time). The SmokeTests file however is still used, by the
Fuchsia bots.

Bug: 567947
Change-Id: Id4dde2b2d8751b9fadc2a94fdd682b78fba5aeb7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2629569
Reviewed-by: Rakib Hasan <rmhasan@google.com>
Reviewed-by: danakj <danakj@chromium.org>
Commit-Queue: Stephen McGruer <smcgruer@chromium.org>
Auto-Submit: Stephen McGruer <smcgruer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#844212}
2021-01-15 20:23:20 +00:00
Ben Joyce
739fdb2083 Change quotation marks to be bash pastable.
Bug: None
Change-Id: I39c221fd574b9d19fe0d9cbabf81769644823e90
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2627142
Reviewed-by: Yuke Liao <liaoyuke@chromium.org>
Commit-Queue: benjamin joyce <bjoyce@chromium.org>
Cr-Commit-Position: refs/heads/master@{#843122}
2021-01-13 19:22:22 +00:00
Greg Guterman
7d869c841c Fix docs file name and add main() failure mode
Bug: 1145216
Change-Id: I9479c0e088ac4acf115f9da14e499268c9576504
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2618559
Reviewed-by: Nodir Turakulov <nodir@chromium.org>
Commit-Queue: Nodir Turakulov <nodir@chromium.org>
Auto-Submit: Gregory Guterman <guterman@google.com>
Cr-Commit-Position: refs/heads/master@{#841792}
2021-01-09 06:00:49 +00:00
Greg Guterman
8da79b7118 Proof of concept for test selection via GN
This CL implements gn based unittest filtering. The files in the rts_exclude_file are manually selected for this example, but will later be populated using the smart logic in rts-chromium.
These two cases (source_set and test template) cover most of the test files. I haven't seen any other templates with unittests, but even if there are some this would be a great start. This also doesn't cover webtests, but I think there's enough exclusion power here to save a lot of compute.
This also adds a linux-rts builder to the mb config to prepare the experimental builder.

Bug: 1145216
Change-Id: I7343249f3df0739e39cfe351e5714d7978059d86
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2551276
Commit-Queue: Gregory Guterman <guterman@google.com>
Reviewed-by: Dirk Pranke <dpranke@google.com>
Reviewed-by: Nodir Turakulov <nodir@chromium.org>
Cr-Commit-Position: refs/heads/master@{#841248}
2021-01-07 23:41:09 +00:00
Robert Ma
a23460e7f5 Update WPT-NOTIFY docs to use DIR_METADATA
Metadata have been migrated from the comment in OWNERS to DIR_METADATA.

Change-Id: I6c035d8ce37df2289cdb12e800c286cd3b8642ca
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2598898
Auto-Submit: Robert Ma <robertma@chromium.org>
Commit-Queue: Stephen McGruer <smcgruer@chromium.org>
Reviewed-by: Stephen McGruer <smcgruer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#838560}
2020-12-20 12:39:27 +00:00
Ben Pastene
115c1a20e3 docs: Fix typo in chromeos_debugging_tips.md
Change-Id: I5aaa8cc34eb8b660a894d08f8a47e4a39569249b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2591452
Auto-Submit: Ben Pastene <bpastene@chromium.org>
Reviewed-by: Dirk Pranke <dpranke@google.com>
Commit-Queue: Dirk Pranke <dpranke@google.com>
Cr-Commit-Position: refs/heads/master@{#837168}
2020-12-15 18:39:00 +00:00
Ben Pastene
44862a2d83 docs: Add instructions on how to symbolize Chrome crashes from Tast.
These instructions should let folks manually symbolize any Chrome
crash dumps generated during Tast tests on bots, which will make
test debugging a bit easier.

Bug: 1155738
Change-Id: I5cd9f11d53721b82fd23003d1f89c6e921a0a122
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2587583
Reviewed-by: Brian Sheedy <bsheedy@chromium.org>
Commit-Queue: Ben Pastene <bpastene@chromium.org>
Cr-Commit-Position: refs/heads/master@{#836342}
2020-12-12 00:53:07 +00:00
Luke Zielinski
5ce5d37c5e Remove the linux-wpt-payments-fyi-rel bot
Bug: 1127055
Change-Id: I40e29aaf533cc852b97c7010950eb25cbe2d93d7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2564394
Reviewed-by: Erik Staab <estaab@chromium.org>
Commit-Queue: Luke Z <lpz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#832459}
2020-12-01 19:19:47 +00:00
Raphael Kubo da Costa
6d16d3a8fd docs: Add [TOC] to web_tests_in_content_shell.md
TBR=robertma

Change-Id: Id6b2205e0e0008737655eb689d0814a1f8c6c67a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2566996
Reviewed-by: Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com>
Commit-Queue: Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com>
Cr-Commit-Position: refs/heads/master@{#832378}
2020-12-01 16:47:08 +00:00
Nick Burris
00c5f54b34 Document common causes of flaky GTests
This patch lists some common causes of flakes in GTests, and links to
examples that might be helpful. Credit for the examples goes to the
security architecture team plus an example of my own.

Bug: 1127370
Change-Id: Ied695425ebab5935ef54094972fdbc1bfa9f187d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2559271
Reviewed-by: Stephen McGruer <smcgruer@chromium.org>
Commit-Queue: Nick Burris <nburris@chromium.org>
Cr-Commit-Position: refs/heads/master@{#831889}
2020-11-30 17:55:22 +00:00
Robert Ma
cca3b25baf [docs] Do not start run_web_tests.py with xvfb.py
Clarify that there is no need to use `testing/xvfb.py` to start
`run_web_tests.py` on Linux.

Change-Id: Ic589e5b74cfb208995c3bbbf3b5dc6810df38bfb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2555262
Commit-Queue: Robert Ma <robertma@chromium.org>
Commit-Queue: Marijn Kruisselbrink <mek@chromium.org>
Auto-Submit: Robert Ma <robertma@chromium.org>
Reviewed-by: Marijn Kruisselbrink <mek@chromium.org>
Cr-Commit-Position: refs/heads/master@{#830287}
2020-11-23 20:11:36 +00:00
Preethi Mohan
6ad00eec25 Trigger CQ try bots in rebaseline-cl in addition to the blink try bots.
See crbug.com/1149035 as well.

Bug: 739522

Change-Id: Iaba40802428c26075162298cbcd013fca3adfc7e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2486482
Commit-Queue: Preethi Mohan <preethim@google.com>
Reviewed-by: Robert Ma <robertma@chromium.org>
Reviewed-by: Xianzhu Wang <wangxianzhu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#828052}
2020-11-17 03:09:42 +00:00
Ben Pastene
0fed3a7542 docs: Update chromeos_debugging_tips.
The doc includes a number of isolate links, but items in isolate expire
after 90 days. So this updates these to a set of new isolate links.
Hopefully by the time these new links expire, we'll be on RDB which will
have a slightly different debugging flow.

This also adds some tips on running the tests locally.

Bug: None
Change-Id: Ib6244f787d2a914b7c3a79aaba2a33b688d346c7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2522409
Reviewed-by: Dirk Pranke <dpranke@google.com>
Commit-Queue: Ben Pastene <bpastene@chromium.org>
Cr-Commit-Position: refs/heads/master@{#824965}
2020-11-06 19:25:15 +00:00
Stephen McGruer
5f4af313d3 [docs] Add links to documentation on addressing flake
Bug: 1124430
Change-Id: I69b3f9de37b1331feb8e4bf0462c22e9b2b2a2d2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2521204
Reviewed-by: Nick Burris <nburris@chromium.org>
Commit-Queue: Stephen McGruer <smcgruer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#824565}
2020-11-05 21:05:52 +00:00
Nick Burris
02eae456ca Add flaky Gtest tips
Add documentation with tips for debugging and reproducing flaky Gtests.

Bug: 1127370
Change-Id: I6b47b31cd109fe1e7bafc3b828221012a9ec95ce
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2508298
Reviewed-by: Stephen McGruer <smcgruer@chromium.org>
Commit-Queue: Nick Burris <nburris@chromium.org>
Cr-Commit-Position: refs/heads/master@{#824553}
2020-11-05 20:39:03 +00:00
Stephen McGruer
b71d507f62 Add some documentation on reproducing/debugging flaky web_tests/
This also adds a small section for WPT specifically.

Bug: 1127369, 1127368
Change-Id: Ie74413558fe47bd02f1ae29665327c68bf82ef43
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2508433
Commit-Queue: Stephen McGruer <smcgruer@chromium.org>
Reviewed-by: Nick Burris <nburris@chromium.org>
Reviewed-by: Robert Ma <robertma@chromium.org>
Cr-Commit-Position: refs/heads/master@{#824542}
2020-11-05 20:18:59 +00:00
Stephen McGruer
5383e3c07e [wptrunner] Update docs to remove obsolete flag
Bug: None
Change-Id: Icc075456c6762fb8ae841ffccb743b3b8e9ddc5b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2519480
Reviewed-by: Luke Z <lpz@chromium.org>
Commit-Queue: Luke Z <lpz@chromium.org>
Auto-Submit: Stephen McGruer <smcgruer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#824394}
2020-11-05 13:16:38 +00:00
David Van Cleve
44e5cb5879 Android: Document unit test runner incompatibility with recent versions
Android unit tests don't work on Android R+, but this isn't mentioned
in the docs, and the error message is pretty arcane and hard to
understand. This change updates the docs to mention this problem.

Bug: 1094062
Change-Id: I77b196febde1009eb13b195be937243e96ace1a3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2495968
Commit-Queue: David Van Cleve <davidvc@chromium.org>
Auto-Submit: David Van Cleve <davidvc@chromium.org>
Reviewed-by: Nate Fischer <ntfschr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#820493}
2020-10-23 23:57:04 +00:00
Edward Lesmes
afa2f4f7a9 Add DIR_METADATA files to //docs
Add Generate DIR_METADATA files and remove metadata from OWNERS
files for //docs.

Bug: 1113033
Change-Id: Ibd798892dcc522ce2363f85e53860259194eaa7c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2454498
Commit-Queue: Dirk Pranke <dpranke@google.com>
Reviewed-by: Dirk Pranke <dpranke@google.com>
Auto-Submit: Edward Lesmes <ehmaldonado@chromium.org>
Cr-Commit-Position: refs/heads/master@{#815366}
2020-10-08 22:56:59 +00:00
Stephen McGruer
f889c8916a [Documentation] Initial documentation on flaky Web Tests
This lays out a skeleton for the document, plus fills in some details of
how to go from a build results page to the test that flaked.

Bug: 1127369
Change-Id: Icea0ef102d694a61cf8f390c563ce108afee0553
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2405418
Commit-Queue: Stephen McGruer <smcgruer@chromium.org>
Reviewed-by: Nicolás Peña Moreno <npm@chromium.org>
Cr-Commit-Position: refs/heads/master@{#815262}
2020-10-08 19:05:30 +00:00
Dirk Pranke
8b9103aaca Rework disabled tests doc.
In retrospect, my prior attempt at documenting ways of
disabling tests was too ambiguous. This rewrite collapses
a couple of cases and provides clearer examples of the
various mechanisms. Hopefully this will be more useful.

Change-Id: I024ef5398c9a1fe9024e923a367a1b2ad1e23daa
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2443632
Reviewed-by: Chan Li <chanli@chromium.org>
Commit-Queue: Dirk Pranke <dpranke@google.com>
Cr-Commit-Position: refs/heads/master@{#814771}
2020-10-07 18:06:29 +00:00
Stephen McGruer
16f7943a4b [wptrunner] Add documentation on using wptrunner in Chromium
This adds some basic documentation laying out what the project is, how
to use it, and the MVP bots. It is intended as a user guide rather than
technical details.

Bug: None
Change-Id: I7d90f542d2aeb33eecfd836693f2741ad91588c6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2451505
Commit-Queue: Stephen McGruer <smcgruer@chromium.org>
Reviewed-by: Luke Z <lpz@chromium.org>
Reviewed-by: Robert Ma <robertma@chromium.org>
Cr-Commit-Position: refs/heads/master@{#814646}
2020-10-07 13:11:05 +00:00
Dirk Pranke
78557c5ac6 Document thoughts on ways to disable tests.
In an email to a Google-internal group a while ago I talked
about the various mechanisms we potentially have for disabling
tests and their advantages and disadvantages. This seems like
something worth preserving, so I'm moving it into a doc checked
into the repo.

Change-Id: If8288eac8704354c92ffe12b9e79c930e0738c72
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2419612
Commit-Queue: Dirk Pranke <dpranke@google.com>
Reviewed-by: Nodir Turakulov <nodir@chromium.org>
Cr-Commit-Position: refs/heads/master@{#811004}
2020-09-26 19:04:09 +00:00
Dirk Pranke
532b3f340b Clarify location of test_artifacts in json_test_results_format.
The existing documentation for where to put any artifacts produced by a
test wasn't completely clear, so this adds some additional text to
hopefully make it so. Namely, paths should be specified relative to the
location of the results file, which normally is in $ISOLATED_OUTDIR,
meaning that the paths will also be relative to $ISOLATED_OUTDIR).


Change-Id: I7f03b9f31e7141051a4c783c383547e9dd27d286
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2426975
Commit-Queue: Dirk Pranke <dpranke@google.com>
Reviewed-by: Dirk Pranke <dpranke@google.com>
Reviewed-by: Stephen Martinis <martiniss@chromium.org>
Cr-Commit-Position: refs/heads/master@{#810021}
2020-09-23 23:58:10 +00:00
Johann
f5b3202908 docs: specify run_blink_httpd.py directory
Most of the files served by run_blink_httpd.py are from the git
checkout. A few are not, so make sure developers know they can
specify the checkout directory with -t.

Change-Id: If66ebce1db41e05e46e792e310838ee0ed2741ab
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2405715
Auto-Submit: Johann Koenig <johannkoenig@google.com>
Reviewed-by: Robert Ma <robertma@chromium.org>
Commit-Queue: Robert Ma <robertma@chromium.org>
Cr-Commit-Position: refs/heads/master@{#806172}
2020-09-11 14:20:22 +00:00
Michael Thiessen
cfe4665c59 Add markdown documentation for test batching.
Bug: 989569
Change-Id: I49c5124ccbbb4b921a65e7b42b7c46d05bfb87d9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2363867
Auto-Submit: Michael Thiessen <mthiesse@chromium.org>
Commit-Queue: Yaron Friedman <yfriedman@chromium.org>
Reviewed-by: Yaron Friedman <yfriedman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#799716}
2020-08-19 18:03:17 +00:00
Dirk Pranke
8744a6783d Add --isolated-outdir flag to test executable API.
This adds an optional --isolated=outdir=PATH flag to the
test executable API; this gives the test runners a stable path
to the output directory from a swarming task, so that we can key
other files off of it without needing to pass them all explicitly
via the command line.

This also adds the arg to the isolated_script wrapper, so that we
those types of tests can handle the flag (by ignoring it for now).

We may need to work through the other cases (like gtest tests)
individually, which will be done in subsequent CLs.

Bug: 816629
Change-Id: Ibff6a47544bf94af5d7693a8446dfb669351cc07
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2358604
Commit-Queue: Dirk Pranke <dpranke@google.com>
Reviewed-by: Dirk Pranke <dpranke@google.com>
Reviewed-by: Erik Staab <estaab@chromium.org>
Reviewed-by: Ben Pastene <bpastene@chromium.org>
Cr-Commit-Position: refs/heads/master@{#799378}
2020-08-18 23:11:59 +00:00
Robert Ma
4f6eff17e9 [docs] Document how to use MojoJS in WPT
Also re-organize the structure of the doc to make it a bit more logical.

Bug: 1094512
Change-Id: I230de88902da3d4162af5f10332f7262a8465fcd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2363303
Commit-Queue: Robert Ma <robertma@chromium.org>
Reviewed-by: Stephen McGruer <smcgruer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#799367}
2020-08-18 22:44:45 +00:00
Xianzhu Wang
59283af802 Display [ Slow ] expectation in layout tests results.html
This is useful for developers to understand why some tests take
longer time to finish or timeout.

Change-Id: I6e9e83d2c9645bac338c074fa5f1f856d66552a8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2334473
Reviewed-by: Rakib Hasan <rmhasan@google.com>
Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#796664}
2020-08-11 02:32:51 +00:00
Wolfgang Beyer
af543d736e Fix broken links in documentation for writing web tests
Change-Id: I185fd95debae1b80e578fbf061f076cd490938b2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2316866
Reviewed-by: Charlie Reis <creis@chromium.org>
Commit-Queue: Wolfgang Beyer <wolfi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#792165}
2020-07-28 06:30:46 +00:00
Marc Treib
07cf47aafd Remove various references to third_party/cacheinvalidation
The directory was recently deleted (crrev.com/c/2274884).

Bug: 1099672
Change-Id: I5e724a2251654899c8fd861f8796de07d17359b7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2297640
Reviewed-by: Mikel Astiz <mastiz@chromium.org>
Reviewed-by: Nodir Turakulov <nodir@chromium.org>
Reviewed-by: Mohamed Heikal <mheikal@chromium.org>
Reviewed-by: Scott Graham <scottmg@chromium.org>
Commit-Queue: Marc Treib <treib@chromium.org>
Cr-Commit-Position: refs/heads/master@{#790056}
2020-07-20 19:57:21 +00:00
Xianzhu Wang
adb0670a2f Update docs for runtime enabled features and web tests
Change-Id: I7230bd37e7f9c1c136e1c23b6acdc340eb089121
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2303452
Reviewed-by: Philip Rogers <pdr@chromium.org>
Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#789247}
2020-07-16 23:04:58 +00:00
Dirk Pranke
31e346e656 Reland "Add a first pass of the desktop test wrapper scripts."
This reverts commit b679821 (change ) and
re-lands commit 956c4dc (change ) (without the addition
of //docs/testing/test_executable_api.md, which
landed separately already). Other changes landed that made
the re-land possible.

Original change's description:
> Add a first pass of the desktop test wrapper scripts.
>
> As described in the linked bug and documented in
> https://docs.google.com/document/d/19qpDeR2z-8j-WQJC-5waSd134kz94UXgYU_e_N-VplU/edit?usp=sharing
> we want to change how tests are launched under swarming so that
> they all have a consistent API and usage.
>
> We need to do at least some of this work now in order to unblock
> work going on in Swarming to change how a task's command line and
> list of files are specified, but doing all of the work in the linked
> doc and bug will significantly restructure how we configure and launch
> tests, and should bring a lot more consistency to our continuous
> integration infrastructure.
>
> This CL is a first step: a proof of concept that converts
> url_unittests on desktop to the new API in a backwards-compatible
> way (i.e., this will work with the existing chromium recipes).

TBR=tikuta@chromium.org, liaoyuke@chromium.org

Bug: 816629
Change-Id: Ia4d20501783f844fdbc1728ee986724c5301d638
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2280322
Reviewed-by: Takuto Ikuta <tikuta@chromium.org>
Reviewed-by: Dirk Pranke <dpranke@google.com>
Commit-Queue: Dirk Pranke <dpranke@google.com>
Cr-Commit-Position: refs/heads/master@{#788424}
2020-07-15 00:54:06 +00:00
Stephen McGruer
a12b34f8c2 Update WPT documentation and add note on wpt_internal
Bug: 852053
Change-Id: I9b3d78fe60361fe1156eb02b396c401584ff15ba
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2289399
Commit-Queue: Stephen McGruer <smcgruer@chromium.org>
Reviewed-by: Luke Z <lpz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#787228}
2020-07-10 16:00:42 +00:00
Stephen McGruer
fe2a9984b8 [WPT Importer] Add documentation for WPT-NOTIFY
Bug: 844671
Change-Id: I27fff20ed7d748a52d1abdf4148df9c448ac7348
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2280224
Reviewed-by: Philip Jägenstedt <foolip@chromium.org>
Commit-Queue: Stephen McGruer <smcgruer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#785022}
2020-07-03 10:45:21 +00:00
Dirk Pranke
e034e1ef53 Move the Chromium Test Executable API spec into markdown.
This CL moves the bit.ly/chromium-test-runner-api spec from
https://docs.google.com/document/d/1i9kC7xrq0Slfcx8nTjoKT1TQ4_sm3Vx2XpeIVFIidHA/edit
(a Google Docs document) into a (Markdown) file checked into
the repo at //docs/testing/test_executable_api.md.

Change-Id: I1a231afa18bace25e40445673f5b2b997d4427cd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2278179
Commit-Queue: Dirk Pranke <dpranke@google.com>
Reviewed-by: Kenneth Russell <kbr@chromium.org>
Reviewed-by: Erik Staab <estaab@chromium.org>
Cr-Commit-Position: refs/heads/master@{#784948}
2020-07-03 00:48:08 +00:00
Guido Urdaneta
b67982158b Revert "Add a first pass of the desktop test wrapper scripts."
This reverts commit 956c4dcc74.

Reason for revert: Suspect of causing consistent failure on Deterministic Linux bot

First failed run:
https://ci.chromium.org/p/chromium/builders/ci/Deterministic%20Linux%20%28dbg%29/17574

Original change's description:
> Add a first pass of the desktop test wrapper scripts.
> 
> As described in the linked bug and documented in
> https://docs.google.com/document/d/19qpDeR2z-8j-WQJC-5waSd134kz94UXgYU_e_N-VplU/edit?usp=sharing
> we want to change how tests are launched under swarming so that
> they all have a consistent API and usage.
> 
> We need to do at least some of this work now in order to unblock
> work going on in Swarming to change how a task's command line and
> list of files are specified, but doing all of the work in the linked
> doc and bug will significantly restructure how we configure and launch
> tests, and should bring a lot more consistency to our continuous
> integration infrastructure.
> 
> This CL is a first step: a proof of concept that converts
> url_unittests on desktop to the new API in a backwards-compatible
> way (i.e., this will work with the existing chromium recipes).
> 
> R=​tikuta@chromium.org, martiniss@chromium.org, bpastene@chromium.org, estaab@chromium.org, kbr@chromium.org
> 
> Bug: 816629
> Change-Id: I4aaaed9853e451536f21a752d896cf7bef5fff18
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2249173
> Commit-Queue: Dirk Pranke <dpranke@google.com>
> Reviewed-by: Nodir Turakulov <nodir@chromium.org>
> Reviewed-by: Takuto Ikuta <tikuta@chromium.org>
> Reviewed-by: Stephen Martinis <martiniss@chromium.org>
> Reviewed-by: Brian Sheedy <bsheedy@chromium.org>
> Reviewed-by: Erik Staab <estaab@chromium.org>
> Reviewed-by: Yuly Novikov <ynovikov@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#784653}

TBR=thakis@chromium.org,ynovikov@chromium.org,dpranke@google.com,kbr@chromium.org,nodir@chromium.org,estaab@chromium.org,martiniss@chromium.org,tikuta@chromium.org,bsheedy@chromium.org,bpastene@chromium.org

Change-Id: Ic2277fd08f14119b500917f532f37a2fa46fa3b5
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: 816629
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2275456
Reviewed-by: Guido Urdaneta <guidou@chromium.org>
Commit-Queue: Guido Urdaneta <guidou@chromium.org>
Cr-Commit-Position: refs/heads/master@{#784739}
2020-07-02 08:44:30 +00:00