Debug cache extract
parent
bc58fb2ef4
commit
1785f41484
|
|
@ -615,17 +615,17 @@ 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(process.cwd(), path_1.default.basename(destinationFolder));
|
||||
const fullDestination = path_1.default.join(process.cwd(), path_1.default.basename(destinationFolder), `results`);
|
||||
if (__1.Input.cloudRunnerTests) {
|
||||
yield cloud_runner_system_1.CloudRunnerSystem.Run(`tree ${cacheFolder}`);
|
||||
}
|
||||
yield extract_zip_1.default(`${cacheSelection}.zip`, { dir: `results` });
|
||||
yield extract_zip_1.default(`${cacheSelection}.zip`, { dir: fullDestination });
|
||||
if (__1.Input.cloudRunnerTests) {
|
||||
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)}`);
|
||||
yield cloud_runner_system_1.CloudRunnerSystem.Run(`mv "results" "${destinationFolder}"`);
|
||||
yield cloud_runner_system_1.CloudRunnerSystem.Run(`mv "${fullDestination}" "${destinationFolder}"`);
|
||||
}
|
||||
else {
|
||||
remote_client_logger_1.RemoteClientLogger.logWarning(`cache item ${cacheKey} doesn't exist ${destinationFolder}`);
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -100,17 +100,17 @@ export class Caching {
|
|||
RemoteClientLogger.log(`cache item exists ${cacheFolder}/${cacheSelection}.zip`);
|
||||
assert(`${fs.existsSync(destinationFolder)}`);
|
||||
assert(`${fs.existsSync(`${cacheSelection}.zip`)}`);
|
||||
const fullDestination = path.join(process.cwd(), path.basename(destinationFolder));
|
||||
const fullDestination = path.join(process.cwd(), path.basename(destinationFolder), `results`);
|
||||
if (Input.cloudRunnerTests) {
|
||||
await CloudRunnerSystem.Run(`tree ${cacheFolder}`);
|
||||
}
|
||||
await extract(`${cacheSelection}.zip`, { dir: `results` });
|
||||
await extract(`${cacheSelection}.zip`, { dir: fullDestination });
|
||||
if (Input.cloudRunnerTests) {
|
||||
await CloudRunnerSystem.Run(`tree ${fullDestination}`);
|
||||
}
|
||||
RemoteClientLogger.log(`cache item extracted to ${fullDestination}`);
|
||||
assert(`${fs.existsSync(fullDestination)}`);
|
||||
await CloudRunnerSystem.Run(`mv "results" "${destinationFolder}"`);
|
||||
await CloudRunnerSystem.Run(`mv "${fullDestination}" "${destinationFolder}"`);
|
||||
} else {
|
||||
RemoteClientLogger.logWarning(`cache item ${cacheKey} doesn't exist ${destinationFolder}`);
|
||||
if (cacheSelection !== ``) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue