From cb631360e96782842e464f136753e1bb386af007 Mon Sep 17 00:00:00 2001 From: Preston Van Loon Date: Mon, 20 Sep 2021 13:29:41 -0400 Subject: [PATCH] CI: nostamp config for better cache hits (#9633) --- .buildkite-bazelrc | 4 ++++ hack/workspace_status_ci.sh | 9 +++++++++ 2 files changed, 13 insertions(+) create mode 100755 hack/workspace_status_ci.sh diff --git a/.buildkite-bazelrc b/.buildkite-bazelrc index c7e45fe27..eca539e9e 100644 --- a/.buildkite-bazelrc +++ b/.buildkite-bazelrc @@ -43,3 +43,7 @@ build --flaky_test_attempts=5 # Disable flaky test detection for fuzzing. test:fuzz --flaky_test_attempts=1 + +# Better caching +build:nostamp --nostamp +build:nostamp --workspace_status_command=./hack/workspace_status_ci.sh \ No newline at end of file diff --git a/hack/workspace_status_ci.sh b/hack/workspace_status_ci.sh new file mode 100755 index 000000000..79d6029d2 --- /dev/null +++ b/hack/workspace_status_ci.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +# Note: The STABLE_ prefix will force a relink when the value changes when using rules_go x_defs. + +echo STABLE_GIT_COMMIT "continuous-integration" +echo DATE "now" +echo DATE_UNIX "0" +echo DOCKER_TAG "ci-foo" +echo STABLE_GIT_TAG "c1000deadbeef"