From c9a5f106a46986cf1a16e1ac9ff239cfc7051a41 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Tue, 3 Nov 2026 13:13:19 +0000 Subject: [PATCH] test_all: run the 50 byte chunker tests against Minio instead of AWS S3 The 5 chunker remotes with 50 byte chunks split each test file into many objects which made them expensive to run against AWS S3. Run them against the TestS3Minio docker server instead and keep TestChunkerS3 with the default chunk size on AWS. --- fs/sync/sync_test.go | 4 ++-- fstest/test_all/config.yaml | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/fs/sync/sync_test.go b/fs/sync/sync_test.go index 29eb7fb6a..61adb4ce2 100644 --- a/fs/sync/sync_test.go +++ b/fs/sync/sync_test.go @@ -1677,8 +1677,8 @@ func TestSyncWithTrackRenamesStrategyLeaf(t *testing.T) { func toyFileTransfers(r *fstest.Run) int64 { remote := r.Fremote.Name() transfers := 1 - if strings.HasPrefix(remote, "TestChunker") && strings.HasSuffix(remote, "S3") { - transfers++ // Extra Copy because S3 emulates Move as Copy+Delete. + if unWrap := r.Fremote.Features().UnWrap; strings.HasPrefix(remote, "TestChunker") && unWrap != nil && unWrap().Features().Move == nil { + transfers++ // Extra Copy because chunker emulates Move as Copy+Delete. } return int64(transfers) } diff --git a/fstest/test_all/config.yaml b/fstest/test_all/config.yaml index 0b7c08c9b..677ed4b88 100644 --- a/fstest/test_all/config.yaml +++ b/fstest/test_all/config.yaml @@ -84,15 +84,15 @@ backends: remote: "TestChunkerS3:" fastlist: true - backend: "chunker" - remote: "TestChunkerChunk50bS3:" + remote: "TestChunkerChunk50bMinio:" fastlist: true maxfile: 1k - backend: "chunker" - remote: "TestChunkerChunk50bMD5HashS3:" + remote: "TestChunkerChunk50bMD5HashMinio:" fastlist: true maxfile: 1k - backend: "chunker" - remote: "TestChunkerChunk50bSHA1HashS3:" + remote: "TestChunkerChunk50bSHA1HashMinio:" fastlist: true maxfile: 1k - backend: "chunker" @@ -100,11 +100,11 @@ backends: fastlist: true maxfile: 6k - backend: "chunker" - remote: "TestChunkerChunk50bMD5QuickS3:" + remote: "TestChunkerChunk50bMD5QuickMinio:" fastlist: true maxfile: 1k - backend: "chunker" - remote: "TestChunkerChunk50bSHA1QuickS3:" + remote: "TestChunkerChunk50bSHA1QuickMinio:" fastlist: true maxfile: 1k ## end chunker