Link K8S deps properly
This commit is contained in:
parent
0ac77cdb15
commit
f0260fc819
64 changed files with 4282 additions and 3069 deletions
|
@ -1,5 +1,7 @@
|
|||
// Imports
|
||||
import { Worker } from "rabbiteer";
|
||||
import { VERB } from "../../util/logging.js";
|
||||
import { insertTestResult } from "../../database/queries/results.js";
|
||||
import evt from "../../sockets/events.js";
|
||||
// Class
|
||||
export default class TestResultsWorker extends Worker {
|
||||
|
@ -23,9 +25,9 @@ export default class TestResultsWorker extends Worker {
|
|||
consoleLogUrl: “https://consolelog”
|
||||
}
|
||||
*/
|
||||
onMessage(testResult) {
|
||||
async onMessage(testResult) {
|
||||
const { pipeline } = testResult;
|
||||
|
||||
await this.handleReporting(testResult);
|
||||
// Alter to start next test
|
||||
// TODO the delay should be autopopulated either by the suite, or filled in by the server
|
||||
if (pipeline) return this.pipelineTrigger(pipeline);
|
||||
|
@ -35,4 +37,9 @@ export default class TestResultsWorker extends Worker {
|
|||
const { dashboardSocketId: dsi } = pipeline;
|
||||
this.skio.to(dsi).emit(evt.PPL_TRG, pipeline);
|
||||
}
|
||||
|
||||
handleReporting(result) {
|
||||
VERB("TestResults", result.name);
|
||||
insertTestResult(result);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue