fixing cache folder
parent
d6799e3dac
commit
b5277d47f0
|
|
@ -545,14 +545,15 @@ class Caching {
|
|||
if (__1.Input.cloudRunnerTests) {
|
||||
yield Caching.printFullCacheHierarchySize();
|
||||
}
|
||||
process.chdir(path_1.default.join(sourceFolder, `/`, `..`));
|
||||
process.chdir(path_1.default.join(sourceFolder));
|
||||
process.chdir(`..`);
|
||||
if (__1.Input.cloudRunnerTests) {
|
||||
cloud_runner_logger_1.default.log(`Hashed cache folder ${yield lfs_hashing_1.LFSHashing.hashAllFiles(sourceFolder)}`);
|
||||
cloud_runner_logger_1.default.log(`Hashed cache folder ${yield lfs_hashing_1.LFSHashing.hashAllFiles(sourceFolder)} ${sourceFolder}`);
|
||||
}
|
||||
console_1.assert(fs_1.default.existsSync(`${path_1.default.basename(sourceFolder)}`));
|
||||
if (__1.Input.cloudRunnerTests) {
|
||||
yield cloud_runner_system_1.CloudRunnerSystem.Run(`ls`);
|
||||
}
|
||||
console_1.assert(fs_1.default.existsSync(`${path_1.default.basename(sourceFolder)}`));
|
||||
yield cloud_runner_system_1.CloudRunnerSystem.Run(`zip${__1.Input.cloudRunnerTests ? '' : ' -q'} -r ${cacheKey}.zip ${path_1.default.basename(sourceFolder)}`);
|
||||
console_1.assert(fs_1.default.existsSync(`${cacheKey}.zip`));
|
||||
console_1.assert(fs_1.default.existsSync(`${cacheFolder}`));
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -18,16 +18,17 @@ export class Caching {
|
|||
if (Input.cloudRunnerTests) {
|
||||
await Caching.printFullCacheHierarchySize();
|
||||
}
|
||||
process.chdir(path.join(sourceFolder, `/`, `..`));
|
||||
process.chdir(path.join(sourceFolder));
|
||||
process.chdir(`..`);
|
||||
|
||||
if (Input.cloudRunnerTests) {
|
||||
CloudRunnerLogger.log(`Hashed cache folder ${await LFSHashing.hashAllFiles(sourceFolder)}`);
|
||||
CloudRunnerLogger.log(`Hashed cache folder ${await LFSHashing.hashAllFiles(sourceFolder)} ${sourceFolder}`);
|
||||
}
|
||||
assert(fs.existsSync(`${path.basename(sourceFolder)}`));
|
||||
|
||||
if (Input.cloudRunnerTests) {
|
||||
await CloudRunnerSystem.Run(`ls`);
|
||||
}
|
||||
assert(fs.existsSync(`${path.basename(sourceFolder)}`));
|
||||
|
||||
await CloudRunnerSystem.Run(
|
||||
`zip${Input.cloudRunnerTests ? '' : ' -q'} -r ${cacheKey}.zip ${path.basename(sourceFolder)}`,
|
||||
|
|
|
|||
Loading…
Reference in New Issue