| 1 | name: Diagnostic overhead monitoring |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | branches: [main-v2] |
| 6 | paths: |
| 7 | - desktop/electron/** |
| 8 | - desktop/frontend/** |
| 9 | - desktop/package.json |
| 10 | - desktop/pnpm-lock.yaml |
| 11 | - desktop/pnpm-workspace.yaml |
| 12 | - .github/workflows/diagnostic-overhead.yml |
| 13 | schedule: |
| 14 | - cron: "43 4 * * *" |
| 15 | workflow_dispatch: |
| 16 | |
| 17 | permissions: |
| 18 | contents: read |
| 19 | |
| 20 | concurrency: |
| 21 | group: diagnostic-overhead-${{ github.ref }} |
| 22 | cancel-in-progress: true |
| 23 | |
| 24 | jobs: |
| 25 | measure: |
| 26 | runs-on: windows-latest |
| 27 | timeout-minutes: 15 |
| 28 | defaults: |
| 29 | run: |
| 30 | working-directory: desktop |
| 31 | steps: |
| 32 | - uses: actions/checkout@v7 |
| 33 | - uses: pnpm/action-setup@v6.1.0 |
| 34 | with: |
| 35 | version: 10 |
| 36 | run_install: false |
| 37 | - uses: actions/setup-node@v7 |
| 38 | with: |
| 39 | node-version: "24" |
| 40 | cache: pnpm |
| 41 | cache-dependency-path: desktop/pnpm-lock.yaml |
| 42 | - name: Install the Electron workspace |
| 43 | run: pnpm install --frozen-lockfile |
| 44 | - name: Measure Electron diagnostic overhead |
| 45 | timeout-minutes: 10 |
| 46 | run: node electron/scripts/performance-benchmark.mjs |
| 47 | - name: Upload diagnostic benchmark evidence |
| 48 | if: always() |
| 49 | uses: actions/upload-artifact@v7 |
| 50 | with: |
| 51 | name: diagnostic-overhead-windows-${{ github.sha }} |
| 52 | if-no-files-found: error |
| 53 | retention-days: 7 |
| 54 | path: | |
| 55 | desktop/electron/artifacts/performance/overhead.json |
| 56 | desktop/electron/artifacts/performance/diagnostic-report.png |
| 57 |