File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,14 @@ set -eo pipefail
3636export PROJECT_ROOT=$( realpath $( dirname " ${BASH_SOURCE[0]} " ) /..)
3737TARGET_BRANCH=" ${TARGET_BRANCH:- main} "
3838
39+ # Redirect git clones for core dependencies to the local repository.
40+ # This serves two purposes:
41+ # 1. Performance: Avoids repeated 100MB+ downloads of the monorepo for each dependency.
42+ # 2. Correctness: Ensures that changes in core packages (like google-api-core) are
43+ # tested against downstream packages in the same Pull Request.
44+ git -C " ${PROJECT_ROOT} " config url." ${PROJECT_ROOT} " .insteadOf " https://github.com/googleapis/google-cloud-python"
45+ git -C " ${PROJECT_ROOT} " config url." ${PROJECT_ROOT} " .insteadOf " https://github.com/googleapis/google-cloud-python.git"
46+
3947# A script file for running the test in a sub project.
4048test_script=" ${PROJECT_ROOT} /ci/run_single_test.sh"
4149
You can’t perform that action at this time.
0 commit comments