From 24db1fcda2ba28d4a320f1e2e891c3aa6a923a91 Mon Sep 17 00:00:00 2001 From: snomiao Date: Sun, 19 Oct 2025 03:01:29 +0000 Subject: [PATCH] [test] Baseline test: Re-add .cache to measure performance WITH cache This commit temporarily restores .cache caching to establish a baseline for performance comparison. The next commit will remove it again to measure the performance impact. Testing approach: 1. This commit: WITH .cache (baseline) 2. Next commit: WITHOUT .cache (comparison) 3. Analysis: Compare CI run times to quantify cache impact --- .github/workflows/api-update-electron-api-types.yaml | 1 + .github/workflows/api-update-manager-api-types.yaml | 1 + .github/workflows/api-update-registry-api-types.yaml | 1 + .github/workflows/ci-lint-format.yaml | 1 + .github/workflows/ci-tests-storybook.yaml | 2 ++ .github/workflows/ci-tests-unit.yaml | 1 + .github/workflows/release-draft-create.yaml | 1 + .github/workflows/release-pypi-dev.yaml | 1 + 8 files changed, 9 insertions(+) diff --git a/.github/workflows/api-update-electron-api-types.yaml b/.github/workflows/api-update-electron-api-types.yaml index 3465ba908..db15cb372 100644 --- a/.github/workflows/api-update-electron-api-types.yaml +++ b/.github/workflows/api-update-electron-api-types.yaml @@ -30,6 +30,7 @@ jobs: uses: actions/cache@v4 with: path: | + .cache tsconfig.tsbuildinfo key: electron-types-tools-cache-${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }} restore-keys: | diff --git a/.github/workflows/api-update-manager-api-types.yaml b/.github/workflows/api-update-manager-api-types.yaml index 6a2242d88..f67d1d618 100644 --- a/.github/workflows/api-update-manager-api-types.yaml +++ b/.github/workflows/api-update-manager-api-types.yaml @@ -35,6 +35,7 @@ jobs: uses: actions/cache@v4 with: path: | + .cache tsconfig.tsbuildinfo key: update-manager-tools-cache-${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }} restore-keys: | diff --git a/.github/workflows/api-update-registry-api-types.yaml b/.github/workflows/api-update-registry-api-types.yaml index 7303acd2d..bdb6bbc2e 100644 --- a/.github/workflows/api-update-registry-api-types.yaml +++ b/.github/workflows/api-update-registry-api-types.yaml @@ -34,6 +34,7 @@ jobs: uses: actions/cache@v4 with: path: | + .cache tsconfig.tsbuildinfo key: update-registry-tools-cache-${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }} restore-keys: | diff --git a/.github/workflows/ci-lint-format.yaml b/.github/workflows/ci-lint-format.yaml index 571cbaea8..5c4e0011b 100644 --- a/.github/workflows/ci-lint-format.yaml +++ b/.github/workflows/ci-lint-format.yaml @@ -37,6 +37,7 @@ jobs: uses: actions/cache@v4 with: path: | + .cache .eslintcache tsconfig.tsbuildinfo .prettierCache diff --git a/.github/workflows/ci-tests-storybook.yaml b/.github/workflows/ci-tests-storybook.yaml index 6c171bc04..65e97ed91 100644 --- a/.github/workflows/ci-tests-storybook.yaml +++ b/.github/workflows/ci-tests-storybook.yaml @@ -54,6 +54,7 @@ jobs: uses: actions/cache@v4 with: path: | + .cache storybook-static tsconfig.tsbuildinfo key: storybook-cache-${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ hashFiles('src/**/*.{ts,vue,js}', '*.config.*', '.storybook/**/*') }} @@ -118,6 +119,7 @@ jobs: uses: actions/cache@v4 with: path: | + .cache storybook-static tsconfig.tsbuildinfo key: storybook-cache-${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ hashFiles('src/**/*.{ts,vue,js}', '*.config.*', '.storybook/**/*') }} diff --git a/.github/workflows/ci-tests-unit.yaml b/.github/workflows/ci-tests-unit.yaml index a975431f4..152f78885 100644 --- a/.github/workflows/ci-tests-unit.yaml +++ b/.github/workflows/ci-tests-unit.yaml @@ -33,6 +33,7 @@ jobs: uses: actions/cache@v4 with: path: | + .cache coverage .vitest-cache key: vitest-cache-${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ hashFiles('src/**/*.{ts,vue,js}', 'vitest.config.*', 'tsconfig.json') }} diff --git a/.github/workflows/release-draft-create.yaml b/.github/workflows/release-draft-create.yaml index 263825294..d26744f56 100644 --- a/.github/workflows/release-draft-create.yaml +++ b/.github/workflows/release-draft-create.yaml @@ -32,6 +32,7 @@ jobs: uses: actions/cache@v4 with: path: | + .cache tsconfig.tsbuildinfo key: release-tools-cache-${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }} restore-keys: | diff --git a/.github/workflows/release-pypi-dev.yaml b/.github/workflows/release-pypi-dev.yaml index 30e8638a7..1bb375025 100644 --- a/.github/workflows/release-pypi-dev.yaml +++ b/.github/workflows/release-pypi-dev.yaml @@ -29,6 +29,7 @@ jobs: uses: actions/cache@v4 with: path: | + .cache dist tsconfig.tsbuildinfo key: dev-release-tools-cache-${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}