You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
depot_tools/tests
Scott Lee 1c81122f69 [depot_tools] retry git config if it lock-fails
If git config set is executed, it writes the new content into
a temp file (but called lock-file) and then replace .gitconfig
with it.

However, if it cannot create the lock file, it returns an error.
With this CL, if git config fails with the lock file error,
depot_tools will retry it at most 5 times with 0.2s interval.

It's found that there are applications, such as vscode extensions,
executes `git config set` frequently, and those could often cause
unexpected interruptions to ongoing `git rebase-updates`
by the lock failure.

Bug: 351950514
Change-Id: I985af0d8b7458dbf47cd6baa857dc5adccf15031
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/5705561
Reviewed-by: Takuto Ikuta <tikuta@chromium.org>
Reviewed-by: Josip Sokcevic <sokcevic@chromium.org>
Commit-Queue: Scott Lee <ddoman@chromium.org>
10 months ago
..
gerrit_util_test.inputs
gstools
.vpython3
OWNERS
auth_test.py
autoninja_test.py
bazel_test.py
bot_update_coverage_test.py
build_telemetry_test.py
cipd_bootstrap_test.py
detect_host_arch_test.py
download_from_google_storage_unittest.py
fetch_test.py
gclient_cipd_smoketest.py
gclient_eval_unittest.py
gclient_gcs_smoketest.py
gclient_git_mutates_smoketest.py
gclient_git_smoketest.py
gclient_no_sync_smoketest.py
gclient_paths_test.py
gclient_scm_test.py
gclient_smoketest.py
gclient_smoketest_base.py
gclient_test.py
gclient_transitions_smoketest.py
gclient_utils_test.py
gerrit_client_test.py
gerrit_util_test.py
git_cache_test.py
git_cl_creds_check_report.txt
git_cl_test.py
git_common_test.py [depot_tools] retry git config if it lock-fails 10 months ago
git_dates_test.py
git_find_releases_test.py
git_footers_test.py
git_hyper_blame_test.py
git_map_test.py
git_number_test.py
git_rebase_update_test.py
git_squash_branch_tree_test.py
gn_helper_test.py
gsutil_test.py
hooks_test.py
lockfile_test.py
metrics_test.py
my_activity_test.py
ninjalog_uploader_test.py
owners_client_test.py
owners_finder_test.py
presubmit_canned_checks_test.py
presubmit_diff_test.py
presubmit_support_test.py
presubmit_unittest.py
rdb_wrapper_test.py
recipes_test.py
reclient_helper_test.py
reclient_metrics_test.py
roll_dep_test.py
scm_mock.py
scm_unittest.py
split_cl_test.py
subcommand_test.py
subprocess2_test.py
upload_to_google_storage_first_class_unittest.py
upload_to_google_storage_unittest.py
utils_test.py
watchlists_unittest.py