From c5a61a6f9952d34905ac2002fb35ef96ae68d884 Mon Sep 17 00:00:00 2001 From: David McMahon Date: Thu, 13 Oct 2016 12:07:45 -0700 Subject: [PATCH] Increase job cache limit to 300 and leave a TODO. --- hack/jenkins/upload-to-gcs.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hack/jenkins/upload-to-gcs.sh b/hack/jenkins/upload-to-gcs.sh index ab7df7666be..427e6e0e3a2 100755 --- a/hack/jenkins/upload-to-gcs.sh +++ b/hack/jenkins/upload-to-gcs.sh @@ -188,7 +188,11 @@ function update_job_result_cache() { local -r version=$(find_version) local -r job_results=${gcs_job_path}/jobResultsCache.json local -r tmp_results="${WORKSPACE}/_tmp/jobResultsCache.tmp" - local -r cache_size=200 + # TODO: This constraint is insufficient. The boundary for secondary + # job cache should be date based on the last primary build. + # The issue is we are trying to find a matched green set of results + # at a given hash, but all of the jobs run at wildly different lengths. + local -r cache_size=300 local upload_attempt if [[ -n "${version}" ]]; then