diff --git a/.github/workflows/test-node-sdk.yml b/.github/workflows/test-node-sdk.yml index b19f706378..b4dc9594a1 100644 --- a/.github/workflows/test-node-sdk.yml +++ b/.github/workflows/test-node-sdk.yml @@ -414,13 +414,17 @@ jobs: console.log(`SDK cache dir: ${cacheDir}`); console.log(`Config written to: ${configPath}`); + # The key carries the consumer: bootstrap:desktop pre-downloads a strict + # superset of bootstrap:electron, so a shared key let whichever consumer + # bootstrapped first pin the entry to its own set, and the other consumer + # then re-downloaded the difference on every run without ever saving it. - name: Restore models cache id: models-cache if: inputs.consumer != 'snap' && inputs.cache-models != false uses: actions/cache/restore@668228422ae6a00e4ad889ee87cd7109ec5666a7 # 5.0.4 with: path: ${{ inputs.working-directory }}/.qvac-cache - key: qvac-models-${{ hashFiles('packages/sdk/models/registry/models.ts') }} + key: qvac-models-${{ inputs.consumer }}-${{ hashFiles('packages/inference/src/models/registry/models.ts') }} enableCrossOsArchive: true - name: Bootstrap (download models) @@ -435,7 +439,7 @@ jobs: uses: actions/cache/save@668228422ae6a00e4ad889ee87cd7109ec5666a7 # 5.0.4 with: path: ${{ inputs.working-directory }}/.qvac-cache - key: qvac-models-${{ hashFiles('packages/sdk/models/registry/models.ts') }} + key: qvac-models-${{ inputs.consumer }}-${{ hashFiles('packages/inference/src/models/registry/models.ts') }} enableCrossOsArchive: true - name: Build Electron package @@ -564,7 +568,7 @@ jobs: uses: actions/cache/restore@668228422ae6a00e4ad889ee87cd7109ec5666a7 # 5.0.4 with: path: ~/snap/qvac-sdk-e2e/common/.qvac/models - key: qvac-snap-models-${{ hashFiles('packages/sdk/models/registry/models.ts') }} + key: qvac-snap-models-${{ hashFiles('packages/inference/src/models/registry/models.ts') }} - name: Bootstrap models inside Snap if: inputs.consumer == 'snap' && steps.snap-model-requirements.outputs.required == 'true' && steps.snap-models-cache.outputs.cache-hit != 'true' @@ -580,7 +584,7 @@ jobs: uses: actions/cache/save@668228422ae6a00e4ad889ee87cd7109ec5666a7 # 5.0.4 with: path: ~/snap/qvac-sdk-e2e/common/.qvac/models - key: qvac-snap-models-${{ hashFiles('packages/sdk/models/registry/models.ts') }} + key: qvac-snap-models-${{ hashFiles('packages/inference/src/models/registry/models.ts') }} - name: Generate runId if: always()