From 964ef1c6e7737d4ff9a67398069635a9c63aa23a Mon Sep 17 00:00:00 2001 From: Ashley Coleman Date: Fri, 6 Sep 2024 11:33:53 -0600 Subject: [PATCH] rsc: Failing jobs shouldn't be cached --- share/wake/lib/system/remote_cache_runner.wake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/share/wake/lib/system/remote_cache_runner.wake b/share/wake/lib/system/remote_cache_runner.wake index e65e5fd44..001febcdf 100644 --- a/share/wake/lib/system/remote_cache_runner.wake +++ b/share/wake/lib/system/remote_cache_runner.wake @@ -43,6 +43,10 @@ export def mkRemoteCacheRunner (rscApi: RemoteCacheApi) (hashFn: Result RunnerIn # Run the job to get the results require Pass output = baseDoIt job (Pass input) + # Don't cache failing jobs + require True = output.getRunnerOutputUsage.getUsageStatus == 0 + else Pass output + # If pushing to the cache is not enabled don't bother require True = rscApi.getRemoteCacheApiCanPush else Pass output