From bf1da9647cf4354800248c69ec2a67c4e6196f6b Mon Sep 17 00:00:00 2001 From: Dennis Haney Date: Wed, 22 May 2024 06:38:04 +0200 Subject: [PATCH] fix: 20 sec timeout for write to disc too short 20 sec stall on an platter old hdd is not unexpected. Nor is 20s write on a low-tier cloud environment drive unexpected. 300s should however be enough to tell the difference between crappy hardware and actual failure. fixes #4327 Signed-off-by: Dennis Haney --- solver/llbsolver/solver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solver/llbsolver/solver.go b/solver/llbsolver/solver.go index 837e002a0..5d20cea38 100644 --- a/solver/llbsolver/solver.go +++ b/solver/llbsolver/solver.go @@ -198,7 +198,7 @@ func (s *Solver) recordBuildHistory(ctx context.Context, id string, req frontend } ctx, cancel := context.WithCancelCause(context.Background()) - ctx, _ = context.WithTimeoutCause(ctx, 20*time.Second, errors.WithStack(context.DeadlineExceeded)) + ctx, _ = context.WithTimeoutCause(ctx, 300*time.Second, errors.WithStack(context.DeadlineExceeded)) defer cancel(errors.WithStack(context.Canceled)) var mu sync.Mutex