3939 # Only the package manifests the script reads to build the dependency graph.
4040 # Depth 2 brings the base commit the change is diffed against.
4141 - name : Checkout
42- uses : actions/checkout@v6
42+ uses : actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
4343 with :
4444 fetch-depth : 2
4545 sparse-checkout : |
6868 timeout-minutes : 10
6969 steps :
7070 - name : Checkout
71- uses : actions/checkout@v6
71+ uses : actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
7272 with :
7373 sparse-checkout : |
7474 /*
9292 # electron's install.js (run by ensure:electron) reads this cache before it
9393 # downloads from GitHub. The key changes only with the Electron version.
9494 - name : Cache Electron download
95- uses : actions/cache@v6
95+ uses : actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
9696 with :
9797 path : ~/.cache/electron
9898 key : electron-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('node_modules/.pnpm/electron@*/node_modules/electron/package.json') }}
@@ -124,7 +124,7 @@ jobs:
124124 timeout-minutes : 10
125125 steps :
126126 - name : Checkout
127- uses : actions/checkout@v6
127+ uses : actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
128128 with :
129129 sparse-checkout : |
130130 /*
@@ -161,7 +161,7 @@ jobs:
161161 # electron's install.js (run by ensure:electron) reads this cache before it
162162 # downloads from GitHub. The key changes only with the Electron version.
163163 - name : Cache Electron download
164- uses : actions/cache@v6
164+ uses : actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
165165 with :
166166 path : ~/.cache/electron
167167 key : electron-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('node_modules/.pnpm/electron@*/node_modules/electron/package.json') }}
@@ -213,7 +213,7 @@ jobs:
213213
214214 - name : Upload desktop launch check
215215 if : ${{ failure() && steps.desktop_launch.outcome == 'failure' }}
216- uses : actions/upload-artifact@v7
216+ uses : actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
217217 with :
218218 name : desktop-launch-check
219219 path : ${{ runner.temp }}/desktop-launch-check
@@ -231,7 +231,7 @@ jobs:
231231 - name : Cache Chromium
232232 id : chromium_cache
233233 if : ${{ !cancelled() && steps.build.outcome == 'success' && needs.changes.outputs.test_web != 'false' }}
234- uses : actions/cache@v6
234+ uses : actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
235235 with :
236236 path : ~/.cache/ms-playwright
237237 key : playwright-chromium-shell-${{ runner.os }}-${{ runner.arch }}-${{ steps.playwright_version.outputs.version }}
@@ -279,7 +279,7 @@ jobs:
279279 timeout-minutes : 10
280280 steps :
281281 - name : Checkout
282- uses : actions/checkout@v6
282+ uses : actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
283283 with :
284284 sparse-checkout : |
285285 /*
@@ -314,7 +314,7 @@ jobs:
314314 # electron's install.js (run by ensure:electron) reads this cache before it
315315 # downloads from GitHub. The key changes only with the Electron version.
316316 - name : Cache Electron download
317- uses : actions/cache@v6
317+ uses : actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
318318 with :
319319 path : ~/.cache/electron
320320 key : electron-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('node_modules/.pnpm/electron@*/node_modules/electron/package.json') }}
@@ -373,7 +373,7 @@ jobs:
373373 shard : [1, 2]
374374 steps :
375375 - name : Checkout
376- uses : actions/checkout@v6
376+ uses : actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
377377 with :
378378 sparse-checkout : |
379379 /*
@@ -394,7 +394,7 @@ jobs:
394394
395395 - name : Cache Chromium
396396 id : chromium_cache
397- uses : actions/cache@v6
397+ uses : actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
398398 with :
399399 path : ~/.cache/ms-playwright
400400 key : playwright-chromium-shell-${{ runner.os }}-${{ runner.arch }}-${{ steps.playwright_version.outputs.version }}
@@ -438,7 +438,7 @@ jobs:
438438 steps :
439439 # Depth 2 brings the base commit the change is diffed against.
440440 - name : Checkout
441- uses : actions/checkout@v6
441+ uses : actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
442442 with :
443443 fetch-depth : 2
444444 sparse-checkout : |
@@ -469,7 +469,7 @@ jobs:
469469 - name : Cache Chromium
470470 id : chromium_cache
471471 if : steps.changes.outputs.test_server != 'false'
472- uses : actions/cache@v6
472+ uses : actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
473473 with :
474474 path : ~/.cache/ms-playwright
475475 key : playwright-chromium-shell-${{ runner.os }}-${{ runner.arch }}-${{ steps.playwright_version.outputs.version }}
@@ -492,7 +492,7 @@ jobs:
492492 # Only pushes to main save it, so pull requests never evict each other's entries.
493493 - name : Restore Vitest module cache
494494 if : steps.changes.outputs.test_server != 'false'
495- uses : actions/cache/restore@v6
495+ uses : actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
496496 with :
497497 path : node_modules/.vitest-cache
498498 key : vitest-modules-server-${{ matrix.shard }}-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }}-${{ github.sha }}
@@ -504,14 +504,15 @@ jobs:
504504 T3CODE_TRANSFER_BUDGET_REPORT_PATH : ${{ runner.temp }}/t3code-transfer-budget.md
505505 T3CODE_TRANSFER_BUDGET_RESULT_PATH : ${{ runner.temp }}/thread-transfer-result.json
506506 T3CODE_TRANSFER_BUDGET_SCENARIOS_PATH : ${{ runner.temp }}/thread-transfer-scenarios.json
507+ # One process per file spends ~2s starting before its tests run; one file per vCPU overlaps that.
507508 run : >-
508- vp run test:cached -- --shard ${{ matrix.shard }}/${{ strategy.job-total }}
509+ vp run test:cached -- --shard ${{ matrix.shard }}/${{ strategy.job-total }} --concurrency 4
509510 --uncached apps/server/integration/transferBudgetV2.integration.test.ts
510511 --verify-hits 1 apps/server
511512
512513 - name : Save Vitest module cache
513514 if : github.event_name == 'push' && steps.changes.outputs.test_server != 'false'
514- uses : actions/cache/save@v6
515+ uses : actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
515516 with :
516517 path : node_modules/.vitest-cache
517518 key : vitest-modules-server-${{ matrix.shard }}-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }}-${{ github.sha }}
@@ -541,7 +542,7 @@ jobs:
541542
542543 - name : Upload thread transfer result
543544 if : always() && steps.transfer_budget.outputs.present == 'true'
544- uses : actions/upload-artifact@v7
545+ uses : actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
545546 with :
546547 name : thread-transfer-results
547548 path : |
@@ -560,7 +561,7 @@ jobs:
560561 timeout-minutes : 10
561562 steps :
562563 - name : Checkout
563- uses : actions/checkout@v6
564+ uses : actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
564565 with :
565566 sparse-checkout : |
566567 /*
@@ -569,8 +570,9 @@ jobs:
569570 sparse-checkout-cone-mode : false
570571
571572 - name : Setup Rust
572- uses : dtolnay/rust-toolchain@stable
573+ uses : dtolnay/rust-toolchain@683b588c487a69d01f6c6ddf40f036ff682cc2c8 # master
573574 with :
575+ toolchain : stable
574576 components : rustfmt
575577
576578 - name : Check Rust formatting
@@ -593,15 +595,15 @@ jobs:
593595 timeout-minutes : 10
594596 steps :
595597 - name : Checkout
596- uses : actions/checkout@v6
598+ uses : actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
597599 with :
598600 sparse-checkout : |
599601 /*
600602 !/.repos/
601603 sparse-checkout-cone-mode : false
602604
603605 - name : Setup Vite+
604- uses : voidzero-dev/setup-vp@v1
606+ uses : voidzero-dev/setup-vp@250f29ce396baf5e8f24498e17c0dfdebabc26eb # v1.15.0
605607 with :
606608 node-version-file : package.json
607609 cache : true
@@ -626,7 +628,7 @@ jobs:
626628 timeout-minutes : 15
627629 steps :
628630 - name : Checkout
629- uses : actions/checkout@v6
631+ uses : actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
630632 with :
631633 sparse-checkout : |
632634 /*
@@ -684,7 +686,7 @@ jobs:
684686 # server tests ran must have produced it.
685687 - name : Require transfer measurements
686688 if : needs.test_server.result == 'success' && needs.changes.outputs.test_server != 'false'
687- uses : actions/download-artifact@v8
689+ uses : actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
688690 with :
689691 name : thread-transfer-results
690692 path : ${{ runner.temp }}/thread-transfer
0 commit comments