Merge pull request #34749 from david-mcmahon/cache-fix

Automatic merge from submit-queue

Increase job cache limit to 300 and leave a TODO.
This commit is contained in:
Kubernetes Submit Queue 2016-10-13 19:08:01 -07:00 committed by GitHub
commit ff06372a11

View File

@ -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