TRAP Caching: Skip uploading of small caches

This commit is contained in:
Edoardo Pirovano 2022-09-23 11:51:06 +01:00
parent a643eb3621
commit b98b2def63
No known key found for this signature in database
GPG key ID: 047556B5D93FFE28
9 changed files with 88 additions and 35 deletions

View file

@ -164,6 +164,7 @@ function getTestConfigWithTempDir(tmpDir) {
const loggedMessages = [];
const logger = (0, testing_utils_1.getRecordingLogger)(loggedMessages);
sinon.stub(actionsUtil, "isAnalyzingDefaultBranch").resolves(true);
sinon.stub(util, "tryGetFolderBytes").resolves(999999999);
const stubSave = sinon.stub(cache, "saveCache");
process.env.GITHUB_SHA = "somesha";
await (0, trap_caching_1.uploadTrapCaches)(stubCodeql, testConfigWithoutTmpDir, logger);