forked from kubevirt/kubevirt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Shut down bazel after cluster-sync in CI
Save memory by shutting down bazel when it is no longer needed in CI.
- Loading branch information
Showing
2 changed files
with
4 additions
and
0 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
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,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 |