From b3168b3ad6ef4dc24ffd2970a8bde8aae25c6946 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Sat, 1 Aug 2026 19:41:00 +0100 Subject: [PATCH] gitannex: speed up the end to end tests with testremote --fast Run the full "git annex testremote" suite for a single layout mode and use "testremote --fast" for the rest. The full suite repeats the same protocol operations across a matrix of key sizes and chunk configurations, which exercises client side git-annex behaviour rather than rclone. --- cmd/gitannex/e2e_test.go | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/cmd/gitannex/e2e_test.go b/cmd/gitannex/e2e_test.go index 62aae1ea3..c6d801ffb 100644 --- a/cmd/gitannex/e2e_test.go +++ b/cmd/gitannex/e2e_test.go @@ -247,7 +247,16 @@ func TestEndToEnd(t *testing.T) { "rcloneremotename=MyRcloneRemote", "rcloneprefix="+testingContext.ephemeralRepoDir, "rclonelayout="+string(mode)) - testingContext.runInRepo(t, "git", "annex", "testremote", "MyTestRemote") + // Layout modes only vary how object paths are constructed, so + // one layout mode gets the full testremote suite for depth. The + // rest use --fast, which still exercises every special remote + // protocol operation but skips the key size and chunking matrix + // that mostly tests git-annex itself. + if mode == layoutModeNodir { + testingContext.runInRepo(t, "git", "annex", "testremote", "MyTestRemote") + } else { + testingContext.runInRepo(t, "git", "annex", "testremote", "--fast", "MyTestRemote") + } }) } }