How to use isUnreliableBisect method of main Package

Best Syzkaller code snippet using main.isUnreliableBisect

jobs.go

Source:jobs.go Github

copy

Full Screen

...512 } else if len(req.Commits) > 1 {513 result = BisectInconclusive514 } else if len(req.Commits) == 0 {515 result = BisectHorizont516 } else if job.isUnreliableBisect() {517 result = BisectUnreliable518 }519 if job.Type == JobBisectCause {520 bug.BisectCause = result521 } else {522 bug.BisectFix = result523 }524 // If the crash still occurs on HEAD, update the bug's LastTime so that it will be525 // retried after 30 days.526 if job.Type == JobBisectFix && req.Error == nil && len(req.Commits) == 0 && len(req.CrashLog) != 0 {527 bug.BisectFix = BisectNot528 bug.LastTime = now529 }530 if _, err := db.Put(c, bugKey, bug); err != nil {531 return fmt.Errorf("failed to put bug: %v", err)532 }533 _, bugReporting, _, _, _ := currentReporting(c, bug)534 // The bug is either already closed or not yet reported in the current reporting,535 // either way we don't need to report it. If it wasn't reported, it will be reported536 // with the bisection results.537 if bugReporting == nil || bugReporting.Reported.IsZero() ||538 // Don't report errors for non-user-initiated jobs.539 job.Error != 0 ||540 // Don't report unreliable/wrong bisections.541 job.isUnreliableBisect() {542 job.Reported = true543 } else {544 job.Reporting = bugReporting.Name545 }546 return nil547}548// TODO: this is temporal for gradual bisection rollout.549// Notify only about successful cause bisection for now.550// For now we only enable this in tests.551var notifyAboutUnsuccessfulBisections = false552func pollCompletedJobs(c context.Context, typ string) ([]*dashapi.BugReport, error) {553 var jobs []*Job554 keys, err := db.NewQuery("Job").555 Filter("Finished>", time.Time{})....

Full Screen

Full Screen

entities.go

Source:entities.go Github

copy

Full Screen

...183 BisectResultNoop184 BisectResultRelease185 BisectResultIgnore186)187func (job *Job) isUnreliableBisect() bool {188 if job.Type != JobBisectCause && job.Type != JobBisectFix {189 panic(fmt.Sprintf("bad job type %v", job.Type))190 }191 // If a bisection points to a merge or a commit that does not affect the kernel binary,192 // it is considered an unreliable/wrong result and should not be reported in emails.193 return job.Flags&BisectResultMerge != 0 ||194 job.Flags&BisectResultNoop != 0 ||195 job.Flags&BisectResultRelease != 0 ||196 job.Flags&BisectResultIgnore != 0197}198// Text holds text blobs (crash logs, reports, reproducers, etc).199type Text struct {200 Namespace string201 Text []byte `datastore:",noindex"` // gzip-compressed text...

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run Syzkaller automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Most used method in

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful