summaryrefslogtreecommitdiff
path: root/changes
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2020-08-12 12:36:54 -0400
committerGeorge Kadianakis <desnacked@riseup.net>2020-08-19 13:46:50 +0300
commit974abdf6325be29f04fcb3b332dce2bb3ac15a9c (patch)
treedcf274c2fae0602a92555c77a4e4e6e726baf478 /changes
parentf5b94715479e9b7bef5675ab72c8b2e260bcb830 (diff)
downloadtor-974abdf6325be29f04fcb3b332dce2bb3ac15a9c.tar.gz
tor-974abdf6325be29f04fcb3b332dce2bb3ac15a9c.zip
Parallelize src/test/test into chunks.
First, we introduce a flag to teach src/test/test to split its work into chunks. Then we replace our invocation of src/test/test in our "make check" target with a set of 8 scripts that invoke the first 8th of the tests, the second 8th, and so on. This change makes our "make -kj4 check" target in our hardened gitlab build more than twice as fast, since src/test/test was taking the longest to finish. Closes 40098.
Diffstat (limited to 'changes')
-rw-r--r--changes/parallel_unit_test4
1 files changed, 4 insertions, 0 deletions
diff --git a/changes/parallel_unit_test b/changes/parallel_unit_test
new file mode 100644
index 0000000000..79de28636d
--- /dev/null
+++ b/changes/parallel_unit_test
@@ -0,0 +1,4 @@
+ o Minor features (tests):
+ - Our "make check" target now runs the unit tests in 8 parallel chunks.
+ Doing this speeds up hardened CI builds by more than a factor of two.
+ Closes ticket 40098.