Skip to content

Commit fe6c8fb

Browse files
author
Takashi Matsuo
committed
wait 5 mins in py-3.8 presubmit build to avoid quota errors
1 parent 91a8ed4 commit fe6c8fb

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.kokoro/tests/run_tests.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,19 @@ if [[ $* == *--only-diff-head* ]]; then
5151
fi
5252
fi
5353

54+
# Because Kokoro runs presubmit builds simalteneously, we often see
55+
# quota related errors. I think we can avoid this by changing the
56+
# order of tests to execute (e.g. reverse order for py-3.8
57+
# build). Currently there's no easy way to do that with btlr, so we
58+
# temporarily wait few minutes to avoid quota issue for py-3.8
59+
# presubmit build.
60+
if [[ "${RUN_TESTS_SESSION}" == "py-3.8" ]] \
61+
&& [[ "${KOKORO_JOB_NAME}" == *presubmit ]]; then
62+
echo -n "Detected py-3.8 presubmit build,"
63+
echo "Wait few minutes to avoid quota issues."
64+
sleep 5m
65+
fi
66+
5467
if [[ -z "${PROJECT_ROOT:-}" ]]; then
5568
PROJECT_ROOT="github/python-docs-samples"
5669
fi

0 commit comments

Comments
 (0)