0
Commit Graph

35 Commits

Author SHA1 Message Date
Martin Kong
462f7322e5 Clean up after replacing md5sum with devil_util
Now that we are no longer using md5sum in devil and are instead using
the new devil_util, we can remove all traces of md5sum in chromium

This CL also makes a manual roll of //third_party/catapult, because this
CL is part of a two-sided patch and this CL will be submitted
immediately after
https://chromium-review.googlesource.com/c/catapult/+/6283046.

No-Try: true
Bug: 397452007
Change-Id: I712cb5ba799ec88fb2df7332214896801e865ac2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6309939
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Owners-Override: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: Martin Kong <martinkong@google.com>
Commit-Queue: Martin Kong <martinkong@google.com>
Cr-Commit-Position: refs/heads/main@{#1427416}
2025-03-03 15:11:27 -08:00
Martin Kong
d10fb806d0 Replace md5sum with devil_util
Introduce the devil_util binary to replace the md5sum binary.
In this devil_util binary, we use the crc32 hashing function
instead of md5 for better efficiency. We also use mmap rather than
directly reading the file for better efficiency.

In the future, we will add more functionalities to devil_util,
such as the ability to uncompress the transferred file.

Bug: 397452007
Change-Id: I3cc2c135969578413d2b500b9c2ca8b50978864c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6283025
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: Ben Pastene <bpastene@chromium.org>
Commit-Queue: Martin Kong <martinkong@google.com>
Cr-Commit-Position: refs/heads/main@{#1425736}
2025-02-27 07:27:13 -08:00
Andrew Grieve
cae4f9578a Reland "Android: Use prebuilt devil tools for most scripts"
This reverts commit 64a901a69b.

Reason for reland: Added hasattr check

Original change's description:
> Revert "Android: Use prebuilt devil tools for most scripts"
>
> This reverts commit d832d48946.
>
> Reason for revert: "AttributeError: 'AvdArgs' object has no attribute 'use_local_devil_tools'"
> https://ci.chromium.org/ui/p/chromium/builders/ci/android-nougat-x86-rel/4277/overview
> https://chromium-swarm.appspot.com/task?id=61f77da6f79dd610
>
> Original change's description:
> > Android: Use prebuilt devil tools for most scripts
> >
> > It still uses chromium's copies of prebuilts, but no longer defaults
> > to chromium's copy of tools that need to be built. Namely:
> >   md5sum, forwarder, and dex_commands.jar
> >
> > The reason for using local copies of these is to be able to test
> > changes to them. This coverage is maintained by still using them
> > for non-component builds within gtests & instrumentation tests.
> >
> > The main motivation for this change is to fix a frequently
> > occurring error where component builds of the tools do not get
> > pushed properly to the devices, and then do not work. md5sum also
> > runs faster when built in release mode, so it doesn't make sense
> > to use a slow copy of it when building a debug version of chrome.
> >
> > This is the error output I (and others) see frequently:
> >
> > W    4.817s TimeoutThread-1-for-Install(FA6AK0304925)  Error calculating md5: (device: FA6AK0304925) shell command run via adb failed on the device:
> >   command: a=/data/local/tmp/md5sum/md5sum_bin;! [[ $(ls -l $a) = *14076* ]]&&exit 2;export LD_LIBRARY_PATH=/data/local/tmp/md5sum;$a -gz H4sIADX5rWMC/63RMQ6DMAwF0BORVGxVxcDQqVKrSu2MTGIgIolDEoK4fRFXqAcv1vf7g6WGDBJCkIqcGIlGiwK8jmS0ONZJqCmSw2p+VPh09D7mu93d53Vd2kvbNLKHdFyE+Sb/plKwJncKeoul7mDNE/psFGSKvA1nipckP5hRoGdVNZZuNazkgKhLzUqmNRbcWcnC+/ANews7nugPZnbMzvICAAA=;
> >   exit status: 1
> >   output:
> >   - CANNOT LINK EXECUTABLE "/data/local/tmp/md5sum/md5sum_bin": library "libabsl.cr.so" not found
> >
> > Bug: 1404180
> > Change-Id: Ie93b1a28caca4adfc492726450324ea90b198adf
> > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4491904
> > Commit-Queue: Andrew Grieve <agrieve@chromium.org>
> > Reviewed-by: Ben Pastene <bpastene@chromium.org>
> > Cr-Commit-Position: refs/heads/main@{#1138561}
>
> Bug: 1404180
> Change-Id: I94d2aa0e50328afefe15a3d164432b14dc901a38
> No-Presubmit: true
> No-Tree-Checks: true
> No-Try: true
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4503307
> Auto-Submit: Ben Pastene <bpastene@chromium.org>
> Commit-Queue: Ben Pastene <bpastene@chromium.org>
> Owners-Override: Stephanie Kim <kimstephanie@google.com>
> Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
> Cr-Commit-Position: refs/heads/main@{#1138931}

Include-Ci-Only-Tests: true
Bug: 1404180
Change-Id: Ib2a04d291509c58325a10d22f9d07c56c39023c2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4500324
Auto-Submit: Andrew Grieve <agrieve@chromium.org>
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: Ben Pastene <bpastene@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1139184}
2023-05-03 21:48:46 +00:00
Ben Pastene
64a901a69b Revert "Android: Use prebuilt devil tools for most scripts"
This reverts commit d832d48946.

Reason for revert: "AttributeError: 'AvdArgs' object has no attribute 'use_local_devil_tools'"
https://ci.chromium.org/ui/p/chromium/builders/ci/android-nougat-x86-rel/4277/overview
https://chromium-swarm.appspot.com/task?id=61f77da6f79dd610

Original change's description:
> Android: Use prebuilt devil tools for most scripts
>
> It still uses chromium's copies of prebuilts, but no longer defaults
> to chromium's copy of tools that need to be built. Namely:
>   md5sum, forwarder, and dex_commands.jar
>
> The reason for using local copies of these is to be able to test
> changes to them. This coverage is maintained by still using them
> for non-component builds within gtests & instrumentation tests.
>
> The main motivation for this change is to fix a frequently
> occurring error where component builds of the tools do not get
> pushed properly to the devices, and then do not work. md5sum also
> runs faster when built in release mode, so it doesn't make sense
> to use a slow copy of it when building a debug version of chrome.
>
> This is the error output I (and others) see frequently:
>
> W    4.817s TimeoutThread-1-for-Install(FA6AK0304925)  Error calculating md5: (device: FA6AK0304925) shell command run via adb failed on the device:
>   command: a=/data/local/tmp/md5sum/md5sum_bin;! [[ $(ls -l $a) = *14076* ]]&&exit 2;export LD_LIBRARY_PATH=/data/local/tmp/md5sum;$a -gz H4sIADX5rWMC/63RMQ6DMAwF0BORVGxVxcDQqVKrSu2MTGIgIolDEoK4fRFXqAcv1vf7g6WGDBJCkIqcGIlGiwK8jmS0ONZJqCmSw2p+VPh09D7mu93d53Vd2kvbNLKHdFyE+Sb/plKwJncKeoul7mDNE/psFGSKvA1nipckP5hRoGdVNZZuNazkgKhLzUqmNRbcWcnC+/ANews7nugPZnbMzvICAAA=;
>   exit status: 1
>   output:
>   - CANNOT LINK EXECUTABLE "/data/local/tmp/md5sum/md5sum_bin": library "libabsl.cr.so" not found
>
> Bug: 1404180
> Change-Id: Ie93b1a28caca4adfc492726450324ea90b198adf
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4491904
> Commit-Queue: Andrew Grieve <agrieve@chromium.org>
> Reviewed-by: Ben Pastene <bpastene@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1138561}

Bug: 1404180
Change-Id: I94d2aa0e50328afefe15a3d164432b14dc901a38
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4503307
Auto-Submit: Ben Pastene <bpastene@chromium.org>
Commit-Queue: Ben Pastene <bpastene@chromium.org>
Owners-Override: Stephanie Kim <kimstephanie@google.com>
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Cr-Commit-Position: refs/heads/main@{#1138931}
2023-05-03 16:13:19 +00:00
Andrew Grieve
d832d48946 Android: Use prebuilt devil tools for most scripts
It still uses chromium's copies of prebuilts, but no longer defaults
to chromium's copy of tools that need to be built. Namely:
  md5sum, forwarder, and dex_commands.jar

The reason for using local copies of these is to be able to test
changes to them. This coverage is maintained by still using them
for non-component builds within gtests & instrumentation tests.

The main motivation for this change is to fix a frequently
occurring error where component builds of the tools do not get
pushed properly to the devices, and then do not work. md5sum also
runs faster when built in release mode, so it doesn't make sense
to use a slow copy of it when building a debug version of chrome.

This is the error output I (and others) see frequently:

W    4.817s TimeoutThread-1-for-Install(FA6AK0304925)  Error calculating md5: (device: FA6AK0304925) shell command run via adb failed on the device:
  command: a=/data/local/tmp/md5sum/md5sum_bin;! [[ $(ls -l $a) = *14076* ]]&&exit 2;export LD_LIBRARY_PATH=/data/local/tmp/md5sum;$a -gz H4sIADX5rWMC/63RMQ6DMAwF0BORVGxVxcDQqVKrSu2MTGIgIolDEoK4fRFXqAcv1vf7g6WGDBJCkIqcGIlGiwK8jmS0ONZJqCmSw2p+VPh09D7mu93d53Vd2kvbNLKHdFyE+Sb/plKwJncKeoul7mDNE/psFGSKvA1nipckP5hRoGdVNZZuNazkgKhLzUqmNRbcWcnC+/ANews7nugPZnbMzvICAAA=;
  exit status: 1
  output:
  - CANNOT LINK EXECUTABLE "/data/local/tmp/md5sum/md5sum_bin": library "libabsl.cr.so" not found

Bug: 1404180
Change-Id: Ie93b1a28caca4adfc492726450324ea90b198adf
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4491904
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: Ben Pastene <bpastene@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1138561}
2023-05-02 19:18:48 +00:00
Avi Drissman
73a09d1a67 Update copyright headers in build/, build_overrides/, and buildtools/
The methodology used to generate this CL is documented in
https://crbug.com/1098010#c34.

An earlier version of this CL, https://crrev.com/c/3879808,
was reverted due to an issue that was resolved with
https://crrev.com/c/3881211.

No-Try: true
Bug: 1098010
Change-Id: I91174ff0a9dd8b6dee79e6cba8209b614ce2b712
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3884220
Reviewed-by: Mark Mentovai <mark@chromium.org>
Auto-Submit: Avi Drissman <avi@chromium.org>
Owners-Override: Avi Drissman <avi@chromium.org>
Commit-Queue: Mark Mentovai <mark@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1044745}
2022-09-08 20:33:38 +00:00
Rebekah Potter
184a820046 Revert "Update copyright headers in build/, build_overrides/, and buildtools/"
This reverts commit 8996d5a5ca.

Reason for revert: Breaks android-binary-size bot, see
https://bugs.chromium.org/p/chromium/issues/detail?id=1361092

Original change's description:
> Update copyright headers in build/, build_overrides/, and buildtools/
>
> The methodology used to generate this CL is documented in
> https://crbug.com/1098010#c21.
>
> No-Try: true
> Bug: 1098010
> Change-Id: I0323d0734081fc1aaf3b9ec3b8184411fe1a368a
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3879808
> Auto-Submit: Avi Drissman <avi@chromium.org>
> Commit-Queue: Avi Drissman <avi@chromium.org>
> Owners-Override: Avi Drissman <avi@chromium.org>
> Reviewed-by: Mark Mentovai <mark@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1044227}

