[roll] Roll fuchsia [adb][test] Watch UsbService in ConnectEndpoints

In AdbClientImpl::ConnectEndpoints, scanning
/svc/fuchsia.hardware.usb.UsbService with a one-shot
std::filesystem::directory_iterator can race with driver binding when
usb-bus publishes its fuchsia.hardware.usb.device.Service instance
slightly before child driver usb-composite finishes binding and
publishes its scoped UsbService endpoint instance. When that race
occurs, ConnectEndpoints only sees the parent usb-bus instance (which
fails ConnectToEndpoint because usb-composite claimed the interface),
returns ZX_ERR_NOT_FOUND, and leaves DiscoverAndConnect waiting
indefinitely for another device instance that never arrives.

Update AdbClientImpl::ConnectEndpoints in adb_client.cc to use
device_watcher::WatchDirectoryForItems on
/svc/fuchsia.hardware.usb.UsbService so it waits for the usb-composite
UsbService instance to appear and bind both bulk endpoints.

Original-Original-Bug: 566407498
Test: fx test-remote --builder core.arm64-vg-release --test usb-hermetic-adb-e2e --multiply usb-hermetic-adb-e2e:30
Test: fx test-remote --builder core.x64-vg-release --test usb-hermetic-adb-e2e --multiply usb-hermetic-adb-e2e:20
Original-Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1853036
Original-Original-Revision: d27e64f4a1ae80a5ae2a1176360b33e556c58818
GitOrigin-RevId: 720c1c90897297b4a86a156cee86e079beabe6dc
Change-Id: I9135053617d66087a9bf7f1f8d769604a8d19830
Reviewed-on: https://fuchsia-review.googlesource.com/c/integration/+/1855198
Cr-Commit-Position: refs/heads/main@{#203537}
1 file changed
tree: ef0ccc09b372439c3227a9035f034f6bbab9203f
  1. ctf/
  2. git-hooks/
  3. infra/
  4. third_party/
  5. cobalt
  6. flower
  7. jiri.lock
  8. MILESTONE
  9. minimal
  10. prebuilts
  11. README.md
  12. stem
  13. test_durations
README.md

Integration

This repository contains Fuchsia's Global Integration manifest files.

Making changes

All changes should be made to the internal version of this repository. Our infrastructure automatically updates this version when the internal one changes.

Currently all changes must be made by a Google employee. Non-Google employees wishing to make a change can ask for assistance in one of the communication channels documented at get involved.

Obtaining the source

First install Jiri.

Next run:

$ jiri init
$ jiri import minimal https://fuchsia.googlesource.com/integration
$ jiri update

Third party

Third party projects should have their own subdirectory in ./third_party.