Add desktop perf trace automation and CI reporting
- add automated Electron renderer perf tracing with seeded state and scripted UI interactions - add `test:desktop-perf` and `test:desktop-perf:post` scripts to generate, validate, and summarize traces - run desktop perf trace in CI and post/update PR perf summaries on pull requests
This commit is contained in:
1 parent
9e877f592b
commit
a1177c736c
7 files changed
+856
-8
No files matched your search
@@ -6,6 +6,10 @@ on:
|
||||
branches:
|
||||
- main
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: write
|
||||
|
||||
jobs:
|
||||
quality:
|
||||
name: Lint, Typecheck, Test, Build
|
||||
@@ -48,3 +52,13 @@ jobs:
|
||||
run: |
|
||||
test -f apps/desktop/dist-electron/preload.js
|
||||
grep -nE "desktopBridge|getWsUrl|PICK_FOLDER_CHANNEL|wsUrl" apps/desktop/dist-electron/preload.js
|
||||
|
||||
- name: Desktop perf trace test
|
||||
if: github.event_name != 'pull_request'
|
||||
run: xvfb-run -a bun run test:desktop-perf
|
||||
|
||||
- name: Desktop perf trace test and PR summary
|
||||
if: github.event_name == 'pull_request'
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
run: xvfb-run -a bun run test:desktop-perf:post
|
||||
Reference in new issue
Block a user