From d7ca24bcef5a225f0b4bd0ee404b5650f871e61b Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Fri, 23 Aug 2024 14:07:04 +0200 Subject: pkg/repro: increase the minimum testing timeouts 15 seconds is an unreasonably small timeout. Let's do at least 30 seconds first, then at least 100 seconds. --- pkg/repro/repro.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg') diff --git a/pkg/repro/repro.go b/pkg/repro/repro.go index 5f0947541..11c75af11 100644 --- a/pkg/repro/repro.go +++ b/pkg/repro/repro.go @@ -100,8 +100,8 @@ func prepareCtx(crashLog []byte, cfg *mgrconfig.Config, features flatrpc.Feature crashExecutor = rep.Executor } testTimeouts := []time.Duration{ - 3 * cfg.Timeouts.Program, // to catch simpler crashes (i.e. no races and no hangs) - 20 * cfg.Timeouts.Program, + max(30*time.Second, 3*cfg.Timeouts.Program), // to catch simpler crashes (i.e. no races and no hangs) + max(100*time.Second, 20*cfg.Timeouts.Program), cfg.Timeouts.NoOutputRunningTime, // to catch "no output", races and hangs } switch { -- cgit mrf-deployment