Skip to content

Commit

Permalink
Force fresh .testmondata cache (#1230)
Browse files Browse the repository at this point in the history
We need to force refesh .testmondata on staging.
  • Loading branch information
xzdandy authored Sep 27, 2023
1 parent 645a8f2 commit e32e528
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }}
Expand Down

0 comments on commit e32e528

Please sign in to comment.