aboutsummaryrefslogtreecommitdiffstats
path: root/dashboard/dashapi
diff options
context:
space:
mode:
authorTaras Madan <tarasmadan@google.com>2024-12-12 15:35:24 +0100
committerTaras Madan <tarasmadan@google.com>2024-12-12 15:52:20 +0000
commit4ea1fe6aae47bcfc828797d283ecbc755682e7c9 (patch)
tree3569552ec09ef36f3c8cece37521f18b60f394df /dashboard/dashapi
parent5388eec6a1e6628f5ba367193f4131e82074ab3b (diff)
tools/syz-covermerger: more logs
I don't see any visible problems but the records in DB are not created. Let's report the amount of records created at the end of the batch step. +log the names of the managers
Diffstat (limited to 'dashboard/dashapi')
-rw-r--r--dashboard/dashapi/dashapi.go10
1 files changed, 8 insertions, 2 deletions
diff --git a/dashboard/dashapi/dashapi.go b/dashboard/dashapi/dashapi.go
index 9e1d29d0b..8133d47c5 100644
--- a/dashboard/dashapi/dashapi.go
+++ b/dashboard/dashapi/dashapi.go
@@ -704,8 +704,14 @@ type SaveCoverageReq struct {
Coverage *MergedCoverage
}
-func (dash *Dashboard) SaveCoverage(req *SaveCoverageReq) error {
- return dash.Query("save_coverage", req, nil)
+// SaveCoverage returns amount of records created in db.
+func (dash *Dashboard) SaveCoverage(req *SaveCoverageReq) (int, error) {
+ resp := new(int)
+ if err := dash.Query("save_coverage", req, resp); err != nil {
+ return 0, err
+ } else {
+ return *resp, err
+ }
}
type TestPatchRequest struct {