aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/manager/diff.go
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2025-04-15 15:15:13 +0200
committerAleksandr Nogikh <nogikh@google.com>2025-04-15 15:55:41 +0000
commit2197b25c207a81e893d3ac531c1bf215d8ee442d (patch)
tree4ed23be09178bf47e37fa7942445a2106d81b3ea /pkg/manager/diff.go
parentbb6cd4d997e87dfb38beef17406efd58174424b3 (diff)
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.
Diffstat (limited to 'pkg/manager/diff.go')
-rw-r--r--pkg/manager/diff.go4
1 files changed, 2 insertions, 2 deletions
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,