Debug cache extract

pull/310/head
Frostebite 2022-01-13 00:02:57 +00:00
parent d5daf5a6ce
commit 9f297d32e5
3 changed files with 15 additions and 3 deletions

8
dist/index.js vendored
View File

@ -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}"`);

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -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}"`);