Fix nested Library cache

pull/310/head
Frostebite 2022-01-11 21:24:45 +00:00
parent 93bd0d6012
commit 53b5ce55f4
4 changed files with 1 additions and 22 deletions

11
dist/index.js vendored
View File

@ -611,14 +611,6 @@ class Caching {
fs_1.default.rmdirSync(cloud_runner_state_1.CloudRunnerState.cacheFolder, { recursive: true });
}
}
static printFullCacheHierarchySize() {
return __awaiter(this, void 0, void 0, function* () {
yield cloud_runner_system_1.CloudRunnerSystem.Run(`du -sch "${cloud_runner_state_1.CloudRunnerState.lfsCacheFolderFull}/"`);
yield cloud_runner_system_1.CloudRunnerSystem.Run(`du -sch "${cloud_runner_state_1.CloudRunnerState.libraryCacheFolderFull}/"`);
yield cloud_runner_system_1.CloudRunnerSystem.Run(`du -sch "${cloud_runner_state_1.CloudRunnerState.cacheFolderFull}/"`);
yield cloud_runner_system_1.CloudRunnerSystem.Run(`du -sch "${cloud_runner_state_1.CloudRunnerState.cacheFolderFull}/../"`);
});
}
}
exports.Caching = Caching;
@ -860,9 +852,6 @@ class SetupCloudRunnerRepository {
remote_client_logger_1.RemoteClientLogger.log(`${cloud_runner_state_1.CloudRunnerState.buildParams.branch}`);
yield cloud_runner_system_1.CloudRunnerSystem.Run(`git checkout ${cloud_runner_state_1.CloudRunnerState.buildParams.branch}`);
remote_client_logger_1.RemoteClientLogger.log(`Checked out ${process.env.GITHUB_SHA}`);
if (__1.Input.cloudRunnerTests) {
yield caching_1.Caching.printFullCacheHierarchySize();
}
}
catch (error) {
throw error;

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -100,11 +100,4 @@ export class Caching {
fs.rmdirSync(CloudRunnerState.cacheFolder, { recursive: true });
}
}
public static async printFullCacheHierarchySize() {
await CloudRunnerSystem.Run(`du -sch "${CloudRunnerState.lfsCacheFolderFull}/"`);
await CloudRunnerSystem.Run(`du -sch "${CloudRunnerState.libraryCacheFolderFull}/"`);
await CloudRunnerSystem.Run(`du -sch "${CloudRunnerState.cacheFolderFull}/"`);
await CloudRunnerSystem.Run(`du -sch "${CloudRunnerState.cacheFolderFull}/../"`);
}
}

View File

@ -68,9 +68,6 @@ export class SetupCloudRunnerRepository {
RemoteClientLogger.log(`${CloudRunnerState.buildParams.branch}`);
await CloudRunnerSystem.Run(`git checkout ${CloudRunnerState.buildParams.branch}`);
RemoteClientLogger.log(`Checked out ${process.env.GITHUB_SHA}`);
if (Input.cloudRunnerTests) {
await Caching.printFullCacheHierarchySize();
}
} catch (error) {
throw error;
}