From 01d32dbde5b429970687d0254e514eecc3d9cec7 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Sat, 1 Aug 2026 13:45:45 +0100 Subject: [PATCH] build: fix intermittent CI failures by raising the test timeout to 20m The cmd/gitannex end to end tests routinely take 230-530s and on slow CI runners the package exceeds the go test default timeout of 10m. Raise the per-package timeout to 20m in quicktest and racequicktest to give slow runners headroom. --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index ab6b508ef..13d21c1e9 100644 --- a/Makefile +++ b/Makefile @@ -93,11 +93,15 @@ test: rclone test_all @echo "Written logs in test_all.log" # Quick test +# +# The timeout is raised above the go test default of 10m as the +# cmd/gitannex end to end tests can take longer than that on slow CI +# runners. quicktest: - RCLONE_CONFIG="/notfound" go test $(LDFLAGS) $(BUILDTAGS) ./... + RCLONE_CONFIG="/notfound" go test $(LDFLAGS) $(BUILDTAGS) -timeout 20m ./... racequicktest: - RCLONE_CONFIG="/notfound" go test $(LDFLAGS) $(BUILDTAGS) -cpu=2 -race ./... + RCLONE_CONFIG="/notfound" go test $(LDFLAGS) $(BUILDTAGS) -cpu=2 -race -timeout 20m ./... compiletest: RCLONE_CONFIG="/notfound" go test $(LDFLAGS) $(BUILDTAGS) -run XXX ./...