[cl-util] Handle transient errors when editing files

Editing files may encounter transient errors, for instance, when the
operation encounters a 404 due to the change not being visible.

Add internal retries for file edits to the `create-cl` command to handle
transient errors.

Bug: 55073
Change-Id: I184770706299156f3d59530dbb56f80fb94e2228
Reviewed-on: https://fuchsia-review.googlesource.com/c/infra/infra/+/402617
Commit-Queue: Anthony Fandrianto <atyfto@google.com>
Reviewed-by: Oliver Newman <olivernewman@google.com>
2 files changed
tree: ec9fffe26dab5c7a2740f45435e102783fad8bec
  1. artifacts/
  2. buildbucket/
  3. cmd/
  4. devices/
  5. digest/
  6. gotidy/
  7. .gitignore
  8. AUTHORS
  9. go.mod
  10. go.sum
  11. LICENSE
  12. MAINTAINERS
  13. manifest
  14. PATENTS
  15. README.md
README.md

infra

This repo contains tools and config files necessary to run infrastructure related to builds, code review, version control, and continuous integrations.

In order to build the Go code, you must clone this repo into an appropriately named directory. This should do the trick:

REPO=fuchsia.googlesource.com/infra/infra
git clone https://${REPO} $(go env GOPATH)/src/${REPO}