Cache: Increasing client validation to 10GB (#934)

* increasing client validation limit in cache package to 10gb
This commit is contained in:
Aparna Ravindra authored and GitHub committed 2021-11-19 16:34:33 +05:30
1 parent c7d3c67e59
commit 98e6cf8881
6 files changed
+10 -7

No files matched your search

+2 -2
View File
@@ -172,14 +172,14 @@ export async function saveCache(
await listTar(archivePath, compressionMethod)
}
const fileSizeLimit = 5 * 1024 * 1024 * 1024 // 5GB per repo limit
const fileSizeLimit = 10 * 1024 * 1024 * 1024 // 10GB per repo limit
const archiveFileSize = utils.getArchiveFileSizeInBytes(archivePath)
core.debug(`File Size: ${archiveFileSize}`)
if (archiveFileSize > fileSizeLimit) {
throw new Error(
`Cache size of ~${Math.round(
archiveFileSize / (1024 * 1024)
)} MB (${archiveFileSize} B) is over the 5GB limit, not saving cache.`
)} MB (${archiveFileSize} B) is over the 10GB limit, not saving cache.`
)
}