Bug: 1098010
Change-Id: Ie1b5a07d859e98588c1497220aac54834ea5d7f0
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3880816
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Owners-Override: Nidhi Jaju <nidhijaju@chromium.org>
Commit-Queue: Nidhi Jaju <nidhijaju@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1044284}
2022-09-08 01:08:54 +00:00
Avi Drissman
8996d5a5ca Update copyright headers in build/, build_overrides/, and buildtools/
The methodology used to generate this CL is documented in
https://crbug.com/1098010#c21.

No-Try: true
Bug: 1098010
Change-Id: I0323d0734081fc1aaf3b9ec3b8184411fe1a368a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3879808
Auto-Submit: Avi Drissman <avi@chromium.org>
Commit-Queue: Avi Drissman <avi@chromium.org>
Owners-Override: Avi Drissman <avi@chromium.org>
Reviewed-by: Mark Mentovai <mark@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1044227}
2022-09-07 22:46:30 +00:00
Peter Wen
b51e454de9 Android: Migrate build/android scripts to python3
All scripts that are listed in the bug are migrated with this CL.

Bug: 1223605
Change-Id: I40f52855bceedc1a8261c4d46123ee1e38271039
Fixed: 1223605
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2993310
Auto-Submit: Peter Wen <wnwen@chromium.org>
Reviewed-by: Mohamed Heikal <mheikal@chromium.org>
Commit-Queue: Peter Wen <wnwen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#897437}
2021-06-30 17:42:57 +00:00
Andrew Grieve
4c4cedea58 Reland : Android: Use locally-build devil deps only when build_with_chromium=true
This reverts commit 6134a131aa.

