From 0d5abf15b74358009a02efb629f7bc7c84841a1f Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Tue, 7 Jun 2022 17:37:55 +0000 Subject: all: remember console output for all patch tests Currently syzbot only saves a log if there was a build/test error. Closes #3185 --- dashboard/app/jobs_test.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'dashboard') diff --git a/dashboard/app/jobs_test.go b/dashboard/app/jobs_test.go index fb2e4e878..f0ff7750d 100644 --- a/dashboard/app/jobs_test.go +++ b/dashboard/app/jobs_test.go @@ -240,13 +240,15 @@ patch: %[3]v pollResp = c.client2.pollJobs(build.Manager) c.expectEQ(pollResp.Type, dashapi.JobTestPatch) jobDoneReq = &dashapi.JobDoneReq{ - ID: pollResp.ID, - Build: *build, + ID: pollResp.ID, + Build: *build, + CrashLog: []byte("console output"), } c.client2.JobDone(jobDoneReq) { dbJob, dbBuild, _ := c.loadJob(pollResp.ID) patchLink := externalLink(c.ctx, textPatch, dbJob.Patch) + logLink := externalLink(c.ctx, textCrashLog, dbJob.CrashLog) kernelConfigLink := externalLink(c.ctx, textKernelConfig, dbBuild.KernelConfig) msg := c.pollEmailBug() c.expectEQ(len(msg.Attachments), 0) @@ -260,13 +262,14 @@ Tested on: commit: 11111111 kernel_commit_title1 git tree: repo1 branch1 +console output: %[4]v kernel config: %[3]v dashboard link: https://testapp.appspot.com/bug?extid=%[1]v compiler: compiler1 patch: %[2]v Note: testing is done by a robot and is best-effort only. -`, extBugID, patchLink, kernelConfigLink)) +`, extBugID, patchLink, kernelConfigLink, logLink)) c.checkURLContents(patchLink, []byte(patch)) c.checkURLContents(kernelConfigLink, build.KernelConfig) } -- cgit mrf-deployment