Skip to content

Commit f49cbca

Browse files
authored
Reenable remote build caching (#114)
## What is the goal of this PR? Speed up builds by utilizing remote caching provided by BuildBuddy. ## What are the changes implemented in this PR? Reenable build caching (without remote execution) on all CI jobs
1 parent c3b95a4 commit f49cbca

File tree

2 files changed

+10
-13
lines changed

2 files changed

+10
-13
lines changed

.bazelrc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,8 @@ test --incompatible_strict_action_env
2222
# what is defined in this section will be applied when bazel is invoked like this: bazel ... --config=rbe ...
2323
build:rbe --project_id=grakn-dev
2424
build:rbe --remote_cache=cloud.buildbuddy.io
25-
build:rbe --remote_executor=cloud.buildbuddy.io
2625
build:rbe --bes_backend=cloud.buildbuddy.io
2726
build:rbe --bes_results_url=https://app.buildbuddy.io/invocation/
2827
build:rbe --tls_client_certificate=/opt/credentials/buildbuddy-cert.pem
2928
build:rbe --tls_client_key=/opt/credentials/buildbuddy-key.pem
30-
build:rbe --host_platform=@graknlabs_dependencies//image/buildbuddy:ubuntu-2004
31-
build:rbe --jobs=50
3229
build:rbe --remote_timeout=3600

.grabl/automation.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ build:
3434
image: graknlabs-ubuntu-20.04
3535
#NPM packages can't be built under RBE
3636
command: |
37-
bazel build //...
38-
bazel run @graknlabs_dependencies//tool/checkstyle:test-coverage
39-
bazel test $(bazel query 'kind(checkstyle_test, //...)') --test_output=errors
37+
bazel build --config=rbe //...
38+
bazel run --config=rbe @graknlabs_dependencies//tool/checkstyle:test-coverage
39+
bazel test --config=rbe $(bazel query 'kind(checkstyle_test, //...)') --test_output=errors
4040
build-dependency:
4141
image: graknlabs-ubuntu-20.04
4242
command: |
4343
dependencies/maven/update.sh
4444
git diff --exit-code dependencies/maven/artifacts.snapshot
45-
bazel run @graknlabs_dependencies//tool/unuseddeps:unused-deps -- list
45+
bazel run --config=rbe @graknlabs_dependencies//tool/unuseddeps:unused-deps -- list
4646
deploy-maven-snapshot:
4747
filter:
4848
owner: graknlabs
@@ -52,7 +52,7 @@ build:
5252
command: |
5353
export DEPLOY_MAVEN_USERNAME=$REPO_GRAKN_USERNAME
5454
export DEPLOY_MAVEN_PASSWORD=$REPO_GRAKN_PASSWORD
55-
bazel run --define version=$(git rev-parse HEAD) //grpc/java:deploy-maven -- snapshot
55+
bazel run --config=rbe --define version=$(git rev-parse HEAD) //grpc/java:deploy-maven -- snapshot
5656
deploy-npm-snapshot:
5757
filter:
5858
owner: graknlabs
@@ -66,7 +66,7 @@ build:
6666
export DEPLOY_NPM_USERNAME=$REPO_GRAKN_USERNAME
6767
export DEPLOY_NPM_PASSWORD=$REPO_GRAKN_PASSWORD
6868
export DEPLOY_NPM_EMAIL=$REPO_GRAKN_EMAIL
69-
bazel run --define version=$(git rev-parse HEAD) //grpc/nodejs:deploy-npm -- snapshot
69+
bazel run --config=rbe --define version=$(git rev-parse HEAD) //grpc/nodejs:deploy-npm -- snapshot
7070
dependencies: [build, build-dependency]
7171
deploy-pip-snapshot:
7272
filter:
@@ -95,13 +95,13 @@ release:
9595
export RELEASE_NOTES_TOKEN=$REPO_GITHUB_TOKEN
9696
bazel run @graknlabs_dependencies//tool/release:create-notes -- protocol $(cat VERSION) ./RELEASE_TEMPLATE.md
9797
export DEPLOY_GITHUB_TOKEN=$REPO_GITHUB_TOKEN
98-
bazel run --define version=$(cat VERSION) //:deploy-github -- $GRABL_COMMIT
98+
bazel run --config=rbe --define version=$(cat VERSION) //:deploy-github -- $GRABL_COMMIT
9999
deploy-maven-release:
100100
image: graknlabs-ubuntu-20.04
101101
command: |
102102
export DEPLOY_MAVEN_USERNAME=$REPO_GRAKN_USERNAME
103103
export DEPLOY_MAVEN_PASSWORD=$REPO_GRAKN_PASSWORD
104-
bazel run --define version=$(cat VERSION) //grpc/java:deploy-maven -- release
104+
bazel run --config=rbe --define version=$(cat VERSION) //grpc/java:deploy-maven -- release
105105
dependencies: [deploy-github]
106106
deploy-npm-release:
107107
image: graknlabs-ubuntu-20.04
@@ -113,7 +113,7 @@ release:
113113
export DEPLOY_NPM_USERNAME=$REPO_NPM_USERNAME
114114
export DEPLOY_NPM_PASSWORD=$REPO_NPM_PASSWORD
115115
export DEPLOY_NPM_EMAIL=$REPO_GRAKN_EMAIL
116-
bazel run --define version=$(cat VERSION) //grpc/nodejs:deploy-npm -- release
116+
bazel run --config=rbe --define version=$(cat VERSION) //grpc/nodejs:deploy-npm -- release
117117
dependencies: [deploy-github]
118118
deploy-pip-release:
119119
image: graknlabs-ubuntu-20.04
@@ -124,5 +124,5 @@ release:
124124
sudo ln -s /usr/share/pyshared/lsb_release.py /opt/pyenv/versions/3.6.10/lib/python3.6/site-packages/lsb_release.py
125125
export DEPLOY_PIP_USERNAME=$REPO_PYPI_USERNAME
126126
export DEPLOY_PIP_PASSWORD=$REPO_PYPI_PASSWORD
127-
bazel run --define version=$(cat VERSION) //grpc/python:deploy-pip -- release
127+
bazel run --config=rbe --define version=$(cat VERSION) //grpc/python:deploy-pip -- release
128128
dependencies: [deploy-github]

0 commit comments

Comments
 (0)