Commit a872ce9
ci: materialise pnpm from a cached Corepack store instead of downloading per job (#11370)
`corepack enable` only writes shims; the pnpm tarball is fetched from
registry.npmjs.org on the first pnpm invocation in the job. A merge-queue build
is 24 jobs, so one merge attempt made 24 independent registry calls before any
test ran, and any one of them could eject the PR and force every PR behind it
to rebuild.
Add a `.github/actions/setup-pnpm` composite action that restores the Corepack
store (COREPACK_HOME) from the actions cache, keyed on the packageManager pin,
then materialises pnpm from it. A warm store makes the happy path fully
network-free. A bounded retry covers the cold-cache case only.
Applied uniformly to all 7 Corepack sites in ci.yml, including the one at the
temporal-conformance job that had no paired verify step.
`actions/setup-node` deliberately stays in the workflow at all 7 sites:
scripts/check-node-version.mjs scans .github/workflows/*.yml only and reports
how many setup-node steps it audited, so moving those steps into the composite
would drop them from its census while it still printed OK.
Claude-Session: https://claude.ai/code/session_015ahemw8RcTgqtxrj15PEZx
Co-authored-by: os-steve <steve@objectstack.ai>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>1 parent 82b65ec commit a872ce9
2 files changed
Lines changed: 125 additions & 32 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
288 | 288 | | |
289 | 289 | | |
290 | 290 | | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
| 291 | + | |
| 292 | + | |
296 | 293 | | |
297 | 294 | | |
298 | 295 | | |
| |||
874 | 871 | | |
875 | 872 | | |
876 | 873 | | |
877 | | - | |
878 | | - | |
| 874 | + | |
| 875 | + | |
879 | 876 | | |
880 | 877 | | |
881 | 878 | | |
| |||
1068 | 1065 | | |
1069 | 1066 | | |
1070 | 1067 | | |
1071 | | - | |
1072 | | - | |
1073 | | - | |
1074 | | - | |
1075 | | - | |
| 1068 | + | |
| 1069 | + | |
1076 | 1070 | | |
1077 | 1071 | | |
1078 | 1072 | | |
| |||
1207 | 1201 | | |
1208 | 1202 | | |
1209 | 1203 | | |
1210 | | - | |
1211 | | - | |
1212 | | - | |
1213 | | - | |
1214 | | - | |
| 1204 | + | |
| 1205 | + | |
1215 | 1206 | | |
1216 | 1207 | | |
1217 | 1208 | | |
| |||
1401 | 1392 | | |
1402 | 1393 | | |
1403 | 1394 | | |
1404 | | - | |
1405 | | - | |
1406 | | - | |
1407 | | - | |
1408 | | - | |
| 1395 | + | |
| 1396 | + | |
1409 | 1397 | | |
1410 | 1398 | | |
1411 | 1399 | | |
| |||
1550 | 1538 | | |
1551 | 1539 | | |
1552 | 1540 | | |
1553 | | - | |
1554 | | - | |
1555 | | - | |
1556 | | - | |
1557 | | - | |
| 1541 | + | |
| 1542 | + | |
1558 | 1543 | | |
1559 | 1544 | | |
1560 | 1545 | | |
| |||
1723 | 1708 | | |
1724 | 1709 | | |
1725 | 1710 | | |
1726 | | - | |
1727 | | - | |
1728 | | - | |
1729 | | - | |
1730 | | - | |
| 1711 | + | |
| 1712 | + | |
1731 | 1713 | | |
1732 | 1714 | | |
1733 | 1715 | | |
| |||
0 commit comments