Reason for reland: Underlying issue fixed in
cbdf4c2eae

TBR=agrieve  # Reland with no changes.

Bug: 1120190
Bug: 1145570
Change-Id: I64a8d982453f7deae45b24ec079dae8346303592
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2528622
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/master@{#829815}
2020-11-20 22:09:36 +00:00
Andrew Grieve
6134a131aa Revert "Reland : Android: Use locally-build devil deps only when build_with_chromium=true"
This reverts commit 8e2b321097.

Reason for revert: Breaks angle_unittests on emulator

Original change's description:
> Reland : Android: Use locally-build devil deps only when build_with_chromium=true
>
> This reverts commit 85773e527b.
>
> Reason for reland:
>  * Fixed data deps
>  * _BuildWithChromium() handles missing key
>
> Original change's description:
> > Revert "Reland "Android: Use locally-build devil deps only when build_with_chromium=true""
> >
> > This reverts commit f8b7ec28ae.
> >
> > Reason for revert: Causing all builds to fail on android-pixel2-perf failing
> >
> > Original change's description:
> > > Reland "Android: Use locally-build devil deps only when build_with_chromium=true"
> > >
> > > This reverts commit b47e9c8355.
> > >
> > > Reason for reland: Updated more .pydeps files.
> > >
> > > Original change's description:
> > > > Revert "Android: Use locally-build devil deps only when build_with_chromium=true"
> > > >
> > > > This reverts commit 49fdeca1c6.
> > > >
> > > > Reason for revert: Breaking presubmit due to stale .pydeps file:
> > > > android_webview/tools/run_cts.pydeps
> > > >
> > > > Original change's description:
> > > > > Android: Use locally-build devil deps only when build_with_chromium=true
> > > > >
> > > > > Bug: 1120190
> > > > > Change-Id: I763e42a7ae69d14eb61caebd220844b756d6d171
> > > > > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2480842
> > > > > Commit-Queue: Andrew Grieve <agrieve@chromium.org>
> > > > > Reviewed-by: Ben Pastene <bpastene@chromium.org>
> > > > > Cr-Commit-Position: refs/heads/master@{#819489}
> > > >
> > > > TBR=agrieve@chromium.org,bpastene@chromium.org
> > > >
> > > > Change-Id: I960ad355283c66951e5931f61e25421c5a5dfdf7
> > > > No-Presubmit: true
> > > > No-Tree-Checks: true
> > > > No-Try: true
> > > > Bug: 1120190
> > > > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2490857
> > > > Reviewed-by: Andrew Grieve <agrieve@chromium.org>
> > > > Commit-Queue: Andrew Grieve <agrieve@chromium.org>
> > > > Cr-Commit-Position: refs/heads/master@{#819668}
> > >
> > > TBR=agrieve # reland
> > >
> > > Bug: 1120190
> > > Change-Id: I8f3e21182e83a3e88da52331d56a8bef76507939
> > > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2490558
> > > Commit-Queue: Andrew Grieve <agrieve@chromium.org>
> > > Reviewed-by: Andrew Grieve <agrieve@chromium.org>
> > > Cr-Commit-Position: refs/heads/master@{#819810}
> >
> > TBR=agrieve@chromium.org,bpastene@chromium.org
> >
> > # Not skipping CQ checks because original CL landed > 1 day ago.
> >
> > Bug: 1120190, 1141891
> > Change-Id: I490f2e8a972b260a81b942e248c0f920af11db46
> > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2495335
> > Reviewed-by: John Chen <johnchen@chromium.org>
> > Commit-Queue: John Chen <johnchen@chromium.org>
> > Cr-Commit-Position: refs/heads/master@{#820355}
>
> Bug: 1120190
> Bug: 1141891
> Change-Id: Ic7a398fcd8cb5f45a03c20acbd4e9c7300442f38
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2497153
> Reviewed-by: Ben Pastene <bpastene@chromium.org>
> Commit-Queue: Andrew Grieve <agrieve@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#823651}

TBR=agrieve@chromium.org,bpastene@chromium.org

Change-Id: Ia586b0d8f68795e493074ba6b00ac36c529eb1ed
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: 1120190
Bug: 1145570
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2519425
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/master@{#824002}
2020-11-04 16:15:29 +00:00
Andrew Grieve
8e2b321097 Reland : Android: Use locally-build devil deps only when build_with_chromium=true
This reverts commit 85773e527b.

Reason for reland:
 * Fixed data deps
 * _BuildWithChromium() handles missing key

Original change's description:
> Revert "Reland "Android: Use locally-build devil deps only when build_with_chromium=true""
>
> This reverts commit f8b7ec28ae.
>
> Reason for revert: Causing all builds to fail on android-pixel2-perf failing
>
> Original change's description:
> > Reland "Android: Use locally-build devil deps only when build_with_chromium=true"
> >
> > This reverts commit b47e9c8355.
> >
> > Reason for reland: Updated more .pydeps files.
> >
> > Original change's description:
> > > Revert "Android: Use locally-build devil deps only when build_with_chromium=true"
> > >
> > > This reverts commit 49fdeca1c6.
> > >
> > > Reason for revert: Breaking presubmit due to stale .pydeps file:
> > > android_webview/tools/run_cts.pydeps
> > >
> > > Original change's description:
> > > > Android: Use locally-build devil deps only when build_with_chromium=true
> > > >
> > > > Bug: 1120190
> > > > Change-Id: I763e42a7ae69d14eb61caebd220844b756d6d171
> > > > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2480842
> > > > Commit-Queue: Andrew Grieve <agrieve@chromium.org>
> > > > Reviewed-by: Ben Pastene <bpastene@chromium.org>
> > > > Cr-Commit-Position: refs/heads/master@{#819489}
> > >
> > > TBR=agrieve@chromium.org,bpastene@chromium.org
> > >
> > > Change-Id: I960ad355283c66951e5931f61e25421c5a5dfdf7
> > > No-Presubmit: true
> > > No-Tree-Checks: true
> > > No-Try: true
> > > Bug: 1120190
> > > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2490857
> > > Reviewed-by: Andrew Grieve <agrieve@chromium.org>
> > > Commit-Queue: Andrew Grieve <agrieve@chromium.org>
> > > Cr-Commit-Position: refs/heads/master@{#819668}
> >
> > TBR=agrieve # reland
> >
> > Bug: 1120190
> > Change-Id: I8f3e21182e83a3e88da52331d56a8bef76507939
> > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2490558
> > Commit-Queue: Andrew Grieve <agrieve@chromium.org>
> > Reviewed-by: Andrew Grieve <agrieve@chromium.org>
> > Cr-Commit-Position: refs/heads/master@{#819810}
>
> TBR=agrieve@chromium.org,bpastene@chromium.org
>
> # Not skipping CQ checks because original CL landed > 1 day ago.
>
> Bug: 1120190, 1141891
> Change-Id: I490f2e8a972b260a81b942e248c0f920af11db46
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2495335
> Reviewed-by: John Chen <johnchen@chromium.org>
> Commit-Queue: John Chen <johnchen@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#820355}

Bug: 1120190
Bug: 1141891
Change-Id: Ic7a398fcd8cb5f45a03c20acbd4e9c7300442f38
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2497153
Reviewed-by: Ben Pastene <bpastene@chromium.org>
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/master@{#823651}
2020-11-03 19:15:21 +00:00
John Chen
85773e527b Revert "Reland "Android: Use locally-build devil deps only when build_with_chromium=true""
This reverts commit f8b7ec28ae.

Reason for revert: Causing all builds to fail on android-pixel2-perf failing

Original change's description:
> Reland "Android: Use locally-build devil deps only when build_with_chromium=true"
>
> This reverts commit b47e9c8355.
>
> Reason for reland: Updated more .pydeps files.
>
> Original change's description:
> > Revert "Android: Use locally-build devil deps only when build_with_chromium=true"
> >
> > This reverts commit 49fdeca1c6.
> >
> > Reason for revert: Breaking presubmit due to stale .pydeps file:
> > android_webview/tools/run_cts.pydeps
> >
> > Original change's description:
> > > Android: Use locally-build devil deps only when build_with_chromium=true
> > >
> > > Bug: 1120190
> > > Change-Id: I763e42a7ae69d14eb61caebd220844b756d6d171
> > > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2480842
> > > Commit-Queue: Andrew Grieve <agrieve@chromium.org>
> > > Reviewed-by: Ben Pastene <bpastene@chromium.org>
> > > Cr-Commit-Position: refs/heads/master@{#819489}
> >
> > TBR=agrieve@chromium.org,bpastene@chromium.org
> >
> > Change-Id: I960ad355283c66951e5931f61e25421c5a5dfdf7
> > No-Presubmit: true
> > No-Tree-Checks: true
> > No-Try: true
> > Bug: 1120190
> > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2490857
> > Reviewed-by: Andrew Grieve <agrieve@chromium.org>
> > Commit-Queue: Andrew Grieve <agrieve@chromium.org>
> > Cr-Commit-Position: refs/heads/master@{#819668}
>
> TBR=agrieve # reland
>
> Bug: 1120190
> Change-Id: I8f3e21182e83a3e88da52331d56a8bef76507939
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2490558
> Commit-Queue: Andrew Grieve <agrieve@chromium.org>
> Reviewed-by: Andrew Grieve <agrieve@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#819810}

TBR=agrieve@chromium.org,bpastene@chromium.org

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

Bug: 1120190, 1141891
Change-Id: I490f2e8a972b260a81b942e248c0f920af11db46
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2495335
Reviewed-by: John Chen <johnchen@chromium.org>
Commit-Queue: John Chen <johnchen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#820355}
2020-10-23 18:55:27 +00:00
Andrew Grieve
f8b7ec28ae Reland "Android: Use locally-build devil deps only when build_with_chromium=true"
This reverts commit b47e9c8355.

Reason for reland: Updated more .pydeps files.

Original change's description:
> Revert "Android: Use locally-build devil deps only when build_with_chromium=true"
>
> This reverts commit 49fdeca1c6.
>
> Reason for revert: Breaking presubmit due to stale .pydeps file:
> android_webview/tools/run_cts.pydeps
>
> Original change's description:
> > Android: Use locally-build devil deps only when build_with_chromium=true
> >
> > Bug: 1120190
> > Change-Id: I763e42a7ae69d14eb61caebd220844b756d6d171
> > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2480842
> > Commit-Queue: Andrew Grieve <agrieve@chromium.org>
> > Reviewed-by: Ben Pastene <bpastene@chromium.org>
> > Cr-Commit-Position: refs/heads/master@{#819489}
>
> TBR=agrieve@chromium.org,bpastene@chromium.org
>
> Change-Id: I960ad355283c66951e5931f61e25421c5a5dfdf7
> No-Presubmit: true
> No-Tree-Checks: true
> No-Try: true
> Bug: 1120190
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2490857
> Reviewed-by: Andrew Grieve <agrieve@chromium.org>
> Commit-Queue: Andrew Grieve <agrieve@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#819668}

TBR=agrieve # reland

Bug: 1120190
Change-Id: I8f3e21182e83a3e88da52331d56a8bef76507939
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2490558
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/master@{#819810}
2020-10-22 13:44:19 +00:00
Andrew Grieve
b47e9c8355 Revert "Android: Use locally-build devil deps only when build_with_chromium=true"
This reverts commit 49fdeca1c6.

Reason for revert: Breaking presubmit due to stale .pydeps file:
android_webview/tools/run_cts.pydeps

Original change's description:
> Android: Use locally-build devil deps only when build_with_chromium=true
>
> Bug: 1120190
> Change-Id: I763e42a7ae69d14eb61caebd220844b756d6d171
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2480842
> Commit-Queue: Andrew Grieve <agrieve@chromium.org>
> Reviewed-by: Ben Pastene <bpastene@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#819489}

TBR=agrieve@chromium.org,bpastene@chromium.org

Change-Id: I960ad355283c66951e5931f61e25421c5a5dfdf7
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: 1120190
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2490857
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/master@{#819668}
2020-10-22 02:09:28 +00:00
Andrew Grieve
49fdeca1c6 Android: Use locally-build devil deps only when build_with_chromium=true
Bug: 1120190
Change-Id: I763e42a7ae69d14eb61caebd220844b756d6d171
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2480842
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: Ben Pastene <bpastene@chromium.org>
Cr-Commit-Position: refs/heads/master@{#819489}
2020-10-21 19:59:06 +00:00
Dirk Pranke
333407cb12 Revert "Roll catapult to 532e564 and update for changes in it."
This reverts commit 9bdc5ccb7f.

Reason for revert: Reverting until I can fix the `import six` issues more cleanly.

Original change's description:
> Roll catapult to 532e564 and update for changes in it.
>
> This CL rolls //third_party/catapult to
> 532e564f622742fc93a7f91dd3556d711e778a7e and picks up
>
> https://chromium-review.googlesource.com/c/catapult/+/2450450
>
> which removes zipfile_2_7_13.py as a dependency. This CL
> also updates the corresponding Chromium .pydeps files that mentioned
> it.
>
> That change also added a dependency on `six`, which seems to be
> pervasively assumed in other parts of the catapult codebase as
> present in the environment; however, it isn't guaranteed to be
> there in the chromium compile-time python build, so this adds
> that as needed as well.
>
> TBR=bsheedy@chromium.org
>
> Bug: 1112471
> Change-Id: I849355a5bdc18847dcbf39f3d3a9e9fbf428e3be
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2449938
> Commit-Queue: Dirk Pranke <dpranke@google.com>
> Reviewed-by: Dirk Pranke <dpranke@google.com>
> Reviewed-by: John Chen <johnchen@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#814062}

TBR=dpranke@google.com,bsheedy@chromium.org,johnchen@chromium.org

Change-Id: I8dc0ccc9819eb5cd7de6d9fab4ec9a23c485ca09
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: 1112471, 1135502
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2453150
Commit-Queue: Dirk Pranke <dpranke@google.com>
Reviewed-by: Dirk Pranke <dpranke@google.com>
Cr-Commit-Position: refs/heads/master@{#814255}
2020-10-06 17:11:40 +00:00
Dirk Pranke
9bdc5ccb7f Roll catapult to 532e564 and update for changes in it.
This CL rolls //third_party/catapult to
532e564f622742fc93a7f91dd3556d711e778a7e and picks up

https://chromium-review.googlesource.com/c/catapult/+/2450450

which removes zipfile_2_7_13.py as a dependency. This CL
also updates the corresponding Chromium .pydeps files that mentioned
it.

That change also added a dependency on `six`, which seems to be
pervasively assumed in other parts of the catapult codebase as
present in the environment; however, it isn't guaranteed to be
there in the chromium compile-time python build, so this adds
that as needed as well.

TBR=bsheedy@chromium.org

Bug: 1112471
Change-Id: I849355a5bdc18847dcbf39f3d3a9e9fbf428e3be
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2449938
Commit-Queue: Dirk Pranke <dpranke@google.com>
Reviewed-by: Dirk Pranke <dpranke@google.com>
Reviewed-by: John Chen <johnchen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#814062}
2020-10-06 02:51:34 +00:00
Brian Sheedy
2e1b4f29e9 Switch //build/android to vpython pymock
Switches the unittests in //build/android off the version of pymock
from //third_party and onto the version made available via vpython.

Bug: 1094489
Change-Id: I0fe024c582b1335eecf1e0b9d05e18122284da07
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2246190
Auto-Submit: Brian Sheedy <bsheedy@chromium.org>
Reviewed-by: Tibor Goldschwendt <tiborg@chromium.org>
Commit-Queue: Brian Sheedy <bsheedy@chromium.org>
Cr-Commit-Position: refs/heads/master@{#779082}
2020-06-16 23:55:55 +00:00
Nate Fischer
dfd9812e0e DevX: presubmit check for devil initialization
This adds a presubmit check to ensure scripts initialize devil via
devil_chromium.Initialize() rather than other ways
(script_common.InitializeEnvironment, devil_env.config.Initialize).
devil_chromium.Initialize() is preferable to either because it uses
better defaults for dependencies (ex. adb version v40 rather than v32).

This also adds docs devil_chromium.Initialize() itself, since the
adb_path parameter was undocumented (but is related to the primary
motivation for this change).

The check intentionally skips third_party/, as these projects won't have
access to devil_chromium.Initialize(). The check also skips
devil_chromium.py itself, since the Initialize() method legitimately
calls devil_env.config itself.

Bug: 978697
Test: git cl presubmit
Change-Id: Ia699ad8f2ddeef46057baeb6708cf09b254b756d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1707458
Reviewed-by: John Budorick <jbudorick@chromium.org>
Reviewed-by: Dirk Pranke <dpranke@chromium.org>
Commit-Queue: Nate Fischer <ntfschr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#678859}
2019-07-18 22:03:00 +00:00
Nate Fischer
0da4b2ee8b AW: use ABI constants in chromium scripts
No change to logic, just a refactor.

This swaps out hardcoded string literals for the newly added ABI
constants for a few scripts in chromium.

This updates pydeps for the scripts this transitively affects, which
conveniently includes the pydeps files which previously blocked a
catapult autoroll.

Bug: 922854, 925237, 924778
Test: vpython android_webview/tools/run_cts_test.py
Test: vpython build/android/list_class_verification_failures_test.py
Change-Id: I9c754809f00606bad19120e869d5c7f47b8dba02
Reviewed-on: https://chromium-review.googlesource.com/c/1436876
Reviewed-by: Tobias Sargeant <tobiasjs@chromium.org>
Reviewed-by: John Budorick <jbudorick@chromium.org>
Commit-Queue: Nate Fischer <ntfschr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#626122}
2019-01-25 17:57:14 +00:00
Mike Frysinger
a8944dc978 build: android: strip trailing blank lines
Newer pylint warns when files have trailing blank lines.  Trim them.

Bug: 866772
Change-Id: Ib0f353d83dd0b86ac0b304c5704a9725867846b2
Reviewed-on: https://chromium-review.googlesource.com/1147719
Reviewed-by: Egor Pasko <pasko@chromium.org>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
Cr-Commit-Position: refs/heads/master@{#577591}
2018-07-24 17:10:31 +00:00
jbudorick
6e2cfec2af [Android] Use local build of chromium_commands.dex.jar in chromium tests.
Without this, we were downloading chromium_commands.dex.jar from GCS every
time we tried to use it. This is both unnecessary and potentially problematic,
as catapult/devil's downloading mechanism is currently prone to hanging with
lock failures.

With this change, we will instead use the locally built version of
chromium_commands.dex.jar when available.

BUG=674172

Review-Url: https://codereview.chromium.org/2575003003
Cr-Commit-Position: refs/heads/master@{#439537}
2016-12-19 20:21:14 +00:00
jbudorick
3e0f4b2179 [Android] Add --adb-path option for tombstones.py.
BUG=526305

Review-Url: https://codereview.chromium.org/2022533002
Cr-Commit-Position: refs/heads/master@{#396636}
2016-05-28 04:51:34 +00:00
kjellander
d408713145 Revert of [Devil] Replace generated Devil config with jinja template. (patchset id:140001 of https://codereview.chromium.org/1812383003/ )
Reason for revert:
I believe this change breaks content_browsertests on every Android tester in chromium.android.

Examples:

https://build.chromium.org/p/chromium.android/builders/Lollipop%20Phone%20Tester/builds/4031
https://build.chromium.org/p/chromium.android/builders/Marshmallow%2064%20bit%20Tester/builds/1457
https://build.chromium.org/p/chromium.android/builders/KitKat%20Tablet%20Tester/builds/3759

Original issue's description:
> [Devil] Replace generated Devil config with jinja template.
>
> This change will hopefully allow us to configure devil more based
> on the build config. For example, it will let us use the same
> android_sdk_tools to run tests that we use to build with.
>
> BUG=
>
> Committed: https://crrev.com/c2aa4243a9e00a2d0e254d9f6f73b41c00cb644d
> Cr-Commit-Position: refs/heads/master@{#386461}

TBR=droger@chromium.org,jbudorick@chromium.org,mikecase@chromium.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=

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

Cr-Commit-Position: refs/heads/master@{#386648}
2016-04-12 11:00:20 +00:00
mikecase
c2aa4243a9 [Devil] Replace generated Devil config with jinja template.
This change will hopefully allow us to configure devil more based
on the build config. For example, it will let us use the same
android_sdk_tools to run tests that we use to build with.

BUG=

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

Cr-Commit-Position: refs/heads/master@{#386461}
2016-04-11 20:28:16 +00:00
jbudorick
d28554a567 [Android] Prepare build/android/ for catapult+devil.
BUG=476719

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

Cr-Commit-Position: refs/heads/master@{#368599}
2016-01-11 16:23:48 +00:00
jbudorick
3c5a12451a [Android] Update platform for devil host binary dependencies.
BUG=

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

Cr-Commit-Position: refs/heads/master@{#368256}
2016-01-08 02:54:39 +00:00
jbudorick
23924599e2 [Android] Revise devil environment handling of host dependencies.
BUG=

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

Cr-Commit-Position: refs/heads/master@{#366672}
2015-12-22 22:37:13 +00:00
jbudorick
ac8224c8a4 [Android] Add x86_64 to devil_chromium.
BUG=567511

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

Cr-Commit-Position: refs/heads/master@{#364199}
2015-12-09 23:14:01 +00:00
Gordana.Cmiljanovic
9665f0f492 Add mips/mips64 to _DEVIL_BUILD_PRODUCT_DEPS
Adds md5sum and forwarder device for mips and mips64.

BUG=missing md5sum and forwarder for mips devices

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

Cr-Commit-Position: refs/heads/master@{#364079}
2015-12-09 16:39:39 +00:00
bpastene
5fd5a83c2d add md5sum device bin to dependencies
BUG=

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

Cr-Commit-Position: refs/heads/master@{#363358}
2015-12-06 05:04:59 +00:00
jbudorick
0c2a94ab87 [Android] Add a configurable environment for devil/. (RELAND 2)
This is a reland of https://codereview.chromium.org/1399273002

BUG=476719

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

Cr-Commit-Position: refs/heads/master@{#363204}
2015-12-04 14:28:57 +00:00
jbudorick
814dac5c6b Revert of [Android] Add a configurable environment for devil/. (RELAND) (patchset id:220001 of https://codereview.chromium.org/1399273002/ )
Reason for revert:
broke cluster telemetry: https://code.google.com/p/skia/issues/detail?id=4506

Original issue's description:
> [Android] Add a configurable environment for devil/. (RELAND)
>
> This is a reland of https://codereview.chromium.org/1316413003/
>
> BUG=476719
>
> Committed: https://crrev.com/06869eebcab4b41d21e96ea2df732a2b40914fe4
> Cr-Commit-Position: refs/heads/master@{#355683}

TBR=aiolos@chromium.org,nednguyen@google.com,mikecase@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=476719

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

Cr-Commit-Position: refs/heads/master@{#355774}
2015-10-23 13:42:37 +00:00
jbudorick
06869eebca [Android] Add a configurable environment for devil/. (RELAND)
This is a reland of https://codereview.chromium.org/1316413003/

BUG=476719

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

Cr-Commit-Position: refs/heads/master@{#355683}
2015-10-23 00:07:15 +00:00