Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.
Go agentagenticaichatbotdsh-pluginembeddingsevaluationgenerative-aigolangknowledge-basellmmulti-tenantollamaopenaiquestion-answeringragrerankingsemantic-searchvector-searchwiki
ci(dsh-weknora): cache pinned dsh install to speed up e2e
wizardchen4e25684b8ff5
diff --git a/.github/workflows/dsh-plugin.yml b/.github/workflows/dsh-plugin.ymlindex af4abef79..a89363cb7 100644--- a/.github/workflows/dsh-plugin.yml+++ b/.github/workflows/dsh-plugin.yml@@ -65,6 +65,8 @@ jobs:- uses: actions/setup-node@v4with:node-version: "24"+ cache: npm+ cache-dependency-path: packages/dsh-weknora/package-lock.json- name: Install dependenciesrun: npm ci || npm install@@ -111,7 +113,7 @@ jobs:e2e:name: End-to-end inside dsh (pinned)runs-on: ubuntu-latest- timeout-minutes: 25+ timeout-minutes: 10defaults:run:working-directory: packages/dsh-weknora@@ -121,11 +123,21 @@ jobs:- uses: actions/setup-node@v4with:node-version: "24"+ cache: npm+ cache-dependency-path: packages/dsh-weknora/package-lock.json- uses: pnpm/action-setup@v4with:version: ${{ env.PNPM_VERSION }}+ # The e2e script installs @deepseek-ai/dsh on first run (~15 min uncached).+ # Reuse the install across workflow runs; bump DSH_PINNED_SPEC to refresh.+ - name: Cache pinned dsh install+ uses: actions/cache@v4+ with:+ path: .cache/dsh-e2e-install+ key: dsh-e2e-${{ env.DSH_PINNED_SPEC }}+- name: Install dependenciesrun: npm ci || npm install@@ -135,6 +147,7 @@ jobs:- name: Run the plugin inside a real dsh profileenv:DSH_PACKAGE_SPEC: ${{ env.DSH_PINNED_SPEC }}+ DSH_INSTALL_DIR: ${{ github.workspace }}/.cache/dsh-e2e-installDSH_E2E_LOG: ${{ runner.temp }}/dsh-weknora-e2e.logrun: node test/e2e/run-in-dsh.mjs@@ -161,11 +174,24 @@ jobs:- uses: actions/setup-node@v4with:node-version: "24"+ cache: npm+ cache-dependency-path: packages/dsh-weknora/package-lock.json- uses: pnpm/action-setup@v4with:version: ${{ env.PNPM_VERSION }}+ - name: Week id for dsh@latest cache+ id: week+ run: echo "id=$(date -u +%G-W%V)" >> "$GITHUB_OUTPUT"++ # dsh@latest moves; refresh the cache weekly.+ - name: Cache latest dsh install+ uses: actions/cache@v4+ with:+ path: .cache/dsh-e2e-install-latest+ key: dsh-e2e-latest-${{ steps.week.outputs.id }}+- name: Install dependenciesrun: npm ci || npm install@@ -175,6 +201,7 @@ jobs:- name: Run against the latest harness releaseenv:DSH_PACKAGE_SPEC: "@deepseek-ai/dsh@latest"+ DSH_INSTALL_DIR: ${{ github.workspace }}/.cache/dsh-e2e-install-latestrun: node test/e2e/run-in-dsh.mjspublish:@@ -199,6 +226,8 @@ jobs:with:node-version: "24"registry-url: "https://registry.npmjs.org"+ cache: npm+ cache-dependency-path: packages/dsh-weknora/package-lock.json- name: Install dependenciesrun: npm ci || npm install