-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use multiple remote services on CI (#56)
* feat: use multiple remote services on CI Signed-off-by: Thulio Ferraz Assis <[email protected]> * fix: disable EngFlow temporarily Signed-off-by: Thulio Ferraz Assis <[email protected]>
- Loading branch information
Showing
4 changed files
with
112 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,28 @@ | ||
build --keep_going | ||
|
||
# Remote cache | ||
build --bes_backend=grpcs://tourmaline.cluster.engflow.com | ||
build --bes_results_url=https://tourmaline.cluster.engflow.com/invocation/ | ||
build --remote_cache=grpcs://tourmaline.cluster.engflow.com | ||
# Generic remote cache | ||
build --remote_download_toplevel | ||
build --remote_timeout=3600 | ||
build --remote_upload_local_results | ||
build --tls_client_certificate=tourmaline-client.crt | ||
build --tls_client_key=tourmaline-client.key | ||
|
||
# Remote build execution | ||
# Generic remote build execution | ||
build:rbe --extra_execution_platforms=//platforms:x86_64_linux_remote | ||
build:rbe --genrule_strategy=remote | ||
build:rbe --host_platform=//platforms:x86_64_linux_remote | ||
build:rbe --jobs=32 | ||
build:rbe --remote_executor=grpcs://tourmaline.cluster.engflow.com | ||
|
||
# EngFlow remote cache | ||
build:engflow --bes_backend=grpcs://tourmaline.cluster.engflow.com | ||
build:engflow --bes_results_url=https://tourmaline.cluster.engflow.com/invocation/ | ||
build:engflow --remote_cache=grpcs://tourmaline.cluster.engflow.com | ||
|
||
# EngFlow remote build execution | ||
build:engflow_rbe --remote_executor=grpcs://tourmaline.cluster.engflow.com | ||
|
||
# BuildBuddy remote cache | ||
build:buildbuddy --bes_backend=grpcs://remote.buildbuddy.io | ||
build:buildbuddy --bes_results_url=https://app.buildbuddy.io/invocation/ | ||
build:buildbuddy --remote_cache=grpcs://remote.buildbuddy.io | ||
|
||
# BuildBuddy remote build execution | ||
build:buildbuddy_rbe --remote_executor=grpcs://remote.buildbuddy.io |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -o errexit -o nounset -o pipefail | ||
|
||
readonly GIT_ROOT=$(git rev-parse --show-toplevel) | ||
cd "${GIT_ROOT}" | ||
|
||
cp ".github/workflows/.bazelrc.ci" ".bazelrc.user" | ||
|
||
bazel test \ | ||
--remote_header=x-buildbuddy-api-key="${BUILDBUDDY_API_KEY}" \ | ||
"$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -o errexit -o nounset -o pipefail | ||
|
||
readonly GIT_ROOT=$(git rev-parse --show-toplevel) | ||
cd "${GIT_ROOT}" | ||
|
||
cp ".github/workflows/.bazelrc.ci" ".bazelrc.user" | ||
|
||
readonly crt_file="engflow.crt" | ||
readonly key_file="engflow.key" | ||
touch "${crt_file}" | ||
touch "${key_file}" | ||
chmod 0600 "${crt_file}" | ||
chmod 0600 "${key_file}" | ||
echo "${ENGFLOW_CLIENT_CRT}" > "${crt_file}" | ||
echo "${ENGFLOW_PRIVATE_KEY}" > "${key_file}" | ||
|
||
function on_exit { | ||
rm -f "${crt_file}" | ||
rm -f "${key_file}" | ||
} | ||
|
||
trap on_exit EXIT | ||
|
||
bazel test \ | ||
--tls_client_certificate="${crt_file}" \ | ||
--tls_client_key="${key_file}" \ | ||
"$@" |