mirror of
https://github.com/reactos/syzkaller.git
synced 2025-02-11 06:25:17 +00:00
syz-manager: don't upload failed leak repro attempts to dashboard
We did not upload the crash itself, so dashboard does not know about them.
This commit is contained in:
parent
23454ce6df
commit
1b410967ce
@ -734,11 +734,16 @@ func (mgr *Manager) needRepro(crash *Crash) bool {
|
||||
return needRepro
|
||||
}
|
||||
|
||||
func (mgr *Manager) saveFailedRepro(desc string, stats *repro.Stats) {
|
||||
func (mgr *Manager) saveFailedRepro(title string, stats *repro.Stats) {
|
||||
if strings.HasPrefix(title, report.MemoryLeakPrefix) {
|
||||
// Don't send failed leak repro attempts to dashboard
|
||||
// as we did not send the crash itself.
|
||||
return
|
||||
}
|
||||
if mgr.dash != nil {
|
||||
cid := &dashapi.CrashID{
|
||||
BuildID: mgr.cfg.Tag,
|
||||
Title: desc,
|
||||
Title: title,
|
||||
}
|
||||
if err := mgr.dash.ReportFailedRepro(cid); err != nil {
|
||||
log.Logf(0, "failed to report failed repro to dashboard: %v", err)
|
||||
@ -746,7 +751,7 @@ func (mgr *Manager) saveFailedRepro(desc string, stats *repro.Stats) {
|
||||
return
|
||||
}
|
||||
}
|
||||
dir := filepath.Join(mgr.crashdir, hash.String([]byte(desc)))
|
||||
dir := filepath.Join(mgr.crashdir, hash.String([]byte(title)))
|
||||
osutil.MkdirAll(dir)
|
||||
for i := 0; i < maxReproAttempts; i++ {
|
||||
name := filepath.Join(dir, fmt.Sprintf("repro%v", i))
|
||||
|
Loading…
x
Reference in New Issue
Block a user