Debug cache extract
parent
d5daf5a6ce
commit
9f297d32e5
|
|
@ -615,7 +615,13 @@ class Caching {
|
|||
console_1.assert(`${fs_1.default.existsSync(destinationFolder)}`);
|
||||
console_1.assert(`${fs_1.default.existsSync(`${cacheSelection}.zip`)}`);
|
||||
const fullDestination = path_1.default.join(cacheFolder, path_1.default.basename(destinationFolder));
|
||||
yield extract_zip_1.default(`${cacheSelection}.zip`, { dir: fullDestination });
|
||||
if (__1.Input.cloudRunnerTests) {
|
||||
yield cloud_runner_system_1.CloudRunnerSystem.Run(`tree ${cacheFolder}`);
|
||||
}
|
||||
yield extract_zip_1.default(`${cacheSelection}.zip`, { dir: cacheFolder });
|
||||
if (__1.Input.cloudRunnerTests) {
|
||||
yield cloud_runner_system_1.CloudRunnerSystem.Run(`tree ${cacheFolder}`);
|
||||
}
|
||||
remote_client_logger_1.RemoteClientLogger.log(`cache item extracted to ${fullDestination}`);
|
||||
console_1.assert(`${fs_1.default.existsSync(fullDestination)}`);
|
||||
yield cloud_runner_system_1.CloudRunnerSystem.Run(`mv "${fullDestination}" "${destinationFolder}"`);
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -100,7 +100,13 @@ export class Caching {
|
|||
assert(`${fs.existsSync(destinationFolder)}`);
|
||||
assert(`${fs.existsSync(`${cacheSelection}.zip`)}`);
|
||||
const fullDestination = path.join(cacheFolder, path.basename(destinationFolder));
|
||||
await extract(`${cacheSelection}.zip`, { dir: fullDestination });
|
||||
if (Input.cloudRunnerTests) {
|
||||
await CloudRunnerSystem.Run(`tree ${cacheFolder}`);
|
||||
}
|
||||
await extract(`${cacheSelection}.zip`, { dir: cacheFolder });
|
||||
if (Input.cloudRunnerTests) {
|
||||
await CloudRunnerSystem.Run(`tree ${cacheFolder}`);
|
||||
}
|
||||
RemoteClientLogger.log(`cache item extracted to ${fullDestination}`);
|
||||
assert(`${fs.existsSync(fullDestination)}`);
|
||||
await CloudRunnerSystem.Run(`mv "${fullDestination}" "${destinationFolder}"`);
|
||||
|
|
|
|||
Loading…
Reference in New Issue