diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2023-04-24 18:58:23 +0200 |
|---|---|---|
| committer | Aleksandr Nogikh <wp32pw@gmail.com> | 2023-04-27 11:42:09 +0200 |
| commit | cef7cc0993422a96dff2c22d1afc9f87502bb289 (patch) | |
| tree | e72ba07733682bf374b5ade35fed177af395aa90 | |
| parent | 030e10720439813a9e4a7e4586bdc2bdc781a4c9 (diff) | |
dashboard: add Ref column to bug reminders
This will facilitate receiving commands for individual bugs from the bug
reminder list.
| -rw-r--r-- | dashboard/app/reporting_email.go | 8 | ||||
| -rw-r--r-- | dashboard/app/subsystem_test.go | 56 |
2 files changed, 32 insertions, 32 deletions
diff --git a/dashboard/app/reporting_email.go b/dashboard/app/reporting_email.go index 210519e41..e76aa39e6 100644 --- a/dashboard/app/reporting_email.go +++ b/dashboard/app/reporting_email.go @@ -356,14 +356,14 @@ func emailListReport(c context.Context, rep *dashapi.BugListReport, cfg *EmailCo var b bytes.Buffer w := tabwriter.NewWriter(&b, 0, 0, 1, ' ', 0) - fmt.Fprintln(w, "Crashes\tRepro\tTitle") - for _, bug := range rep.Bugs { + fmt.Fprintln(w, "Ref\tCrashes\tRepro\tTitle") + for i, bug := range rep.Bugs { repro := "No" if bug.ReproLevel > dashapi.ReproLevelNone { repro = "Yes" } - fmt.Fprintf(w, "%d\t%s\t%s\n", bug.Hits, repro, bug.Title) - fmt.Fprintf(w, "\t\t%s\n", bug.Link) + fmt.Fprintf(w, "<%d>\t%d\t%s\t%s\n", i+1, bug.Hits, repro, bug.Title) + fmt.Fprintf(w, "\t\t\t%s\n", bug.Link) } w.Flush() args.Table = b.String() diff --git a/dashboard/app/subsystem_test.go b/dashboard/app/subsystem_test.go index 8c1bf9808..6edb9e704 100644 --- a/dashboard/app/subsystem_test.go +++ b/dashboard/app/subsystem_test.go @@ -303,11 +303,11 @@ In total, 2 issues are still open. Some of the still happening issues: -Crashes Repro Title -4 No WARNING: a first - https://testapp.appspot.com/bug?extid=%[1]v -2 No WARNING: a second - https://testapp.appspot.com/bug?extid=%[2]v +Ref Crashes Repro Title +<1> 4 No WARNING: a first + https://testapp.appspot.com/bug?extid=%[1]v +<2> 2 No WARNING: a second + https://testapp.appspot.com/bug?extid=%[2]v The report will be sent to: [subsystemA@list.com subsystemA@person.com]. If the report looks fine to you, please send the "syz upstream" command. @@ -334,11 +334,11 @@ In total, 2 issues are still open. Some of the still happening issues: -Crashes Repro Title -6 No WARNING: b second - https://testapp.appspot.com/bug?extid=%[1]v -2 No WARNING: b first - https://testapp.appspot.com/bug?extid=%[2]v +Ref Crashes Repro Title +<1> 6 No WARNING: b second + https://testapp.appspot.com/bug?extid=%[1]v +<2> 2 No WARNING: b first + https://testapp.appspot.com/bug?extid=%[2]v The report will be sent to: [subsystemB@list.com subsystemB@person.com]. If the report looks fine to you, please send the "syz upstream" command. @@ -414,11 +414,11 @@ In total, 2 issues are still open. Some of the still happening issues: -Crashes Repro Title -2 No WARNING: a first - https://testapp.appspot.com/bug?extid=%[1]v -2 No WARNING: a second - https://testapp.appspot.com/bug?extid=%[2]v +Ref Crashes Repro Title +<1> 2 No WARNING: a first + https://testapp.appspot.com/bug?extid=%[1]v +<2> 2 No WARNING: a second + https://testapp.appspot.com/bug?extid=%[2]v --- This report is generated by a bot. It may contain errors. @@ -528,19 +528,19 @@ In total, 10 issues are still open and 1 has been fixed so far. Some of the still happening issues: -Crashes Repro Title -6 Yes WARNING: has repro 6 - https://testapp.appspot.com/bug?extid=%[1]v -6 No WARNING: no repro 6 - https://testapp.appspot.com/bug?extid=%[2]v -5 Yes WARNING: has repro 5 - https://testapp.appspot.com/bug?extid=%[3]v -5 No WARNING: no repro 5 - https://testapp.appspot.com/bug?extid=%[4]v -4 Yes WARNING: has repro 4 - https://testapp.appspot.com/bug?extid=%[5]v -3 Yes WARNING: has repro 3 - https://testapp.appspot.com/bug?extid=%[6]v +Ref Crashes Repro Title +<1> 6 Yes WARNING: has repro 6 + https://testapp.appspot.com/bug?extid=%[1]v +<2> 6 No WARNING: no repro 6 + https://testapp.appspot.com/bug?extid=%[2]v +<3> 5 Yes WARNING: has repro 5 + https://testapp.appspot.com/bug?extid=%[3]v +<4> 5 No WARNING: no repro 5 + https://testapp.appspot.com/bug?extid=%[4]v +<5> 4 Yes WARNING: has repro 4 + https://testapp.appspot.com/bug?extid=%[5]v +<6> 3 Yes WARNING: has repro 3 + https://testapp.appspot.com/bug?extid=%[6]v The report will be sent to: [subsystemA@list.com subsystemA@person.com]. If the report looks fine to you, please send the "syz upstream" command. |
