From 5898c58a80a62c9311ec5dcf0305fa7f1d55edd7 Mon Sep 17 00:00:00 2001 From: Seebs Date: Mon, 21 Jun 2021 11:15:27 -0500 Subject: [PATCH] try to force TMPDIR to be the ram disk CircleCI is providing a ramdisk as /mnt/ramdisk. Using the ramdisk instead of local storage makes fsync operations essentially free, which removes (some of) the frequent multi-second delays we see during runs otherwise. --- .circleci/config.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 14c7a3367..000155a28 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -126,6 +126,8 @@ jobs: name: golang version: << parameters.golang_version >> resource_class: << parameters.resource_class >> + environment: + TMPDIR: /mnt/ramdisk steps: - checkout-plus - skip-if-root-unchanged