Debug cache extract

pull/310/head
Frostebite 2022-01-16 22:30:53 +00:00
parent b5ee9aca76
commit f2ef0b73c9
3 changed files with 3 additions and 5 deletions

2
dist/index.js vendored
View File

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

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

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