diff options
author | Bob Haarman <inglorion@chromium.org> | 2023-10-16 10:53:18 +0000 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-10-16 22:04:53 +0000 |
commit | f3607d6a760cc7d5482b02f8b070ef30f8bef1f7 (patch) | |
tree | 731d1fa3b4c87b1a5125e47f92ffd76e681a8ac1 /pgo_tools | |
parent | 0baa32a0462f9b74530c2c40bc60be70cc056190 (diff) | |
download | toolchain-utils-f3607d6a760cc7d5482b02f8b070ef30f8bef1f7.tar.gz |
rust_uprev: cache sudo credentials
rust_uprev runs a number of long-running processes and a couple of
processes that run sudo. Cached sudo credentials may expire during
the long-running processes, after which sudo may require user
interaction, and the whole process sits idle until the necessary
action is taken. To avoid such delays, this CL causes cached sudo
credentials to periodically be refreshed while the script is
running, up to some maximum time limit. This way, rust_uprev will
ask for authentication once, and then run non-interactively until
it completes.
BUG=None
TEST=Run rust_uprev, see that it only prompts for authentication once
Change-Id: I41645a04a100731772a8695c0b080c072db75c3a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/4942250
Commit-Queue: Bob Haarman <inglorion@chromium.org>
Tested-by: Bob Haarman <inglorion@chromium.org>
Reviewed-by: George Burgess <gbiv@chromium.org>
Diffstat (limited to 'pgo_tools')
0 files changed, 0 insertions, 0 deletions