Logging improvement
parent
d8bc46505e
commit
95a72c6851
|
|
@ -493,7 +493,7 @@ class Caching {
|
||||||
if (fs_1.default.existsSync(cacheSelection)) {
|
if (fs_1.default.existsSync(cacheSelection)) {
|
||||||
yield cloud_runner_agent_system_1.CloudRunnerAgentSystem.Run(`tree ${destinationFolder}`);
|
yield cloud_runner_agent_system_1.CloudRunnerAgentSystem.Run(`tree ${destinationFolder}`);
|
||||||
cloud_runner_logger_1.default.logCli(`cache item exists`);
|
cloud_runner_logger_1.default.logCli(`cache item exists`);
|
||||||
yield cloud_runner_agent_system_1.CloudRunnerAgentSystem.Run(`unzip "${cacheSelection}" -d "${destinationFolder}"`);
|
yield cloud_runner_agent_system_1.CloudRunnerAgentSystem.Run(`unzip "${cacheSelection}" -d "${destinationFolder}/.."`);
|
||||||
console_1.assert(fs_1.default.existsSync(destinationFolder));
|
console_1.assert(fs_1.default.existsSync(destinationFolder));
|
||||||
yield cloud_runner_agent_system_1.CloudRunnerAgentSystem.Run(`tree ${destinationFolder}`);
|
yield cloud_runner_agent_system_1.CloudRunnerAgentSystem.Run(`tree ${destinationFolder}`);
|
||||||
}
|
}
|
||||||
|
|
@ -635,7 +635,7 @@ class CloudRunnerRepositorySetup {
|
||||||
yield lfs_hashing_1.LFSHashing.printLFSHashState();
|
yield lfs_hashing_1.LFSHashing.printLFSHashState();
|
||||||
cloud_runner_logger_1.default.logCli(`Library Caching`);
|
cloud_runner_logger_1.default.logCli(`Library Caching`);
|
||||||
console_1.assert(!fs_1.default.existsSync(cloud_runner_state_1.CloudRunnerState.libraryFolderFull), `!Warning!: The Unity library was included in the git repository`);
|
console_1.assert(!fs_1.default.existsSync(cloud_runner_state_1.CloudRunnerState.libraryFolderFull), `!Warning!: The Unity library was included in the git repository`);
|
||||||
yield caching_1.Caching.PullFromCache(cloud_runner_state_1.CloudRunnerState.libraryCacheFolder, cloud_runner_state_1.CloudRunnerState.projectPathFull);
|
yield caching_1.Caching.PullFromCache(cloud_runner_state_1.CloudRunnerState.libraryCacheFolder, cloud_runner_state_1.CloudRunnerState.libraryFolderFull);
|
||||||
cloud_runner_logger_1.default.logCli(`LFS Caching`);
|
cloud_runner_logger_1.default.logCli(`LFS Caching`);
|
||||||
yield caching_1.Caching.PullFromCache(cloud_runner_state_1.CloudRunnerState.lfsCacheFolder, cloud_runner_state_1.CloudRunnerState.lfsDirectory, `${CloudRunnerRepositorySetup.LFS_ASSETS_HASH}.zip`);
|
yield caching_1.Caching.PullFromCache(cloud_runner_state_1.CloudRunnerState.lfsCacheFolder, cloud_runner_state_1.CloudRunnerState.lfsDirectory, `${CloudRunnerRepositorySetup.LFS_ASSETS_HASH}.zip`);
|
||||||
yield caching_1.Caching.printCacheState(cloud_runner_state_1.CloudRunnerState.lfsCacheFolder, cloud_runner_state_1.CloudRunnerState.libraryCacheFolder);
|
yield caching_1.Caching.printCacheState(cloud_runner_state_1.CloudRunnerState.lfsCacheFolder, cloud_runner_state_1.CloudRunnerState.libraryCacheFolder);
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -44,7 +44,7 @@ export class Caching {
|
||||||
if (fs.existsSync(cacheSelection)) {
|
if (fs.existsSync(cacheSelection)) {
|
||||||
await CloudRunnerAgentSystem.Run(`tree ${destinationFolder}`);
|
await CloudRunnerAgentSystem.Run(`tree ${destinationFolder}`);
|
||||||
CloudRunnerLogger.logCli(`cache item exists`);
|
CloudRunnerLogger.logCli(`cache item exists`);
|
||||||
await CloudRunnerAgentSystem.Run(`unzip "${cacheSelection}" -d "${destinationFolder}"`);
|
await CloudRunnerAgentSystem.Run(`unzip "${cacheSelection}" -d "${destinationFolder}/.."`);
|
||||||
assert(fs.existsSync(destinationFolder));
|
assert(fs.existsSync(destinationFolder));
|
||||||
await CloudRunnerAgentSystem.Run(`tree ${destinationFolder}`);
|
await CloudRunnerAgentSystem.Run(`tree ${destinationFolder}`);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ export class CloudRunnerRepositorySetup {
|
||||||
!fs.existsSync(CloudRunnerState.libraryFolderFull),
|
!fs.existsSync(CloudRunnerState.libraryFolderFull),
|
||||||
`!Warning!: The Unity library was included in the git repository`,
|
`!Warning!: The Unity library was included in the git repository`,
|
||||||
);
|
);
|
||||||
await Caching.PullFromCache(CloudRunnerState.libraryCacheFolder, CloudRunnerState.projectPathFull);
|
await Caching.PullFromCache(CloudRunnerState.libraryCacheFolder, CloudRunnerState.libraryFolderFull);
|
||||||
CloudRunnerLogger.logCli(`LFS Caching`);
|
CloudRunnerLogger.logCli(`LFS Caching`);
|
||||||
await Caching.PullFromCache(
|
await Caching.PullFromCache(
|
||||||
CloudRunnerState.lfsCacheFolder,
|
CloudRunnerState.lfsCacheFolder,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue