| commit | 8afce15215a33c86515906b8a7c7c7b555290275 | [log] [tgz] |
|---|---|---|
| author | Ming Kong <mingkong@google.com> | Thu Apr 06 01:17:13 2023 +0000 |
| committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | Sat Apr 08 06:34:47 2023 +0000 |
| tree | 1260892779ba61c71ca702e6311c89708511cd9f | |
| parent | ae306d13c0e52915dbdac976285d5319cb5c2403 [diff] |
cros-publish: throttle GCS upload goroutines to avoid overwhelming bots Adopt the same logic from the one used by phosphorus. https://source.chromium.org/chromium/infra/infra/+/main:go/src/infra/libs/skylab/gs/gs.go;l=110;drc=392685e2b84066fa6c958f6e9971d5e69e04c889 - luci.common.sync.parallel.WorkPool is in the existing `dev-go/luci-go-common` dependency that we use for luci.common.errors - maxConcurrentUploads=10 is same as phosphorus BUG=b:276770874 TEST=unit test Change-Id: I69e3819813a2f88cfb51fb155ecaced56230ee27 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/dev-util/+/4405057 Reviewed-by: Derek Beckett <dbeckett@chromium.org> Auto-Submit: Ming Kong <mingkong@google.com> Tested-by: Ming Kong <mingkong@google.com> Commit-Queue: Ming Kong <mingkong@google.com> Reviewed-by: Seewai Fu <seewaifu@google.com>