Include log chunk when task runner sees log update, clarify if we can pull logs from same line or next line

pull/531/head
Frostebite 2023-09-24 14:57:44 +01:00
parent a760ee803f
commit 5631a3b301
3 changed files with 8 additions and 3 deletions

4
dist/index.js generated vendored
View File

@ -3969,7 +3969,9 @@ class KubernetesTaskRunner {
}
if (chunk.includes(`LOGS:`)) {
const result = remote_client_logger_1.RemoteClientLogger.HandleLogChunkLine(chunk);
cloud_runner_logger_1.default.log(`Logs found HandleLogChunkLineResult:${result}\n${chunk}`);
// remove "LOGS: " and decode base64 remaining
const unpacked = Buffer.from(chunk.split(`LOGS: `)[1], 'base64').toString('ascii');
cloud_runner_logger_1.default.log(`Logs found HandleLogChunkLineResult:${result}\n${unpacked}`);
}
}
};

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View File

@ -48,7 +48,10 @@ class KubernetesTaskRunner {
}
if (chunk.includes(`LOGS:`)) {
const result = RemoteClientLogger.HandleLogChunkLine(chunk);
CloudRunnerLogger.log(`Logs found HandleLogChunkLineResult:${result}\n${chunk}`);
// remove "LOGS: " and decode base64 remaining
const unpacked = Buffer.from(chunk.split(`LOGS: `)[1], 'base64').toString('ascii');
CloudRunnerLogger.log(`Logs found HandleLogChunkLineResult:${result}\n${unpacked}`);
}
}
};