From 6ebf31d47beb01cae8a647aab22a0fdbd8d66361 Mon Sep 17 00:00:00 2001 From: xzdandy Date: Wed, 27 Sep 2023 03:57:07 -0400 Subject: [PATCH 1/2] Force fresh cache --- .circleci/config.yml | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index ecdb84818d..8feb300fd0 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -268,11 +268,19 @@ jobs: - /home/circleci/.cache/torch/ - /home/circleci/.cache/gpt4all/ - # Collect the testmondata only on the staging branch - - save_cache: - key: v1-testmon_cache-{{ .Branch }}-python<< parameters.v >>-ray<< parameters.ray >>-{{ checksum "setup.py" }} - paths: - - .testmondata + # Collect the testmondata only for long intergration tests + - when: + condition: + and: + - equal: [ LONG INTEGRATION, << parameters.mode >> ] + - equal: [ staging, << pipeline.git.branch >> ] + - equal: [ "3.10", << parameters.v >> ] + - equal: [ DISABLED, << parameters.ray >>] + steps: + - save_cache: + key: v1-testmon_cache-{{ .Branch }}-python<< parameters.v >>-ray<< parameters.ray >>-{{ checksum "setup.py" }}-{{ epoch }} + paths: + - .testmondata - save_cache: key: v1-pip-wheel_cache-python<< parameters.v >>-ray<< parameters.ray >>-{{ checksum "setup.py" }} From 3033baa5dd306f9465a6993e1a6713970e12569c Mon Sep 17 00:00:00 2001 From: Andy Xu Date: Wed, 27 Sep 2023 00:59:41 -0700 Subject: [PATCH 2/2] Updated config.yml --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 8feb300fd0..464433876e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -277,7 +277,7 @@ jobs: - equal: [ "3.10", << parameters.v >> ] - equal: [ DISABLED, << parameters.ray >>] steps: - - save_cache: + - save_cache: key: v1-testmon_cache-{{ .Branch }}-python<< parameters.v >>-ray<< parameters.ray >>-{{ checksum "setup.py" }}-{{ epoch }} paths: - .testmondata