From c172172c2eb37b67e9b231d97f31af0b2dfe39cd Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Fri, 6 Mar 2026 11:21:05 +0000 Subject: [PATCH] gitannex: skip e2e tests on macOS CI to avoid timeout The TestEndToEnd tests consistently time out after 10 minutes on macOS CI runners. Skip them on macOS when running in CI. --- cmd/gitannex/e2e_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmd/gitannex/e2e_test.go b/cmd/gitannex/e2e_test.go index ffc630100..93a51c8db 100644 --- a/cmd/gitannex/e2e_test.go +++ b/cmd/gitannex/e2e_test.go @@ -16,6 +16,7 @@ import ( "github.com/rclone/rclone/fs" "github.com/rclone/rclone/fstest" + "github.com/rclone/rclone/fstest/testy" "github.com/rclone/rclone/lib/buildinfo" ) @@ -189,6 +190,10 @@ func skipE2eTestIfNecessary(t *testing.T) { t.Skip("Skipping because fstest remote was specified.") } + if runtime.GOOS == "darwin" && testy.CI() { + t.Skip("Skipping on macOS CI - tests frequently time out") + } + // TODO: Support e2e tests on Windows. Need to evaluate the semantics of the // HOME and PATH environment variables. switch runtime.GOOS {