Perf Profiles #71
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Perf Profiles | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| perf_profiles: | |
| description: 'Optional comma-separated profiles (e.g., "small,large,tool-heavy")' | |
| required: false | |
| type: string | |
| schedule: | |
| - cron: "30 8 * * *" | |
| permissions: | |
| contents: read | |
| jobs: | |
| perf-profiles: | |
| name: Performance Profiles | |
| runs-on: ${{ github.repository_owner == 'coder' && 'depot-ubuntu-22.04-16' || 'ubuntu-latest' }} | |
| timeout-minutes: 30 | |
| steps: | |
| - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 | |
| with: | |
| persist-credentials: false | |
| - uses: ./.github/actions/setup-mux | |
| - name: Install xvfb | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y xvfb | |
| - uses: ./.github/actions/setup-playwright | |
| - name: Run perf profiling scenarios | |
| run: xvfb-run -a make test-e2e-perf | |
| env: | |
| ELECTRON_DISABLE_SANDBOX: 1 | |
| MUX_E2E_PERF_PROFILES: ${{ github.event.inputs.perf_profiles || '' }} | |
| - name: Upload perf artifacts | |
| if: always() | |
| uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 | |
| with: | |
| name: perf-artifacts-${{ github.run_id }} | |
| path: | | |
| artifacts/perf/** | |
| artifacts/playwright-report/** | |
| artifacts/playwright-output/** | |
| if-no-files-found: warn |