From 2197b25c207a81e893d3ac531c1bf215d8ee442d Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Tue, 15 Apr 2025 15:15:13 +0200 Subject: pkg/manager: propagate context to the bug reproduction If the context is cancelled, we need to make sure that the reproduction process is aborted as well. --- pkg/manager/diff.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg/manager/diff.go') diff --git a/pkg/manager/diff.go b/pkg/manager/diff.go index 781ac0152..d0cb33aa3 100644 --- a/pkg/manager/diff.go +++ b/pkg/manager/diff.go @@ -272,12 +272,12 @@ func (dc *diffContext) NeedRepro(crash *Crash) bool { return true } -func (dc *diffContext) RunRepro(crash *Crash) *ReproResult { +func (dc *diffContext) RunRepro(ctx context.Context, crash *Crash) *ReproResult { dc.mu.Lock() dc.reproAttempts[crash.Title]++ dc.mu.Unlock() - res, stats, err := repro.Run(context.Background(), crash.Output, repro.Environment{ + res, stats, err := repro.Run(ctx, crash.Output, repro.Environment{ Config: dc.new.cfg, Features: dc.new.features, Reporter: dc.new.reporter, -- cgit mrf-deployment