mirror of
https://github.com/game-ci/unity-builder.git
synced 2025-07-07 20:35:33 -04:00
hashed logs
This commit is contained in:
parent
2019e730cb
commit
87c7a1f553
@ -117,7 +117,6 @@ jobs:
|
|||||||
- 'cloud-runner-async-workflow'
|
- 'cloud-runner-async-workflow'
|
||||||
- 'cloud-runner-end2end-locking'
|
- 'cloud-runner-end2end-locking'
|
||||||
- 'cloud-runner-end2end-caching'
|
- 'cloud-runner-end2end-caching'
|
||||||
- 'cloud-runner-kubernetes'
|
|
||||||
- 'cloud-runner-end2end-retaining'
|
- 'cloud-runner-end2end-retaining'
|
||||||
- 'cloud-runner-environment'
|
- 'cloud-runner-environment'
|
||||||
- 'cloud-runner-github-checks'
|
- 'cloud-runner-github-checks'
|
||||||
|
BIN
dist/index.js
generated
vendored
BIN
dist/index.js
generated
vendored
Binary file not shown.
BIN
dist/index.js.map
generated
vendored
BIN
dist/index.js.map
generated
vendored
Binary file not shown.
@ -3,6 +3,8 @@ import fs from 'node:fs';
|
|||||||
import path from 'node:path';
|
import path from 'node:path';
|
||||||
import CloudRunner from '../cloud-runner';
|
import CloudRunner from '../cloud-runner';
|
||||||
import CloudRunnerOptions from '../options/cloud-runner-options';
|
import CloudRunnerOptions from '../options/cloud-runner-options';
|
||||||
|
import { CloudRunnerSystem } from '../services/core/cloud-runner-system';
|
||||||
|
import { CloudRunnerFolders } from '../options/cloud-runner-folders';
|
||||||
|
|
||||||
export class RemoteClientLogger {
|
export class RemoteClientLogger {
|
||||||
private static get LogFilePath() {
|
private static get LogFilePath() {
|
||||||
@ -38,7 +40,14 @@ export class RemoteClientLogger {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
CloudRunnerLogger.log(`Collected Logs`);
|
CloudRunnerLogger.log(`Collected Logs`);
|
||||||
const hashedLogs = fs.readFileSync(RemoteClientLogger.LogFilePath).toString();
|
let hashedLogs = fs.readFileSync(RemoteClientLogger.LogFilePath).toString();
|
||||||
|
|
||||||
|
// create hashed version of logs using md5sum
|
||||||
|
const startPath = process.cwd();
|
||||||
|
process.chdir(path.resolve(CloudRunnerFolders.repoPathAbsolute, '..'));
|
||||||
|
hashedLogs = await await CloudRunnerSystem.Run(`md5sum ${RemoteClientLogger.LogFilePath}`);
|
||||||
|
process.chdir(startPath);
|
||||||
|
|
||||||
CloudRunnerLogger.log(hashedLogs);
|
CloudRunnerLogger.log(hashedLogs);
|
||||||
const logs = fs.readFileSync(RemoteClientLogger.LogFilePath).toString();
|
const logs = fs.readFileSync(RemoteClientLogger.LogFilePath).toString();
|
||||||
CloudRunnerLogger.log(logs);
|
CloudRunnerLogger.log(logs);
|
||||||
|
Loading…
Reference in New Issue
Block a user