From ff0a39725b9469db101e01ae0ab4d61a70d1c754 Mon Sep 17 00:00:00 2001 From: Aaron Lehmann Date: Tue, 13 Jun 2017 17:30:23 -0700 Subject: [PATCH] Run CI with temporary files on a ramdisk This sets up a tmpfs mount to be used for temporary files created by tests. If this works, hopefully it will fix the excessive I/O latencies that are blocking tests for long periods and causing them to fail. As a side effect, this also stores temporary compilation artifacts on tmpfs. Signed-off-by: Aaron Lehmann --- circle.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/circle.yml b/circle.yml index 556d2b4aac..8142691639 100644 --- a/circle.yml +++ b/circle.yml @@ -59,7 +59,10 @@ test: # - `checkprotos`: Build and check the proto files *only* once all # tests pass with checked-in generated code. # - `coverage`: Generate coverage reports. - - cd "$WORKDIR" && make ci + - sudo mkdir /tmpfs + - sudo mount -t tmpfs tmpfs /tmpfs + - sudo chown 1000:1000 /tmpfs + - cd "$WORKDIR" && TMPDIR=/tmpfs make ci post: # Report to codecov.io