From bb6cd4d997e87dfb38beef17406efd58174424b3 Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Tue, 15 Apr 2025 15:05:31 +0200 Subject: syz-cluster: log fuzz-step termination Some of the fuzz jobs seem to be unable to finish in time. Add some logging to better understand what part if preventing the termination. --- syz-cluster/workflow/fuzz-step/main.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'syz-cluster/workflow') diff --git a/syz-cluster/workflow/fuzz-step/main.go b/syz-cluster/workflow/fuzz-step/main.go index e5671e4fd..05b145554 100644 --- a/syz-cluster/workflow/fuzz-step/main.go +++ b/syz-cluster/workflow/fuzz-step/main.go @@ -105,6 +105,7 @@ func run(baseCtx context.Context, client *api.Client, timeout time.Duration, art eg, ctx := errgroup.WithContext(baseCtx) bugs := make(chan *manager.UniqueBug) eg.Go(func() error { + defer log.Logf(0, "bug reporting terminated") for { var bug *manager.UniqueBug select { @@ -123,6 +124,7 @@ func run(baseCtx context.Context, client *api.Client, timeout time.Duration, art return nil }) eg.Go(func() error { + defer log.Logf(0, "diff fuzzing terminated") return manager.RunDiffFuzzer(ctx, base, patched, manager.DiffFuzzerConfig{ Debug: false, PatchedOnly: bugs, @@ -136,6 +138,7 @@ func run(baseCtx context.Context, client *api.Client, timeout time.Duration, art ) lastArtifactUpdate := time.Now() eg.Go(func() error { + defer log.Logf(0, "status reporting terminated") for { select { case <-ctx.Done(): -- cgit mrf-deployment