-
Notifications
You must be signed in to change notification settings - Fork 374
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci: support external read-only cache for untrusted PRs #14570
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,10 +50,12 @@ time { | |
//google/cloud:status_test "${targets[@]}" | ||
} | ||
|
||
TIMEFORMAT="==> 🕑 Storage integration tests done in %R seconds" | ||
if [[ -n "${GHA_TEST_BUCKET:-}" ]]; then | ||
time { | ||
io::run bazelisk "${args[@]}" test "${test_args[@]}" "${integration_test_args[@]}" \ | ||
//google/cloud/storage/tests/... | ||
} | ||
if [[ "${EXECUTE_INTEGRATION_TESTS}" == "true" ]]; then | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Consider using |
||
TIMEFORMAT="==> 🕑 Storage integration tests done in %R seconds" | ||
if [[ -n "${GHA_TEST_BUCKET:-}" ]]; then | ||
time { | ||
io::run bazelisk "${args[@]}" test "${test_args[@]}" "${integration_test_args[@]}" \ | ||
//google/cloud/storage/tests/... | ||
} | ||
fi | ||
fi |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,15 +46,17 @@ time { | |
io::run bazelisk "${args[@]}" test "${test_args[@]}" --test_tag_filters=-integration-test -- //google/cloud:status_test "$@" | ||
} | ||
|
||
TIMEFORMAT="==> 🕑 Storage integration tests done in %R seconds" | ||
if [[ -n "${GHA_TEST_BUCKET:-}" ]]; then | ||
time { | ||
# gRPC requires a local roots.pem on Windows | ||
# https://github.com/grpc/grpc/issues/16571 | ||
curl -fsSL -o "${HOME}/roots.pem" https://pki.google.com/roots.pem | ||
|
||
io::run bazelisk "${args[@]}" test "${test_args[@]}" "${integration_test_args[@]}" \ | ||
--test_env=GRPC_DEFAULT_SSL_ROOTS_FILE_PATH="${HOME}/roots.pem" \ | ||
//google/cloud/storage/tests/... | ||
} | ||
if [[ "${EXECUTE_INTEGRATION_TESTS}" == "true" ]]; then | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ditto, consider using an argument to the script. |
||
TIMEFORMAT="==> 🕑 Storage integration tests done in %R seconds" | ||
if [[ -n "${GHA_TEST_BUCKET:-}" ]]; then | ||
time { | ||
# gRPC requires a local roots.pem on Windows | ||
# https://github.com/grpc/grpc/issues/16571 | ||
curl -fsSL -o "${HOME}/roots.pem" https://pki.google.com/roots.pem | ||
|
||
io::run bazelisk "${args[@]}" test "${test_args[@]}" "${integration_test_args[@]}" \ | ||
--test_env=GRPC_DEFAULT_SSL_ROOTS_FILE_PATH="${HOME}/roots.pem" \ | ||
//google/cloud/storage/tests/... | ||
} | ||
fi | ||
fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also consider something other than enviroment variables for these.