Skip to content

Commit cb27be3

Browse files
authored
fix(tests): Fix llm2 model caching
Updated caching strategy for llm2 models in integration tests. Signed-off-by: Marcel Klehr <mklehr@gmx.net>
1 parent 47ebb92 commit cb27be3

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/integration_test.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,8 @@ jobs:
154154
poetry install
155155
156156
- name: Cache llm2 models
157-
uses: actions/cache@v5
157+
uses: actions/cache/restore@v5
158+
id: cache-llm2-models-restore
158159
env:
159160
cache-name: cache-llm2-models
160161
with:
@@ -174,7 +175,6 @@ jobs:
174175
run: |
175176
./occ app_api:app:register llm2 manual_install --json-info "{\"appid\":\"llm2\",\"name\":\"Local large language model\",\"daemon_config_name\":\"manual_install\",\"version\":\"${{ fromJson(steps.llm2_appinfo.outputs.result).version }}\",\"secret\":\"12345\",\"port\":9080,\"scopes\":[\"AI_PROVIDERS\", \"TASK_PROCESSING\"],\"system_app\":0}" --force-scopes --wait-finish
176177
177-
178178
- name: Install context_agent app
179179
working-directory: ${{ env.APP_NAME }}
180180
run: |
@@ -253,6 +253,14 @@ jobs:
253253
[ "$STATUS" = "200" ]
254254
echo "$BODY"
255255
echo "$BODY" | grep -q 'list_calendars'
256+
257+
- name: Cache llm2 models
258+
uses: actions/cache/save@v5
259+
env:
260+
cache-name: cache-llm2-models
261+
with:
262+
path: llm2-persistent_storage/
263+
key: ${{ steps.cache-llm2-models-restore.outputs.cache-primary-key }}
256264

257265
- name: Run task
258266
env:

0 commit comments

Comments
 (0)