fix
parent
92950cf437
commit
feafcc8371
|
|
@ -524,8 +524,10 @@ const console_1 = __webpack_require__(57082);
|
|||
const fs_1 = __importDefault(__webpack_require__(35747));
|
||||
const path_1 = __importDefault(__webpack_require__(85622));
|
||||
const __1 = __webpack_require__(41359);
|
||||
const cloud_runner_logger_1 = __importDefault(__webpack_require__(22855));
|
||||
const cloud_runner_state_1 = __webpack_require__(70912);
|
||||
const cloud_runner_agent_system_1 = __webpack_require__(87685);
|
||||
const lfs_hashing_1 = __webpack_require__(47011);
|
||||
const remote_client_logger_1 = __webpack_require__(68972);
|
||||
class Caching {
|
||||
static PushToCache(cacheFolder, sourceFolder, cacheKey) {
|
||||
|
|
@ -536,6 +538,7 @@ class Caching {
|
|||
}
|
||||
process.chdir(`${sourceFolder}/..`);
|
||||
if (__1.Input.cloudRunnerTests) {
|
||||
cloud_runner_logger_1.default.log(yield lfs_hashing_1.LFSHashing.hashAllFiles(sourceFolder));
|
||||
yield cloud_runner_agent_system_1.CloudRunnerAgentSystem.Run(`tree ${sourceFolder}`);
|
||||
yield cloud_runner_agent_system_1.CloudRunnerAgentSystem.Run(`tree ${cacheFolder}`);
|
||||
}
|
||||
|
|
@ -569,6 +572,7 @@ class Caching {
|
|||
process.chdir(cacheFolder);
|
||||
let cacheSelection;
|
||||
if (__1.Input.cloudRunnerTests) {
|
||||
cloud_runner_logger_1.default.log(yield lfs_hashing_1.LFSHashing.hashAllFiles(destinationFolder));
|
||||
yield cloud_runner_agent_system_1.CloudRunnerAgentSystem.Run(`tree ${cacheFolder}`);
|
||||
}
|
||||
if (cacheKey !== ``) {
|
||||
|
|
@ -740,6 +744,12 @@ class LFSHashing {
|
|||
}
|
||||
});
|
||||
}
|
||||
static hashAllFiles(folder) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
process.chdir(`${folder}`);
|
||||
return yield cloud_runner_agent_system_1.CloudRunnerAgentSystem.Run(`find -type f -exec md5sum "{}" + | sort`);
|
||||
});
|
||||
}
|
||||
}
|
||||
exports.LFSHashing = LFSHashing;
|
||||
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -2,8 +2,10 @@ import { assert } from 'console';
|
|||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
import { Input } from '../..';
|
||||
import CloudRunnerLogger from '../../cloud-runner/services/cloud-runner-logger';
|
||||
import { CloudRunnerState } from '../../cloud-runner/state/cloud-runner-state';
|
||||
import { CloudRunnerAgentSystem } from './cloud-runner-agent-system';
|
||||
import { LFSHashing } from './lfs-hashing';
|
||||
import { RemoteClientLogger } from './remote-client-logger';
|
||||
|
||||
export class Caching {
|
||||
|
|
@ -15,6 +17,7 @@ export class Caching {
|
|||
process.chdir(`${sourceFolder}/..`);
|
||||
|
||||
if (Input.cloudRunnerTests) {
|
||||
CloudRunnerLogger.log(await LFSHashing.hashAllFiles(sourceFolder));
|
||||
await CloudRunnerAgentSystem.Run(`tree ${sourceFolder}`);
|
||||
await CloudRunnerAgentSystem.Run(`tree ${cacheFolder}`);
|
||||
}
|
||||
|
|
@ -53,6 +56,7 @@ export class Caching {
|
|||
let cacheSelection;
|
||||
|
||||
if (Input.cloudRunnerTests) {
|
||||
CloudRunnerLogger.log(await LFSHashing.hashAllFiles(destinationFolder));
|
||||
await CloudRunnerAgentSystem.Run(`tree ${cacheFolder}`);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -30,4 +30,8 @@ export class LFSHashing {
|
|||
throw error;
|
||||
}
|
||||
}
|
||||
public static async hashAllFiles(folder: string) {
|
||||
process.chdir(`${folder}`);
|
||||
return await CloudRunnerAgentSystem.Run(`find -type f -exec md5sum "{}" + | sort`);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue