0
Commit Graph

3164 Commits

Author SHA1 Message Date
80140888ce mac: Update mac_arm64 docs a bit
- Building on an arm mac now works well, and is covered by a main
  waterfall bot (the main waterfall bot even works without rosetta)
- All tests should pass by now without rosetta
  - Except for web tests on macOS 12+, but that's true on Intel as well.
    A fix for that is in review.

Bug: 1103236,1103275,1234503,1190885
Change-Id: I0ef174f4baffbd5499f43c12524f28f85f9ba8fc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3368225
Reviewed-by: Mark Mentovai <mark@chromium.org>
Commit-Queue: Nico Weber <thakis@chromium.org>
Auto-Submit: Nico Weber <thakis@chromium.org>
Cr-Commit-Position: refs/heads/main@{#955825}
2022-01-05 19:24:55 +00:00
91b533621b Rename arg name --time-out-ms for rwt
Change this to --timeout-ms to align with other parameter names,
e.g. --exit-after-n-crashes-or-timeouts, --skip-timeouts,
--initialize-webgpu-adapter-at-startup-timeout-ms.

Bug: 1095123
Change-Id: I039c342249c7392ffdb850eebbbf63a51fe7cd8a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3366217
Reviewed-by: Dirk Pranke <dpranke@google.com>
Reviewed-by: Xianzhu Wang <wangxianzhu@chromium.org>
Commit-Queue: Weizhong Xia <weizhong@google.com>
Cr-Commit-Position: refs/heads/main@{#955755}
2022-01-05 17:13:35 +00:00
fdc88ec7fb Update documentation to preview doc changes
gerrit has changed and the link is found in a different position now.

Bug: None
Test: Manually verified links
Change-Id: I77984d4d7e750908171224707562877c46b4cf15
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3362532
Reviewed-by: Peter Kasting <pkasting@chromium.org>
Commit-Queue: Roland Bock <rbock@google.com>
Cr-Commit-Position: refs/heads/main@{#955618}
2022-01-05 08:32:54 +00:00
9651739929 Update web_tests.md and AUTHORS
Update web_tests.md to fix some problems in Test Harness Options section
- Remove --renderer-startup-dialog option description from the table
because run_web_tests.py seems to no longer have
--renderer-startup-dialog option.
- Let the Meaning of --reset-results display correctly. Vertical bar
in the inline code block inside the table isn't displayed correctly. Let
it out from the inline code block and use HTML character code instead.


Update AUTHORS
- Add a new individual contributor Takahiro because this is his first
patch

Change-Id: Ie374a0a77e27fabf1d7b522845fcf0d9407ddd63
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3357156
Reviewed-by: Takashi Toyoshima <toyoshim@chromium.org>
Commit-Queue: Takashi Toyoshima <toyoshim@chromium.org>
Cr-Commit-Position: refs/heads/main@{#955567}
2022-01-05 05:19:44 +00:00
589dd244b2 [rust] Configure Rust FYI bots to run native Rust unit tests.
Manual testing to verify that the changes show up as expected on
linux-rust-x64-rel (this bot is not part of CQ):

1. Introducing artificial test failures in https://crrev.com/c/3322199/7
   and checking that such failures are caught in
   https://ci.chromium.org/ui/p/chromium/builders/try/linux-rust-x64-rel/221/overview

2. Verifying that everything is green without product or test changes (i.e. at
   https://crrev.com/c/3322199/10).  "everything" means CQ and 2 Rust
   bots: linux-rust-x64-rel and android-rust-arm-rel:
   https://ci.chromium.org/ui/p/chromium/builders/try/android-rust-arm-rel/233/overview
   https://ci.chromium.org/ui/p/chromium/builders/try/linux-rust-x64-rel/238/overview

Bug: 1260120
Change-Id: Ic2a2f33019d21df9ad59d1d6cba0056f90eb7a00
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3322199
Reviewed-by: Brian Sheedy <bsheedy@chromium.org>
Commit-Queue: Łukasz Anforowicz <lukasza@chromium.org>
Cr-Commit-Position: refs/heads/main@{#955522}
2022-01-05 02:16:25 +00:00
e5afe42b31 Move inactive GPU testers to separate console
Moves inactive GPU experimental testers to the new
chromium.gpu.experimental console. This console is intended to be used
for parking inactive GPU experimental testers until they are needed
again in order to declutter the chromium.gpu.fyi console.

These testers have already been paused.

Bug: 1280441
Change-Id: If035c502b40a88c3dd54da5dd6236c6e88dcfb57
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3345549
Reviewed-by: Yuly Novikov <ynovikov@chromium.org>
Commit-Queue: Brian Sheedy <bsheedy@chromium.org>
Cr-Commit-Position: refs/heads/main@{#955514}
2022-01-05 02:03:09 +00:00
72246b324f Clean up GlobalVaapiLock enablement
Follow-up CL to crrev/c/3339096 for some post-submission comments.

Bug: b:182008564
Change-Id: I3157b08305bebb6ecb05115ec94e9c555c52699b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3365989
Reviewed-by: Andres Calderon Jaramillo <andrescj@chromium.org>
Commit-Queue: Andres Calderon Jaramillo <andrescj@chromium.org>
Cr-Commit-Position: refs/heads/main@{#955487}
2022-01-05 01:05:06 +00:00
9cebf383e3 docs: Add a doc describing ResultDB integration on Chromium bots.
This summarizes the state of how test results are fetched and used on
chromium bots after the work done in crbug.com/1135718.

This doc should also provide pointers/advice for folks introducing a
new test type or test harness to Chromium.

Bug: 1135718
Change-Id: Ia39a3a4101c71bb8591f7875cb812ef56b53a823
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3293843
Reviewed-by: Chan Li <chanli@chromium.org>
Reviewed-by: Erik Staab <estaab@chromium.org>
Commit-Queue: Ben Pastene <bpastene@chromium.org>
Cr-Commit-Position: refs/heads/main@{#955439}
2022-01-04 23:44:45 +00:00
6269edbb8e Add documentation and a unit test for barrier callback
Add unit test to ensure that copies of a barrier callback share state.
While this is already used in multiple use cases, it was not obvious
to me.

Add basic documentation with a usage example.

Bug: 1283847
Test: New unit test
Change-Id: I84c8f61777108eed60ec8781df11de84a507359a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3361846
Reviewed-by: danakj chromium <danakj@chromium.org>
Commit-Queue: Roland Bock <rbock@google.com>
Cr-Commit-Position: refs/heads/main@{#955284}
2022-01-04 19:34:15 +00:00
f90bbdd342 Add worker-specific and navigation-associated interface info
This adds info about how to use the worker-specific
BrowserInterfaceBinders, how to use the RenderProcessHostImpl
BrowserInterfaceBinder, and also discusses
navigation-associated interfaces.

Bug: None
Change-Id: Iea614f8353be5ed0a5eca7283344e9c26b8b9fe4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3359121
Reviewed-by: Oksana Zhuravlova <oksamyt@chromium.org>
Commit-Queue: Andrew Williams <awillia@google.com>
Cr-Commit-Position: refs/heads/main@{#954485}
2021-12-29 19:19:57 +00:00
ae2b652244 Publish go/safe-browsing-navigation under docs/ for more visibility.
Forked from go/safe-browsing-navigation with some internal links
replaced.

Preview: https://chromium.googlesource.com/chromium/src/+/refs/
changes/67/3271767/6/docs/security/safe_browsing/
safe_browsing_navigation.md

Change-Id: I105d7e1bf0e2076c3b177c30f6cc79a622f42043
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3271767
Reviewed-by: Rohit Bhatia <bhatiarohit@google.com>
Reviewed-by: Varun Khaneja <vakh@chromium.org>
Commit-Queue: Xinghui Lu <xinghuilu@chromium.org>
Cr-Commit-Position: refs/heads/main@{#954382}
2021-12-29 01:49:36 +00:00
b6854ba544 Add the necessary commands to docs/mac_build_instructions.md
If don't run `autoninja -C out/Default unit_tests`, you will get the following error:
```zsh
$ out/Default/unit_tests --gtest_filter="PushClientTest.*"

```

zsh: no such file or directory: out/Default/unit_tests
Change-Id: Id390ee9a7e78624e4eba8d91199670645a484bf6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3351802
Reviewed-by: Takashi Toyoshima <toyoshim@chromium.org>
Commit-Queue: Takashi Toyoshima <toyoshim@chromium.org>
Cr-Commit-Position: refs/heads/main@{#954000}
2021-12-24 06:02:43 +00:00
98b74eb966 pgo docs: Document what to do on GCS access issues
Change-Id: I56ca7921ce5555034d7a01e0063d30ffa9da90bc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3355018
Commit-Queue: Nico Weber <thakis@chromium.org>
Auto-Submit: Nico Weber <thakis@chromium.org>
Reviewed-by: Sébastien Marchand <sebmarchand@chromium.org>
Commit-Queue: Sébastien Marchand <sebmarchand@chromium.org>
Cr-Commit-Position: refs/heads/main@{#953858}
2021-12-23 16:14:12 +00:00
e124deade4 Allow the GlobalVaapiLock switch to be enabled in perf tests.
Enable the state of the GlobalVaapiLock switch to be manually set. This
flag will be used in a follow-up for corresponding tast tests.

Tested: Ran binaries on Volteer DUT.
Bug: b:182008564
Change-Id: I5a3922946b6aa4a6aaebb58d3ad0307b869fc2c4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3339096
Reviewed-by: Andres Calderon Jaramillo <andrescj@chromium.org>
Commit-Queue: Jeff Chen <jeffcchen@chromium.org>
Cr-Commit-Position: refs/heads/main@{#953661}
2021-12-22 22:13:41 +00:00
b06f846df9 Update doc for android emulator.
Include:
 * Update the list of the available AVD configs.
 * Update the options for `avd.py start`

Change-Id: I88e3a5df36639440797f5ede17dc6d63260a9f59
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3351031
Reviewed-by: Peter Wen <wnwen@chromium.org>
Commit-Queue: Haiyang Pan <hypan@google.com>
Cr-Commit-Position: refs/heads/main@{#953248}
2021-12-21 17:41:55 +00:00
8057e1b619 Add reference to figure in chromeos how a11y works
R=josiahk@google.com

Bug: none
Test: none
Change-Id: I6a0454e0ac325dbca3a5b273993d31b7807c4420
AX-Relnotes: n/a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3352304
Reviewed-by: Josiah Krutz <josiahk@google.com>
Commit-Queue: David Tseng <dtseng@chromium.org>
Cr-Commit-Position: refs/heads/main@{#953237}
2021-12-21 16:39:30 +00:00
6f7d6fa0ec build: Relanding Rudimentary support for Visual Studio 2022.
This CL patches vs_toolchain.py to handle an installed version of
Visual Studio 2022. This is a necessary first step towards supporting
VS2022, but it's not sufficient. There are no guarantees that the
MSVC143 toolchain produces acceptable results.

Visual Studio 2022 is the first 64-bit edition, so it is installed in
C:\Program Files\, not C:\Program Files (x86)\. Handling both VS2022 and
older versions introduces a bit of extra complexity in the path
detection code. We'll be able to remove this complexity when we remove
support for VS2019 and below.

This was originally landed as crrev.com/c/3316095 but that change broke
arm64 builds because this change inadvertently changed the toolset
version for prepackaged toolchains which arm64 use to find the UCRT.

Tested: Full build with Visual Studio 2022 Professional retail, gn gen
of x64 and arm64 with packaged toolchain.

Bug: 1277518
Change-Id: Ic942ba82a71799bbe14dc64e4e640d9d36e62b22
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3351095
Reviewed-by: Victor Costan <pwnall@chromium.org>
Reviewed-by: Peter Wen <wnwen@chromium.org>
Commit-Queue: Bruce Dawson <brucedawson@chromium.org>
Cr-Commit-Position: refs/heads/main@{#953228}
2021-12-21 16:19:32 +00:00
30500c5d56 [rust] Add rust_unit_tests_group(...) gni template.
This CL adds a `rust_unit_tests_group(...)` gni template that can
generate a Chromium-bot-friendly script that can run _all_ Rust unit
tests inside the transitive `deps` of the group.

Manual testing:

1. Checking that the tests can be run locally:
    $ ninja -C out/rust build/rust/tests
    $ out/rust/bin/run_native_rust_unittests__from__build_rust_tests
    ... the tests execute successfully ...

2. Checking that the tests can be run on the bots in a follow-up CL:
   https://crrev.com/c/3322199/6

3. Checking that the runtime_deps are reasonable:
    $ gn clean out/rust
    $ gn desc out/rust \
        build/rust/tests:native_rust_unittests__from__build_rust_tests \
        runtime_deps
    bin/run_native_rust_unittests__from__build_rust_tests
    ../../testing/scripts/rust/main_program.py
    ../../testing/scripts/rust/test_filtering.py
    ../../testing/scripts/rust/test_results.py
    ../../testing/scripts/rust/exe_util.py
    ../../testing/scripts/rust/rust_main_program.py
    bin/run_test_mixed_component_rs_unittests
    ./test_mixed_component_rs_unittests
    bin/run_test_mixed_source_set_rs_unittests
    ./test_mixed_source_set_rs_unittests
    bin/run_test_rust_source_set_unittests
    ./test_rust_source_set_unittests
    bin/run_foo_tests
    ./foo_tests
    bin/run_test_rust_unittests
    ./test_rust_unittests
    bin/run_test_variable_source_set_rs_unittests
    ./test_variable_source_set_rs_unittests

Bug: 1260120
Change-Id: I19a15581ced0da85c6ec50a95016f2a547a43600
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3327603
Reviewed-by: Adrian Taylor <adetaylor@google.com>
Commit-Queue: Łukasz Anforowicz <lukasza@chromium.org>
Cr-Commit-Position: refs/heads/main@{#953019}
2021-12-20 20:59:05 +00:00
6d0183a6d2 Update a11y overview doc
Remove statement that Linux accessibility is incomplete.
Link to instructions on using ax_dump_tree tools.

Bug: None
Change-Id: I92743a63fcb367cf18b6501b2c69541a65c5940d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3335256
Reviewed-by: Nektarios Paisios <nektar@chromium.org>
Auto-Submit: Aaron Leventhal <aleventhal@chromium.org>
Commit-Queue: Aaron Leventhal <aleventhal@chromium.org>
Cr-Commit-Position: refs/heads/main@{#952993}
2021-12-20 19:59:40 +00:00
0a255c58fc Update per-project snippets documentation for Vscode
The documentation for per-project snippets in Vscode is out of date.
The extension introduced (https://github.com/rebornix/vscode-project-snippet)
has been duplicated and is now supported by default in Vscode,
so the documentation needs to be updated.
See here for more information: https://code.visualstudio.com/docs/editor/userdefinedsnippets#_project-snippet-scope

Change-Id: Idfbbbc857df1f956d71a9d646d2e36c7b19d2ec2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3348802
Reviewed-by: Takashi Toyoshima <toyoshim@chromium.org>
Commit-Queue: Takashi Toyoshima <toyoshim@chromium.org>
Cr-Commit-Position: refs/heads/main@{#952843}
2021-12-20 05:35:26 +00:00
476c5886df Package the clang libs and headers for building clang tools
This is behind the gclient option "checkout_clang_libs"

When enabled:
- Header files from llvm/clang/include/clang appear at
  third_party/llvm-build/Release+Asserts/include/clang/
- Static libclang* libraries that were built at
  llvm-build/Release+Asserts/lib will appear at the same
  location under third_party/llvm-build.

The libraries themselves are meant only for the host
machine, so they don't need to be separated by target
tuples, just like libstdc++.so.6 does not.

R=thakis@chromium.org

Bug: 1272780
Change-Id: Iac2cd40b6c05c63c4913c20ce64aa5d7831fdb6b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3342694
Commit-Queue: danakj chromium <danakj@chromium.org>
Reviewed-by: Nico Weber <thakis@chromium.org>
Cr-Commit-Position: refs/heads/main@{#952348}
2021-12-16 14:33:56 +00:00
90127d9ceb wpt docs: use vpython to run tests
This was switched to vpython3 because run_web_tests.py
specifies vpython3.

It turns out the other scripts specify vpython and
while vpython3 almost works, it fails with some other
messages such as (for run_blink_wptserve.py):
ALPN negotiated protocol h3
Connection close sent (code 0x0, reason )
<repeatedly>

Bug: crbug.com/1280472
Change-Id: Id455ea0f2fea860f76a4b0e17de9490634779c40
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3344086
Auto-Submit: Johann Koenig <johannkoenig@google.com>
Reviewed-by: Kent Tamura <tkent@chromium.org>
Commit-Queue: Kent Tamura <tkent@chromium.org>
Cr-Commit-Position: refs/heads/main@{#952206}
2021-12-16 02:07:35 +00:00
5936c69346 Update GPU documentation
Updates the GPU documentation about testing a new configuration to
include information on the new pause/hide behavior we will be using for
experimental builders.

Bug: 1280441
Change-Id: Iaf7ebb0f5d511ec7f05c70c9ebd51576680d835d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3343386
Auto-Submit: Brian Sheedy <bsheedy@chromium.org>
Reviewed-by: Yuly Novikov <ynovikov@chromium.org>
Commit-Queue: Brian Sheedy <bsheedy@chromium.org>
Cr-Commit-Position: refs/heads/main@{#952151}
2021-12-15 23:41:38 +00:00
fd6fb40b16 fix x11_window.cc ref in input events docs
Bug: None
Change-Id: I830c4bf2e947e002b50565306effb66c9b02bac3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3340527
Auto-Submit: Nick Yamane <nickdiego@igalia.com>
Reviewed-by: Scott Violet <sky@chromium.org>
Commit-Queue: Scott Violet <sky@chromium.org>
Cr-Commit-Position: refs/heads/main@{#952000}
2021-12-15 17:56:40 +00:00
857a78c5b6 wpt docs: use vpython3 to run tests
vpython3 is specified in run_web_tests.py

using python or python3 leads to errors such as:

or

ImportError: No module named requests
ModuleNotFoundError: No module named 'aioquic'
Change-Id: I53660e5222020d9266c0ff3ac088e1ff99ad7e27
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3341132
Auto-Submit: Johann Koenig <johannkoenig@google.com>
Reviewed-by: Kent Tamura <tkent@chromium.org>
Commit-Queue: Kent Tamura <tkent@chromium.org>
Cr-Commit-Position: refs/heads/main@{#951859}
2021-12-15 08:32:21 +00:00
e3b7b99656 [rust] Rust toolchain docs: Add a section about source code format.
Bug: 1231317
Change-Id: Ia72edbee76b307e268d75c787dd34914446f25c6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3331047
Reviewed-by: Adrian Taylor <adetaylor@chromium.org>
Commit-Queue: Łukasz Anforowicz <lukasza@chromium.org>
Cr-Commit-Position: refs/heads/main@{#951323}
2021-12-14 02:26:57 +00:00
08adb302f9 Update Cq-Include-Trybots documentation.
* replace the term "master" with "bucket" which appears to be the
  correct term (although this is specifically the v1 bucket syntax,
  which probably doesn't need to be mentioned here)

* use an example that is valid today

* point out that Gerrit can produce the syntax for you

Change-Id: I2f1a8e1bf3a0d57eb99d4fc5c457cd98c60677aa
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3334705
Reviewed-by: Nico Weber <thakis@chromium.org>
Commit-Queue: David Baron <dbaron@chromium.org>
Cr-Commit-Position: refs/heads/main@{#951013}
2021-12-13 14:23:43 +00:00
b81e936243 [rust] generate out/.../bin/run_foo script from rust_unit_test("foo").
This CL tweaks GN templates so that `rust_unit_test(foo)` will not only
generate a `out/dir/foo` executable with unit tests from "foo" crate,
but also generate a `out/dir/bin/run_foo` Bash script that can be used
to run the tests in a //docs/testing/test_executable_api.md-compatible
way.

Exactly 1 generated run_foo script is generated per 1
rust_unit_test("foo") build target.  In the future, additional gni magic
may be provided for generating a script that covers multiple crates
(e.g. multiple Rust unit test executables).  To ensure that the test
names are stable going forward, this CL preemptively tweaks
//testing/scripts/rust to encode the name of a test executable in test
names.

Manual testing:

1. $ ninja -C out/rust build/rust/tests/test_rust_unittests
   $ out/rust/bin/run_test_rust_unittests

2. Checking that a follow-up CL can successfully execute Rust unit tests
   on a bot: https://crrev.com/c/3322199/3

Bug: 1260120
Change-Id: I2c963c12c343ff90a7d5132ee8b7136d24a79685
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3268794
Reviewed-by: Adrian Taylor <adetaylor@chromium.org>
Reviewed-by: Robert Sesek <rsesek@chromium.org>
Commit-Queue: Łukasz Anforowicz <lukasza@chromium.org>
Cr-Commit-Position: refs/heads/main@{#950547}
2021-12-10 15:28:24 +00:00
bb94e0f01e [Fuchsia] Generate <test_target_name> Wrapper in Output Directory
Allow fuchsia_test_runner template to create an executable wrapper with
same name as test target itself.

When building a test target, in addition to the test component
<test_target_name>_component, three wrapper scripts are created:
1. deploy_<test_target_name>, for deploying the Fuchsia package onto a
   device
2. run_<test_target_name>, for running the Fuchsia package on the device
3. <test_target_name>, for running the Fuchsia package on the device
The first two executables will be found in ${OUTPUT_DIR}/bin whereas
%package% will be found directly in the output directory.

This change also allows ninja to identify which test target to build
in the case of duplicate target names (e.g. unit_tests) since ninja
prioritizes executable targets.

Bug: 1268956
Change-Id: I582ab0d22a1b19b0e8df1bb96e0c8d207b021a2c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3296401
Auto-Submit: Chong Gu <chonggu@google.com>
Reviewed-by: David Dorwin <ddorwin@chromium.org>
Commit-Queue: Chong Gu <chonggu@google.com>
Cr-Commit-Position: refs/heads/main@{#950169}
2021-12-09 18:16:49 +00:00
638e2ee065 Update web_platform_tests, web_tests, writing_web_tests.
Although web platform tests are different from web tests, the document
does not clearly mentions they are different.  I misunderstood
web test as web platform tests.  I have updated web_tests and
writing_web_tests to clarify they are different.

Also, I have added the way to debug WPTs in writing_web_tests.
This is something like my brain dump of what I have learned and used
recently.  That includes the way to run test one by one, logging,
and the way to see HTTP headers for WPTs.

Change-Id: I1673e15b2c8ec7f8b17665aeb87b16d81de0d62a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3319983
Reviewed-by: Kouhei Ueno <kouhei@chromium.org>
Reviewed-by: Takashi Toyoshima <toyoshim@chromium.org>
Commit-Queue: Yoshisato Yanagisawa <yyanagisawa@chromium.org>
Cr-Commit-Position: refs/heads/main@{#949943}
2021-12-09 05:52:08 +00:00
e224c2af3f Updater: Alter mac installer API.
This fixes a few bugs:
1 - Insertion of the version into the command line.
2 - Surprising reordering of server args with positional args.
3 - Missing keystone_postinstall and preinstall scripts.
4 - EC path not being appended as an arg if there are no server args.

I also added some additional logging and env variables.

I also simplified the mac install script to
1 - Not depend on positional args.
2 - Depend on the server to pass --system or not.

Fixed: 1278019, 1056818
Change-Id: Ieef13db89b33556fc5a8927c01eff617960d1d23
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3323681
Reviewed-by: Sorin Jianu <sorin@chromium.org>
Auto-Submit: Joshua Pawlicki <waffles@chromium.org>
Commit-Queue: Joshua Pawlicki <waffles@chromium.org>
Cr-Commit-Position: refs/heads/main@{#949776}
2021-12-08 23:02:22 +00:00
cdb01f6837 Revert "build: Rudimentary support for Visual Studio 2022."
This reverts commit 616dd4d5bd.

Reason for revert: Changes to IDL fail because this change broke
ARM64 builds, see https://crbug.com/1277518

Original change's description:
> build: Rudimentary support for Visual Studio 2022.
>
> This CL patches vs_toolchain.py to handle an installed version of
> Visual Studio 2022. This is a necessary first step towards supporting
> VS2022, but it's not sufficient. There are no guarantees that the
> MSVC143 toolchain produces acceptable results.
>
> Visual Studio 2022 is the first 64-bit edition, so it is installed in
> C:\Program Files\, not C:\Program Files (x86)\. Handling both VS2022 and
> older versions introduces a bit of extra complexity in the path
> detection code. We'll be able to remove this complexity when we remove
> support for VS2019 and below.
>
> Tested: Full build with Visual Studio 2022 Professional retail.
> Change-Id: Ib439343e773cf422c0f78cd960f3456fe35e1991
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3316095
> Reviewed-by: Bruce Dawson <brucedawson@chromium.org>
> Commit-Queue: Victor Costan <pwnall@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#948668}

Bug: 1277518
Change-Id: I8248b66348b7238a05964e6f9cba494c1984605e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3322197
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Commit-Queue: Bruce Dawson <brucedawson@chromium.org>
Cr-Commit-Position: refs/heads/main@{#949324}
2021-12-08 02:13:16 +00:00
b105afbfb2 Android: Add --wipe-data arg for avd.py
Also add docs on when and how to use it.

Add extra example snippet for `--debug-tags` to make using it easier.

Bug: 1116196
Fixed: 1116196
Change-Id: I166a4c8d1edd2a81d9d793675c5a7d249f3f1b93
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3320472
Reviewed-by: Haiyang Pan <hypan@google.com>
Commit-Queue: Peter Wen <wnwen@chromium.org>
Auto-Submit: Peter Wen <wnwen@chromium.org>
Cr-Commit-Position: refs/heads/main@{#949121}
2021-12-07 20:24:36 +00:00
7dba881892 Add AC/LPAC documentation for Windows sandbox.
BUG=841001

Change-Id: I3ce92f4eedfd499726c1475ac2809e9295971744
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3319418
Reviewed-by: James Forshaw <forshaw@chromium.org>
Commit-Queue: Will Harris <wfh@chromium.org>
Cr-Commit-Position: refs/heads/main@{#949005}
2021-12-07 16:13:07 +00:00
bb4741de0d Add missing report-only metrics for COOP/COEP.
[COOP]
- kCrossOriginEmbedderPolicyCredentiallessReportOnly
- kCrossOriginEmbedderPolicyRequireCorpReportOnly

[COOP]
- kCoopAndCoepIsolatedReportOnly
- kCrossOriginOpenerPolicySameOriginAllowPopupsReportOnly
- kCrossOriginOpenerPolicySameOriginReportOnly

Change-Id: I4eca4d7256df8b97c7a3c1c480561930334bab56
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3314899
Commit-Queue: Arthur Sonzogni <arthursonzogni@chromium.org>
Reviewed-by: Mike West <mkwst@chromium.org>
Cr-Commit-Position: refs/heads/main@{#948917}
2021-12-07 11:02:15 +00:00
616dd4d5bd build: Rudimentary support for Visual Studio 2022.
This CL patches vs_toolchain.py to handle an installed version of
Visual Studio 2022. This is a necessary first step towards supporting
VS2022, but it's not sufficient. There are no guarantees that the
MSVC143 toolchain produces acceptable results.

Visual Studio 2022 is the first 64-bit edition, so it is installed in
C:\Program Files\, not C:\Program Files (x86)\. Handling both VS2022 and
older versions introduces a bit of extra complexity in the path
detection code. We'll be able to remove this complexity when we remove
support for VS2019 and below.

Tested: Full build with Visual Studio 2022 Professional retail.
Change-Id: Ib439343e773cf422c0f78cd960f3456fe35e1991
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3316095
Reviewed-by: Bruce Dawson <brucedawson@chromium.org>
Commit-Queue: Victor Costan <pwnall@chromium.org>
Cr-Commit-Position: refs/heads/main@{#948668}
2021-12-06 21:03:11 +00:00
a4961554f2 Updater: Add scope to mac installer API.
Hopefully only the updater itself needs it.

Bug: 1268555
Change-Id: I85efca74b0f62769c2a719b63fcd17dcd29bd6de
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3317916
Commit-Queue: Joshua Pawlicki <waffles@chromium.org>
Reviewed-by: Sorin Jianu <sorin@chromium.org>
Cr-Commit-Position: refs/heads/main@{#948611}
2021-12-06 19:11:22 +00:00
4e51570f9b Fix typo in swarming documentation.
BUG=None

Change-Id: Ib1a08fcf6e3cfb0dd28455e39e42daa7d3d4507a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3315640
Reviewed-by: Robert Sesek <rsesek@chromium.org>
Commit-Queue: Will Harris <wfh@chromium.org>
Cr-Commit-Position: refs/heads/main@{#948216}
2021-12-03 23:08:17 +00:00
c5472febff Point to Android NDK for ASAN libs
The llvm-build libs are newer than the NDK libs and prevented Android
UI from starting up. NDK libs seem to work just fine.

Bug: 947742
Change-Id: Icd72ba27665e5dcc30e3af5b2e853b5166dbe38a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3315039
Auto-Submit: Jonathan Backer <backer@chromium.org>
Commit-Queue: Evgenii Stepanov <eugenis@chromium.org>
Reviewed-by: Evgenii Stepanov <eugenis@chromium.org>
Cr-Commit-Position: refs/heads/main@{#948190}
2021-12-03 22:15:35 +00:00
ee180278e5 Update docs/clang.md
This CL updates commands listed in the docs/clang.md file to match
what's currently needed.

Bug: 1275317
Change-Id: I3fe39171d42086b1e44fb914e6f4d316b8517f57
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3311508
Reviewed-by: danakj chromium <danakj@chromium.org>
Commit-Queue: Will Cassella <cassew@chromium.org>
Cr-Commit-Position: refs/heads/main@{#948065}
2021-12-03 18:16:21 +00:00
70ad2c9f89 [Fuchsia] Add doc about Fuchsia platform versioning
Fixed: 1271396
Change-Id: I1ac7b87fb3771c2578cbfb8206d1fa4bb35d1eb3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3298888
Auto-Submit: Chong Gu <chonggu@google.com>
Commit-Queue: Chong Gu <chonggu@google.com>
Reviewed-by: David Dorwin <ddorwin@chromium.org>
Cr-Commit-Position: refs/heads/main@{#947783}
2021-12-03 00:55:44 +00:00
12e42df2c1 Add more explanation for Bot-Commit label.
Bug: 1269449
Change-Id: Ifb8e3b2ee428eae4444cb28cb413255146adc626
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3313542
Reviewed-by: Nicolás Peña Moreno <npm@chromium.org>
Commit-Queue: Nicolás Peña Moreno <npm@chromium.org>
Cr-Commit-Position: refs/heads/main@{#947651}
2021-12-02 21:51:10 +00:00
0495be557b FIDO now has a code of conduct.
Change-Id: I5f3b96c43d8e825acafd4a796fe0ec7e323c3340
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3309659
Auto-Submit: Jeffrey Yasskin <jyasskin@chromium.org>
Reviewed-by: Nina Satragno <nsatragno@chromium.org>
Commit-Queue: Nina Satragno <nsatragno@chromium.org>
Cr-Commit-Position: refs/heads/main@{#947584}
2021-12-02 18:43:18 +00:00
e7d9f95105 [AdTagging] Link filter lists in readme
Change-Id: I37844a17016f490c3e96afdffe1bf9c0c529b1b3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3265494
Reviewed-by: Josh Karlin <jkarlin@chromium.org>
Commit-Queue: John Delaney <johnidel@chromium.org>
Cr-Commit-Position: refs/heads/main@{#947062}
2021-12-01 17:07:04 +00:00
b841584fe0 Remove linux_layout_tests_composite_after_paint try bot
We have enabled composite-after-paint for all tests, so no longer need
the bot.

Bug: 471333
Change-Id: I9fdd887f6d814fd718696d0504a8b4dd22632faf
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3307159
Reviewed-by: Erik Staab <estaab@chromium.org>
Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org>
Cr-Commit-Position: refs/heads/main@{#946833}
2021-12-01 02:33:55 +00:00
f7bad51b91 docs: update python3_migration.md
Bug: 941669
Change-Id: Ib66338a54bd3341550a4108426073fb4379649ee
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3307161
Reviewed-by: Nico Weber <thakis@chromium.org>
Reviewed-by: Dirk Pranke <dpranke@google.com>
Commit-Queue: Nico Weber <thakis@chromium.org>
Auto-Submit: Takuto Ikuta <tikuta@chromium.org>
Cr-Commit-Position: refs/heads/main@{#946763}
2021-11-30 23:54:23 +00:00
a63952d5b4 [rust] Help IDEs find Rust stdlibs.
gn can inform IDEs such VSCode to find Rust code. With this change,
IDEs are successfully informed of the location of the Rust standard
library.

This is a breaking change for gn args, in the case that you're using
an external Rust toolchain. Previously you needed to specify
rust_bin_dir; now you need to specify rust_sysroot_absolute, pointing
to the parent directory of whatever you previously specified.
It also removes the redundant 'use_unverified_rust_toolchain' Boolean
argument.

The DEPS change here is to absorb a revised CIPD package of the Rust
toolchain which has slightly different source code layout.

Bug: 1269992
Change-Id: Ieae64344f4f7589f75a53ad2d4e83d4a12b6305a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3280458
Reviewed-by: Nico Weber <thakis@chromium.org>
Reviewed-by: Robert Sesek <rsesek@chromium.org>
Commit-Queue: Adrian Taylor <adetaylor@chromium.org>
Cr-Commit-Position: refs/heads/main@{#946561}
2021-11-30 18:49:22 +00:00
6a992f3ce4 Mention clang_tool_refactoring.md in clang.md
It took me a bit to find this doc just now, so add it to the list of
related documents.

Change-Id: I6606b7c4c1cd85b445969fed4d23f4d431c38579
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3307484
Auto-Submit: Nico Weber <thakis@chromium.org>
Reviewed-by: Collin Baker <collinbaker@chromium.org>
Commit-Queue: Collin Baker <collinbaker@chromium.org>
Cr-Commit-Position: refs/heads/main@{#946528}
2021-11-30 17:48:26 +00:00
afd3c658f9 Create initial NavigationEntry on FrameTree initialization
Introduces the initial NavigationEntry, created on FrameTree
initialization, which is not associated with any navigation. It will
be replaced or lose its initial-ness when the first navigation in the
main frame committed. With the initial NavigationEntry, we can always
guarantee that a NavigationEntry always exists, even when no navigation
has committed. This has many benefits, as outlined in the doc:
https://docs.google.com/document/d/1H81oAG13f21fUf-IGHH8AnjNVJFtaThowl5Ki9hWw5E/edit#heading=h.sbcge7snrbj3

This CL introduces a few changes of behavior:
- After initialization, a FrameTree/NavigationController will always
  have a NavigationEntry. This will be reflected in content/public
  functions such as GetLastCommittedEntry(), GetVisibleEntry(),
  GetActiveEntry(), GetEntryCount(), GetLastCommittedEntryIndex(),
  GetCurrentEntryIndex()
- Navigations that are previously ignored because there is no committed
  entry to attach to or clone are now no longer ignored, except for the
  synchronous about:blank commit for window.open().

What this CL does not change:
- This CL does not change the behavior of any navigation that wasn't
  previously ignored, including initial empty document replacements.
- Web-platform-exposed behaviors, including history.length which will
  still start at 0 instead of 1 on a tab that hasn't navigated at all.
- Behavior of WebView APIs. WebBackForwardList, which exposes the
  whole session history list, remove initial NavigationEntry.
  getOriginalURL() will continue to return null when there's no
  committed navigation.
- Similarly, behavior of WebLayer APIs will not change. The values
  returned by APIs such as GetNavigationListCurrentIndex() and
  GetNavigationListSize() will continue to be what they were before (-1
  and 0 respectively) even when the initial NavigationEntry exists,
  preserving their previous behaviors.

This CL corresponds to Step 1 of the implementation plan in this doc:
https://docs.google.com/document/d/1H81oAG13f21fUf-IGHH8AnjNVJFtaThowl5Ki9hWw5E/edit#heading=h.8n643ug2wk11

This CL also applies all the changes detailed in the audit doc, except
for most of the "remove nullcheck" changes:
https://docs.google.com/spreadsheets/d/1MJyLNd6T5b7QWCO-qsSdnzmyLhubCddns1Uu9X8mEIk/edit#gid=0

Bug: 524208, 1215096
Change-Id: I9dbc17feeb451ae32954a8544cc32bb39ec37150
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3237491
Reviewed-by: Charlie Reis <creis@chromium.org>
Reviewed-by: Michael Thiessen <mthiesse@chromium.org>
Reviewed-by: David Roger <droger@chromium.org>
Reviewed-by: Nate Chapin <japhet@chromium.org>
Reviewed-by: Clark DuVall <cduvall@chromium.org>
Reviewed-by: Devlin Cronin <rdevlin.cronin@chromium.org>
Reviewed-by: Richard Coles <torne@chromium.org>
Reviewed-by: Kevin Marshall <kmarshall@chromium.org>
Reviewed-by: Daniel Rubery <drubery@chromium.org>
Owners-Override: Charlie Reis <creis@chromium.org>
Commit-Queue: Rakina Zata Amni <rakina@chromium.org>
Cr-Commit-Position: refs/heads/main@{#946343}
2021-11-30 06:19:17 +00:00
63e0be72bd Document v8_symbol_level
Most places that mention blink_symbol_level as a possible optimization
should also mention v8_symbol_level. This change does that.

Bug: 1273644
Change-Id: Icdd64e684f61d6deeb983ac88e1eee5b7d6a59dd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3307360
Commit-Queue: Bruce Dawson <brucedawson@chromium.org>
Reviewed-by: Jesse McKenna <jessemckenna@google.com>
Cr-Commit-Position: refs/heads/main@{#946115}
2021-11-29 20:34:41 +00:00