|
| 1 | +name: ESLint Perf |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: [main, research/eslint-muntithreading] |
| 6 | + pull_request: |
| 7 | + branches: [main, research/eslint-muntithreading] |
| 8 | + workflow_dispatch: |
| 9 | + inputs: |
| 10 | + concurrency_levels: |
| 11 | + description: 'Concurrency levels to test (comma-separated)' |
| 12 | + required: false |
| 13 | + default: 'off,auto,1,2,3,4,5,6' |
| 14 | + |
| 15 | +env: |
| 16 | + NX_NON_NATIVE_HASHER: true |
| 17 | + NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }} |
| 18 | + # Disable Nx optimizations for clean perf measurement |
| 19 | + NX_TUI: false |
| 20 | + NX_TASKS_RUNNER_DYNAMIC_OUTPUT: false |
| 21 | + NX_SKIP_LOG_GROUPING: true |
| 22 | + NX_GENERATE_QUIET: true |
| 23 | + NX_PERF_LOGGING: false |
| 24 | + NX_SKIP_NX_CACHE: true |
| 25 | + NX_SKIP_REMOTE_CACHE: true |
| 26 | + NX_DAEMON: false |
| 27 | + NX_PARALLEL: 1 |
| 28 | + NX_BATCH_MODE: false |
| 29 | + NX_VERBOSE_LOGGING: false |
| 30 | + # Show timing for 15 slowest files |
| 31 | + TIMING: 15 |
| 32 | + |
| 33 | + eslint-concurrency-benchmark: |
| 34 | + runs-on: ${{ matrix.os }} |
| 35 | + name: ESLint Perf (${{ matrix.os }} - ${{ matrix.concurrency }}) |
| 36 | + strategy: |
| 37 | + matrix: |
| 38 | + os: [ubuntu-latest, windows-latest, macos-latest] |
| 39 | + concurrency: ['off', 'auto', '1', '2', '3', '4'] |
| 40 | + steps: |
| 41 | + - name: Checkout repository |
| 42 | + uses: actions/checkout@v4 |
| 43 | + with: |
| 44 | + fetch-depth: 0 |
| 45 | + - name: Set up Node.js |
| 46 | + uses: actions/setup-node@v4 |
| 47 | + with: |
| 48 | + node-version-file: .nvmrc |
| 49 | + cache: npm |
| 50 | + - name: Set base and head for Nx affected commands |
| 51 | + uses: nrwl/nx-set-shas@v4 |
| 52 | + - name: Install dependencies |
| 53 | + run: npm ci |
| 54 | + - name: ESLint test (${{ matrix.concurrency }}) |
| 55 | + run: npx nx run-many -t lint --exclude models-transformers --stats --concurrency ${{ matrix.concurrency }} |
| 56 | + |
| 57 | + eslint-v8570-benchmark: |
| 58 | + runs-on: ${{ matrix.os }} |
| 59 | + name: ESLint v8570 (${{ matrix.os }}) |
| 60 | + strategy: |
| 61 | + matrix: |
| 62 | + os: [ubuntu-latest, windows-latest, macos-latest] |
| 63 | + steps: |
| 64 | + - name: Checkout repository |
| 65 | + uses: actions/checkout@v4 |
| 66 | + with: |
| 67 | + fetch-depth: 0 |
| 68 | + - name: Set up Node.js |
| 69 | + uses: actions/setup-node@v4 |
| 70 | + with: |
| 71 | + node-version-file: .nvmrc |
| 72 | + cache: npm |
| 73 | + - name: Set base and head for Nx affected commands |
| 74 | + uses: nrwl/nx-set-shas@v4 |
| 75 | + - name: Install dependencies |
| 76 | + run: npm ci |
| 77 | + - name: ESLint v8570 test |
| 78 | + run: npx nx run-many -t lint-8570 --exclude models-transformers --stats |
| 79 | + |
| 80 | + eslint-v9340-benchmark: |
| 81 | + runs-on: ${{ matrix.os }} |
| 82 | + name: ESLint v9340 (${{ matrix.os }} - ${{ matrix.concurrency }}) |
| 83 | + strategy: |
| 84 | + matrix: |
| 85 | + os: [ubuntu-latest, windows-latest, macos-latest] |
| 86 | + concurrency: ['off', 'auto', '1', '2', '3', '4'] |
| 87 | + steps: |
| 88 | + - name: Checkout repository |
| 89 | + uses: actions/checkout@v4 |
| 90 | + with: |
| 91 | + fetch-depth: 0 |
| 92 | + - name: Set up Node.js |
| 93 | + uses: actions/setup-node@v4 |
| 94 | + with: |
| 95 | + node-version-file: .nvmrc |
| 96 | + cache: npm |
| 97 | + - name: Set base and head for Nx affected commands |
| 98 | + uses: nrwl/nx-set-shas@v4 |
| 99 | + - name: Install dependencies |
| 100 | + run: npm ci |
| 101 | + - name: ESLint v9340 test (${{ matrix.concurrency }}) |
| 102 | + run: npx nx run-many -t lint-9340 --exclude models-transformers --stats --concurrency ${{ matrix.concurrency }} |
0 commit comments