mirror of
https://github.com/game-ci/unity-builder.git
synced 2025-07-07 20:35:33 -04:00
hashed logging k8s
This commit is contained in:
parent
368f63e404
commit
6bd6fddf40
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.
@ -36,18 +36,21 @@ class KubernetesTaskRunner {
|
||||
const callback = (outputChunk: string) => {
|
||||
output += outputChunk;
|
||||
|
||||
// split output chunk and handle per line
|
||||
for (const chunk of outputChunk.split(`\n`)) {
|
||||
// check if log start included in logs if so log a message
|
||||
if (outputChunk.includes(`Collected Logs`)) {
|
||||
if (chunk.includes(`Collected Logs`)) {
|
||||
CloudRunnerLogger.log(`Log Start found in logs`);
|
||||
}
|
||||
if (outputChunk.includes(`LOGHASH:`)) {
|
||||
RemoteClientLogger.HandleLogChunkLine(outputChunk);
|
||||
if (chunk.includes(`LOGHASH:`)) {
|
||||
RemoteClientLogger.HandleLogChunkLine(chunk);
|
||||
CloudRunnerLogger.log(`Loghash found`);
|
||||
}
|
||||
if (outputChunk.includes(`LOGS:`)) {
|
||||
const result = RemoteClientLogger.HandleLogChunkLine(outputChunk);
|
||||
if (chunk.includes(`LOGS:`)) {
|
||||
const result = RemoteClientLogger.HandleLogChunkLine(chunk);
|
||||
CloudRunnerLogger.log(`Logs found HandleLogChunkLineResult:${result}`);
|
||||
}
|
||||
}
|
||||
};
|
||||
try {
|
||||
logs = await CloudRunnerSystem.Run(`kubectl logs ${podName}${extraFlags}`, false, true, callback);
|
||||
|
Loading…
Reference in New Issue
Block a user