From a1d260e83818f8d3991910b87b238afe96af3130 Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Tue, 21 Nov 2023 14:04:46 -0800 Subject: [PATCH] fix: ci: fetch params for the storage unit tests In #11212, we added the necessary logic to download the params automatically. However, we're not taking advantage of CI caching. Here, we configure CI to cache these params. --- .circleci/config.yml | 8 ++------ .circleci/template.yml | 13 ++++++++++--- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index e91c41129..20701f7d5 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -996,23 +996,20 @@ workflows: - build suite: utest-unit-cli target: "./cli/... ./cmd/... ./api/..." - get-params: true executor: golang-2xl + get-params: true - test: name: test-unit-node requires: - build suite: utest-unit-node target: "./node/..." - - - test: name: test-unit-rest requires: - build suite: utest-unit-rest target: "./blockstore/... ./build/... ./chain/... ./conformance/... ./gateway/... ./journal/... ./lib/... ./markets/... ./paychmgr/... ./tools/..." - executor: golang-2xl - test: name: test-unit-storage @@ -1020,8 +1017,7 @@ workflows: - build suite: utest-unit-storage target: "./storage/... ./extern/..." - - + get-params: true - test: go-test-flags: "-run=TestMulticoreSDR" requires: diff --git a/.circleci/template.yml b/.circleci/template.yml index 71616f05f..0b244d013 100644 --- a/.circleci/template.yml +++ b/.circleci/template.yml @@ -557,9 +557,16 @@ workflows: - build suite: utest-[[ $suite ]] target: "[[ $pkgs ]]" - [[if eq $suite "unit-cli"]]get-params: true[[end]] - [[if eq $suite "unit-cli"]]executor: golang-2xl[[end]] - [[- if eq $suite "unit-rest"]]executor: golang-2xl[[end]] + [[- if eq $suite "unit-storage"]] + get-params: true + [[- end -]] + [[- if eq $suite "unit-cli"]] + executor: golang-2xl + get-params: true + [[- end -]] + [[- if eq $suite "unit-rest"]] + executor: golang-2xl + [[- end -]] [[- end]] - test: go-test-flags: "-run=TestMulticoreSDR"