Fix Linux git mirror root path in bazelci.py (#3015)

When the Linux Git mirror directory was moved from `/var/lib/bazelbuild`
to `/var/lib/gitmirrors`, `get_mirror_root()` in bazelci.py was missed
and continued returning `/var/lib/bazelbuild/.`

Today: While the Buildkite agent's primary step checkout uses
`/var/lib/gitmirrors`, any repository cloned inside a job via
bazelci.py's fall back to a full network clone from GitHub instead of
using git clone --reference "Because /var/lib/bazelbuild/ does not exist
anymore"

This affects:

- Bazel Downstream pipeline jobs: Every downstream task (TensorFlow,
Gerrit, Protobuf, rules_*, etc.) clones its repository via
clone_git_repository(), downloading the full repo over the network
instead of using the local mirror.
- Presubmit bazel-diff target filtering: Cloning the comparison
repository misses the local mirror when no existing clone is present.
- Bazel Bench: bazel_bench.py calls bazelci.get_mirror_root() directly
when cloning repositories.

Fix: Update get_mirror_root() on Linux to return `/var/lib/gitmirrors/`
1 file changed