From 68731c07c52d35b7b44db1c2f5f7a755efcc8c84 Mon Sep 17 00:00:00 2001 From: Rowan Bohde Date: Thu, 14 Nov 2024 13:28:46 -0600 Subject: Reduce integration test overhead (#32475) In profiling integration tests, I found a couple places where per-test overhead could be reduced: * Avoiding disk IO by synchronizing instead of deleting & copying test Git repository data. This saves ~100ms per test on my machine * When flushing queues in `PrintCurrentTest`, invoke `FlushWithContext` in a parallel. --------- Co-authored-by: wxiaoguang --- tests/gitea-repositories-meta/user2/repo2.git/description | 1 - tests/gitea-repositories-meta/user2/repo2.git/info/exclude | 6 ------ 2 files changed, 7 deletions(-) delete mode 100644 tests/gitea-repositories-meta/user2/repo2.git/description delete mode 100644 tests/gitea-repositories-meta/user2/repo2.git/info/exclude (limited to 'tests/gitea-repositories-meta/user2/repo2.git') diff --git a/tests/gitea-repositories-meta/user2/repo2.git/description b/tests/gitea-repositories-meta/user2/repo2.git/description deleted file mode 100644 index 498b267a8c..0000000000 --- a/tests/gitea-repositories-meta/user2/repo2.git/description +++ /dev/null @@ -1 +0,0 @@ -Unnamed repository; edit this file 'description' to name the repository. diff --git a/tests/gitea-repositories-meta/user2/repo2.git/info/exclude b/tests/gitea-repositories-meta/user2/repo2.git/info/exclude deleted file mode 100644 index a5196d1be8..0000000000 --- a/tests/gitea-repositories-meta/user2/repo2.git/info/exclude +++ /dev/null @@ -1,6 +0,0 @@ -# git ls-files --others --exclude-from=.git/info/exclude -# Lines that start with '#' are comments. -# For a project mostly in C, the following would be a good set of -# exclude patterns (uncomment them if you want to use them): -# *.[oa] -# *~ -- cgit v1.2.3