Repository: flutter
Issue: bot_update failing and/or timing out due to upstream issue with Git hosts
Labels: team-infra,P1

Edit: there is an upstream issue in Google's internal git hosts that is causing this issue (I've also closed and forwarded https://github.com/flutter/flutter/issues/161448 here). I am tracking progress on that, and will update this issue when we have recovered.

---

For example: https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8726111610429262673/+/u/Checkout_source_code__2_/bot_update/stdout

```
2025-01-10 09:22:56.990732 ===Running git config --global --unset core.trustctime ===
In directory: /b/s/w/ir/cache/builder
2025-01-10 09:22:57.001061 ===Succeeded in 0.0 mins of git config --global --unset core.trustctime ===

Traceback (most recent call last):
  File "/b/s/w/ir/kitchen-checkout/depot_tools/recipes/recipe_modules/bot_update/resources/bot_update.py", line 1211, in <module>
    sys.exit(main())
             ^^^^^^
  File "/b/s/w/ir/kitchen-checkout/depot_tools/recipes/recipe_modules/bot_update/resources/bot_update.py", line 1195, in main
    checkout(options, git_slns, specs, revisions, step_text)
  File "/b/s/w/ir/kitchen-checkout/depot_tools/recipes/recipe_modules/bot_update/resources/bot_update.py", line 1094, in checkout
    ensure_checkout(**checkout_parameters)
  File "/b/s/w/ir/kitchen-checkout/depot_tools/recipes/recipe_modules/bot_update/resources/bot_update.py", line 659, in wrapper
    return fn(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^
  File "/b/s/w/ir/kitchen-checkout/depot_tools/recipes/recipe_modules/bot_update/resources/bot_update.py", line 824, in ensure_checkout
    git_checkouts(solutions, revisions, refs, no_fetch_tags, git_cache_dir,
  File "/b/s/w/ir/kitchen-checkout/depot_tools/recipes/recipe_modules/bot_update/resources/bot_update.py", line 668, in git_checkouts
    _git_checkout(sln, sln_dir, revisions, refs, no_fetch_tags, git_cache_dir,
  File "/b/s/w/ir/kitchen-checkout/depot_tools/recipes/recipe_modules/bot_update/resources/bot_update.py", line 697, in _git_checkout
    git(*populate_cmd)
  File "/b/s/w/ir/kitchen-checkout/depot_tools/recipes/recipe_modules/bot_update/resources/bot_update.py", line 257, in git
    return call(*cmd, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^
  File "/b/s/w/ir/kitchen-checkout/depot_tools/recipes/recipe_modules/bot_update/resources/bot_update.py", line 235, in call
    raise SubprocessFailed('%s failed with code %d in %s.' %
SubprocessFailed: ('/home/chrome-bot/.cache/vpython-root.1000/store/python_venv-8ngg3io865uup2tka5tn5p88p4/contents/bin/python3 -u /b/s/w/ir/kitchen-checkout/depot_tools/git_cache.py populate -v --cache-dir /b/s/w/ir/cache/git https://flutter.googlesource.com/mirrors/flutter --reset-fetch-config --commit ee4d46d43aaf996675fd09b1c4185f818ef166df --ref refs/heads/gh-readonly-queue/master/pr-161431-864d4f59dde0afab749d5530cf9902e59ccbaacf failed with code -9 in /b/s/w/ir/cache/builder.', -9, '/b/s/w/ir/cache/git/flutter.googlesource.com-mirrors-flutter has 15 .pack files, re-bootstrapping if >50 or ==0\n864d4f59dde0afab749d5530cf9902e59ccbaacf refs/heads/master\nrunning "git --git-dir /b/s/w/ir/cache/git/flutter.googlesource.com-mirrors-flutter config --unset-all remote.origin.fetch" in "/b/s/w/ir/cache/git/flutter.googlesource.com-mirrors-flutter"\nrunning "git --git-dir /b/s/w/ir/cache/git/flutter.googlesource.com-mirrors-flutter config gc.autodetach 0" in "/b/s/w/ir/cache/git/flutter.googlesource.com-mirrors-flutter"\nrunning "git --git-dir /b/s/w/ir/cache/git/flutter.googlesource.com-mirrors-flutter config core.deltaBaseCacheLimit 2g" in "/b/s/w/ir/cache/git/flutter.googlesource.com-mirrors-flutter"\nrunning "git --git-dir /b/s/w/ir/cache/git/flutter.googlesource.com-mirrors-flutter config remote.origin.url https://flutter.googlesource.com/mirrors/flutter" in "/b/s/w/ir/cache/git/flutter.googlesource.com-mirrors-flutter"\nrunning "git --git-dir /b/s/w/ir/cache/git/flutter.googlesource.com-mirrors-flutter config --replace-all remote.origin.fetch +refs/heads/*:refs/heads/* \\+refs/heads/\\*:.*" in "/b/s/w/ir/cache/git/flutter.googlesource.com-mirrors-flutter"\nrunning "git --git-dir /b/s/w/ir/cache/git/flutter.googlesource.com-mirrors-flutter config --replace-all remote.origin.fetch +refs/heads/gh-readonly-queue/master/pr-161431-864d4f59dde0afab749d5530cf9902e59ccbaacf:refs/heads/gh-readonly-queue/master/pr-161431-864d4f59dde0afab749d5530cf9902e59ccbaacf \\+refs/heads/gh-readonly-queue/master/pr-161431-864d4f59dde0afab749d5530cf9902e59ccbaacf:.*" in "/b/s/w/ir/cache/git/flutter.googlesource.com-mirrors-flutter"\nFetching +refs/heads/*:refs/heads/*\nrunning "git --git-dir /b/s/w/ir/cache/git/flutter.googlesource.com-mirrors-flutter fetch -v --progress --prune origin +refs/heads/*:refs/heads/*" in "/b/s/w/ir/cache/git/flutter.googlesource.com-mirrors-flutter"\n')
```