Debug cache extract
parent
63cd4eda3d
commit
dfc4001434
|
|
@ -614,13 +614,13 @@ class Caching {
|
|||
remote_client_logger_1.RemoteClientLogger.log(`cache item exists ${cacheFolder}/${cacheSelection}.zip`);
|
||||
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));
|
||||
const fullDestination = path_1.default.join(process.cwd(), path_1.default.basename(destinationFolder));
|
||||
if (__1.Input.cloudRunnerTests) {
|
||||
yield cloud_runner_system_1.CloudRunnerSystem.Run(`tree ${cacheFolder}`);
|
||||
}
|
||||
yield extract_zip_1.default(`${cacheSelection}.zip`, { dir: 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 cloud_runner_system_1.CloudRunnerSystem.Run(`tree ${fullDestination}`);
|
||||
}
|
||||
remote_client_logger_1.RemoteClientLogger.log(`cache item extracted to ${fullDestination}`);
|
||||
console_1.assert(`${fs_1.default.existsSync(fullDestination)}`);
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -99,13 +99,13 @@ export class Caching {
|
|||
RemoteClientLogger.log(`cache item exists ${cacheFolder}/${cacheSelection}.zip`);
|
||||
assert(`${fs.existsSync(destinationFolder)}`);
|
||||
assert(`${fs.existsSync(`${cacheSelection}.zip`)}`);
|
||||
const fullDestination = path.join(cacheFolder, path.basename(destinationFolder));
|
||||
const fullDestination = path.join(process.cwd(), path.basename(destinationFolder));
|
||||
if (Input.cloudRunnerTests) {
|
||||
await CloudRunnerSystem.Run(`tree ${cacheFolder}`);
|
||||
}
|
||||
await extract(`${cacheSelection}.zip`, { dir: path.basename(destinationFolder) });
|
||||
await extract(`${cacheSelection}.zip`, { dir: fullDestination });
|
||||
if (Input.cloudRunnerTests) {
|
||||
await CloudRunnerSystem.Run(`tree ${cacheFolder}`);
|
||||
await CloudRunnerSystem.Run(`tree ${fullDestination}`);
|
||||
}
|
||||
RemoteClientLogger.log(`cache item extracted to ${fullDestination}`);
|
||||
assert(`${fs.existsSync(fullDestination)}`);
|
||||
|
|
|
|||
Loading…
Reference in New Issue