Debug cache extract
parent
b5ee9aca76
commit
f2ef0b73c9
|
|
@ -632,7 +632,7 @@ class Caching {
|
||||||
if (__1.Input.cloudRunnerTests) {
|
if (__1.Input.cloudRunnerTests) {
|
||||||
yield cloud_runner_system_1.CloudRunnerSystem.Run(`tree ${cacheFolder}`);
|
yield cloud_runner_system_1.CloudRunnerSystem.Run(`tree ${cacheFolder}`);
|
||||||
}
|
}
|
||||||
fs_1.default.createReadStream(`${path_1.default.join(resultsDirectory, cacheSelection)}.zip`).pipe(unzipper_1.default.Extract({ path: resultsDirectory }));
|
fs_1.default.createReadStream(`${cacheSelection}.zip`).pipe(unzipper_1.default.Extract({ path: resultsDirectory }));
|
||||||
remote_client_logger_1.RemoteClientLogger.log(`cache item extracted to ${fullDestination}`);
|
remote_client_logger_1.RemoteClientLogger.log(`cache item extracted to ${fullDestination}`);
|
||||||
console_1.assert(`${fs_1.default.existsSync(fullDestination)}`);
|
console_1.assert(`${fs_1.default.existsSync(fullDestination)}`);
|
||||||
yield cloud_runner_system_1.CloudRunnerSystem.Run(`mv -v "${fullDestination}/*" "${destinationFolder}"`);
|
yield cloud_runner_system_1.CloudRunnerSystem.Run(`mv -v "${fullDestination}/*" "${destinationFolder}"`);
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -105,9 +105,7 @@ export class Caching {
|
||||||
if (Input.cloudRunnerTests) {
|
if (Input.cloudRunnerTests) {
|
||||||
await CloudRunnerSystem.Run(`tree ${cacheFolder}`);
|
await CloudRunnerSystem.Run(`tree ${cacheFolder}`);
|
||||||
}
|
}
|
||||||
fs.createReadStream(`${path.join(resultsDirectory, cacheSelection)}.zip`).pipe(
|
fs.createReadStream(`${cacheSelection}.zip`).pipe(unzipper.Extract({ path: resultsDirectory }));
|
||||||
unzipper.Extract({ path: resultsDirectory }),
|
|
||||||
);
|
|
||||||
RemoteClientLogger.log(`cache item extracted to ${fullDestination}`);
|
RemoteClientLogger.log(`cache item extracted to ${fullDestination}`);
|
||||||
assert(`${fs.existsSync(fullDestination)}`);
|
assert(`${fs.existsSync(fullDestination)}`);
|
||||||
await CloudRunnerSystem.Run(`mv -v "${fullDestination}/*" "${destinationFolder}"`);
|
await CloudRunnerSystem.Run(`mv -v "${fullDestination}/*" "${destinationFolder}"`);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue