Use lfs guid sum
							parent
							
								
									2247a37a2c
								
							
						
					
					
						commit
						035e59e774
					
				|  | @ -788,8 +788,6 @@ const cloud_runner_state_1 = __nccwpck_require__(70912); | ||||||
| const cloud_runner_system_1 = __nccwpck_require__(66879); | const cloud_runner_system_1 = __nccwpck_require__(66879); | ||||||
| const fs_1 = __importDefault(__nccwpck_require__(57147)); | const fs_1 = __importDefault(__nccwpck_require__(57147)); | ||||||
| const console_1 = __nccwpck_require__(96206); | const console_1 = __nccwpck_require__(96206); | ||||||
| const __1 = __nccwpck_require__(41359); |  | ||||||
| const remote_client_logger_1 = __nccwpck_require__(28082); |  | ||||||
| class LFSHashing { | class LFSHashing { | ||||||
|     static createLFSHashFiles() { |     static createLFSHashFiles() { | ||||||
|         return __awaiter(this, void 0, void 0, function* () { |         return __awaiter(this, void 0, void 0, function* () { | ||||||
|  | @ -806,10 +804,6 @@ class LFSHashing { | ||||||
|                         .readFileSync(`${path_1.default.join(cloud_runner_state_1.CloudRunnerState.repoPathFull, `.lfs-assets-guid-sum`)}`, 'utf8') |                         .readFileSync(`${path_1.default.join(cloud_runner_state_1.CloudRunnerState.repoPathFull, `.lfs-assets-guid-sum`)}`, 'utf8') | ||||||
|                         .replace(/\n/g, ``), |                         .replace(/\n/g, ``), | ||||||
|                 }; |                 }; | ||||||
|                 if (__1.Input.cloudRunnerTests) { |  | ||||||
|                     remote_client_logger_1.RemoteClientLogger.log(lfsHashes.lfsGuid); |  | ||||||
|                     remote_client_logger_1.RemoteClientLogger.log(lfsHashes.lfsGuidSum); |  | ||||||
|                 } |  | ||||||
|                 return lfsHashes; |                 return lfsHashes; | ||||||
|             } |             } | ||||||
|             catch (error) { |             catch (error) { | ||||||
|  | @ -905,9 +899,9 @@ class SetupCloudRunnerRepository { | ||||||
|                 if (fs_1.default.existsSync(cloud_runner_state_1.CloudRunnerState.libraryFolderFull)) { |                 if (fs_1.default.existsSync(cloud_runner_state_1.CloudRunnerState.libraryFolderFull)) { | ||||||
|                     remote_client_logger_1.RemoteClientLogger.logWarning(`!Warning!: The Unity library was included in the git repository`); |                     remote_client_logger_1.RemoteClientLogger.logWarning(`!Warning!: The Unity library was included in the git repository`); | ||||||
|                 } |                 } | ||||||
|                 yield caching_1.Caching.PullFromCache(cloud_runner_state_1.CloudRunnerState.lfsCacheFolderFull, cloud_runner_state_1.CloudRunnerState.lfsDirectoryFull, `${lfsHashes.lfsGuid}`); |                 yield caching_1.Caching.PullFromCache(cloud_runner_state_1.CloudRunnerState.lfsCacheFolderFull, cloud_runner_state_1.CloudRunnerState.lfsDirectoryFull, `${lfsHashes.lfsGuidSum}`); | ||||||
|                 yield SetupCloudRunnerRepository.pullLatestLFS(); |                 yield SetupCloudRunnerRepository.pullLatestLFS(); | ||||||
|                 yield caching_1.Caching.PushToCache(cloud_runner_state_1.CloudRunnerState.lfsCacheFolderFull, cloud_runner_state_1.CloudRunnerState.lfsDirectoryFull, `${lfsHashes.lfsGuid}`); |                 yield caching_1.Caching.PushToCache(cloud_runner_state_1.CloudRunnerState.lfsCacheFolderFull, cloud_runner_state_1.CloudRunnerState.lfsDirectoryFull, `${lfsHashes.lfsGuidSum}`); | ||||||
|                 yield caching_1.Caching.PullFromCache(cloud_runner_state_1.CloudRunnerState.libraryCacheFolderFull, cloud_runner_state_1.CloudRunnerState.libraryFolderFull); |                 yield caching_1.Caching.PullFromCache(cloud_runner_state_1.CloudRunnerState.libraryCacheFolderFull, cloud_runner_state_1.CloudRunnerState.libraryFolderFull); | ||||||
|                 caching_1.Caching.handleCachePurging(); |                 caching_1.Caching.handleCachePurging(); | ||||||
|             } |             } | ||||||
|  |  | ||||||
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							|  | @ -3,8 +3,6 @@ import { CloudRunnerState } from '../../../cloud-runner/state/cloud-runner-state | ||||||
| import { CloudRunnerSystem } from './cloud-runner-system'; | import { CloudRunnerSystem } from './cloud-runner-system'; | ||||||
| import fs from 'fs'; | import fs from 'fs'; | ||||||
| import { assert } from 'console'; | import { assert } from 'console'; | ||||||
| import { Input } from '../../..'; |  | ||||||
| import { RemoteClientLogger } from './remote-client-logger'; |  | ||||||
| 
 | 
 | ||||||
| export class LFSHashing { | export class LFSHashing { | ||||||
|   public static async createLFSHashFiles() { |   public static async createLFSHashFiles() { | ||||||
|  | @ -21,10 +19,6 @@ export class LFSHashing { | ||||||
|           .readFileSync(`${path.join(CloudRunnerState.repoPathFull, `.lfs-assets-guid-sum`)}`, 'utf8') |           .readFileSync(`${path.join(CloudRunnerState.repoPathFull, `.lfs-assets-guid-sum`)}`, 'utf8') | ||||||
|           .replace(/\n/g, ``), |           .replace(/\n/g, ``), | ||||||
|       }; |       }; | ||||||
|       if (Input.cloudRunnerTests) { |  | ||||||
|         RemoteClientLogger.log(lfsHashes.lfsGuid); |  | ||||||
|         RemoteClientLogger.log(lfsHashes.lfsGuidSum); |  | ||||||
|       } |  | ||||||
|       return lfsHashes; |       return lfsHashes; | ||||||
|     } catch (error) { |     } catch (error) { | ||||||
|       throw error; |       throw error; | ||||||
|  |  | ||||||
|  | @ -24,13 +24,13 @@ export class SetupCloudRunnerRepository { | ||||||
|       await Caching.PullFromCache( |       await Caching.PullFromCache( | ||||||
|         CloudRunnerState.lfsCacheFolderFull, |         CloudRunnerState.lfsCacheFolderFull, | ||||||
|         CloudRunnerState.lfsDirectoryFull, |         CloudRunnerState.lfsDirectoryFull, | ||||||
|         `${lfsHashes.lfsGuid}`, |         `${lfsHashes.lfsGuidSum}`, | ||||||
|       ); |       ); | ||||||
|       await SetupCloudRunnerRepository.pullLatestLFS(); |       await SetupCloudRunnerRepository.pullLatestLFS(); | ||||||
|       await Caching.PushToCache( |       await Caching.PushToCache( | ||||||
|         CloudRunnerState.lfsCacheFolderFull, |         CloudRunnerState.lfsCacheFolderFull, | ||||||
|         CloudRunnerState.lfsDirectoryFull, |         CloudRunnerState.lfsDirectoryFull, | ||||||
|         `${lfsHashes.lfsGuid}`, |         `${lfsHashes.lfsGuidSum}`, | ||||||
|       ); |       ); | ||||||
|       await Caching.PullFromCache(CloudRunnerState.libraryCacheFolderFull, CloudRunnerState.libraryFolderFull); |       await Caching.PullFromCache(CloudRunnerState.libraryCacheFolderFull, CloudRunnerState.libraryFolderFull); | ||||||
|       Caching.handleCachePurging(); |       Caching.handleCachePurging(); | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue