Skip to content

Commit

Permalink
Shut down bazel after cluster-sync in CI
Browse files Browse the repository at this point in the history
Save memory by shutting down bazel when it is no longer needed in CI.
  • Loading branch information
rmohr committed Mar 8, 2019
1 parent 0bd333b commit dffcb44
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions automation/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ build --remote_http_cache=http://bazel-cache.kubevirt-prow.svc.cluster.local:808
EOF

make cluster-sync
hack/dockerized bazel shutdown

# OpenShift is running important containers under default namespace
namespaces=(kubevirt default)
Expand Down
3 changes: 3 additions & 0 deletions hack/bazel-server.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
BAZEL_PID=$(bazel info | grep server_pid | cut -d " " -f 2)
while kill -0 $BAZEL_PID 2>/dev/null; do sleep 1; done
# Might not be necessary, just to be sure that exec shutdowns always succeed
# and are not killed by docker.
sleep 1

0 comments on commit dffcb44

Please sign in to comment.