[roll] Roll fuchsia [ffx][flash] Improve flashing speed

We used to use a buffer which is 4KB, this is proven to be a bottleneck
of flashing performance. Now we change it to read file into a 50MB
buffer, and let the TCPStream to handle the chunking. From local
testing, the chunk sizes is about 1.6MB on average. From local testing
with pontis, this decrease the flashing time of large image from 279
seconds to 75 seconds.

Also we noticed the set_active call can fail on sorrel, we change it to
be best effort and log a warning when fail. Also added a 3 seconds
timeout on set_active call, as this call is not computationally
expensive and should response pretty fast when succeed.

Original-Bug: 409544982
Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1252985
Original-Revision: 84b8c6436fb0c9b5e16ddcedcbc38af413fc59f8
GitOrigin-RevId: 77a6b7444266b11266f3b75887f809041efe6a71
Change-Id: I691f00f667fcf6e613c406e2df68b3526242c3c6
1 file changed
tree: 8dc375f0cec013959bc11190d0dc5d47027199f0
  1. ctf/
  2. git-hooks/
  3. infra/
  4. third_party/
  5. cts
  6. firmware
  7. flower
  8. jiri.lock
  9. MILESTONE
  10. minimal
  11. prebuilts
  12. README.md
  13. stem
  14. test_durations
  15. toolchain
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.