Skip to content

[ci] Replace ijjk/rust-cache with upstream version that uses actions/cache#94319

Draft
bgw wants to merge 1 commit into
canaryfrom
bgw/rust-cache-use-upstream
Draft

[ci] Replace ijjk/rust-cache with upstream version that uses actions/cache#94319
bgw wants to merge 1 commit into
canaryfrom
bgw/rust-cache-use-upstream

Conversation

@bgw
Copy link
Copy Markdown
Member

@bgw bgw commented Jun 1, 2026

The reason for using this fork of Swatinem/rust-cache was to support the turborepo cache. We're now consolidating on actions/cache now that we got rid of self-hosted runners, so we should switch back to the upstream version.

test plan

  • ?

Copy link
Copy Markdown
Member Author

bgw commented Jun 1, 2026

This stack of pull requests is managed by Graphite. Learn more about stacking.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 1, 2026

Failing test suites

Commit: b886d5c | About building and testing Next.js

pnpm test-start-turbo test/production/deterministic-build/deployment-id.test.ts (turbopack) (job)

  • deterministic build - changing deployment id > build output API - cacheComponents adapter > should produce identical build outputs even when changing deployment id (DD)
  • deterministic build - changing deployment id > build output API - cacheComponents builder > should produce identical build outputs even when changing deployment id (DD)
  • deterministic build - changing deployment id > build output API - standard adapter > should produce identical build outputs even when changing deployment id (DD)
  • deterministic build - changing deployment id > build output API - standard builder > should produce identical build outputs even when changing deployment id (DD)
Expand output

● deterministic build - changing deployment id › build output API - standard builder › should produce identical build outputs even when changing deployment id

expect(received).toBe(expected) // Object.is equality

Expected: 0
Received: 1

  124 |   // First build
  125 |   next.env['NEXT_DEPLOYMENT_ID'] = 'foo-dpl-id'
> 126 |   expect((await next.build()).exitCode).toBe(0)
      |                                         ^
  127 |   let run1 = await readFiles(next)
  128 |
  129 |   // Second build

  at toBe (production/deterministic-build/deployment-id.test.ts:126:41)
  at Object.<anonymous> (production/deterministic-build/deployment-id.test.ts:240:32)

● deterministic build - changing deployment id › build output API - standard adapter › should produce identical build outputs even when changing deployment id

expect(received).toBe(expected) // Object.is equality

Expected: 0
Received: 1

  124 |   // First build
  125 |   next.env['NEXT_DEPLOYMENT_ID'] = 'foo-dpl-id'
> 126 |   expect((await next.build()).exitCode).toBe(0)
      |                                         ^
  127 |   let run1 = await readFiles(next)
  128 |
  129 |   // Second build

  at toBe (production/deterministic-build/deployment-id.test.ts:126:41)
  at Object.<anonymous> (production/deterministic-build/deployment-id.test.ts:240:32)

● deterministic build - changing deployment id › build output API - cacheComponents builder › should produce identical build outputs even when changing deployment id

expect(received).toBe(expected) // Object.is equality

Expected: 0
Received: 1

  124 |   // First build
  125 |   next.env['NEXT_DEPLOYMENT_ID'] = 'foo-dpl-id'
> 126 |   expect((await next.build()).exitCode).toBe(0)
      |                                         ^
  127 |   let run1 = await readFiles(next)
  128 |
  129 |   // Second build

  at toBe (production/deterministic-build/deployment-id.test.ts:126:41)
  at Object.<anonymous> (production/deterministic-build/deployment-id.test.ts:240:32)

● deterministic build - changing deployment id › build output API - cacheComponents adapter › should produce identical build outputs even when changing deployment id

expect(received).toBe(expected) // Object.is equality

Expected: 0
Received: 1

  124 |   // First build
  125 |   next.env['NEXT_DEPLOYMENT_ID'] = 'foo-dpl-id'
> 126 |   expect((await next.build()).exitCode).toBe(0)
      |                                         ^
  127 |   let run1 = await readFiles(next)
  128 |
  129 |   // Second build

  at toBe (production/deterministic-build/deployment-id.test.ts:126:41)
  at Object.<anonymous> (production/deterministic-build/deployment-id.test.ts:240:32)

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 1, 2026

Stats from current PR

🟢 1 improvement

Metric Canary PR Change Trend
node_modules Size 508 MB 508 MB 🟢 98.4 kB (0%) ▁▁▁██
📊 All Metrics
📖 Metrics Glossary

Dev Server Metrics:

  • Listen = TCP port starts accepting connections
  • First Request = HTTP server returns successful response
  • Cold = Fresh build (no cache)
  • Warm = With cached build artifacts

Build Metrics:

  • Fresh = Clean build (no .next directory)
  • Cached = With existing .next directory

Change Thresholds:

  • Time: Changes < 50ms AND < 10%, OR < 2% are insignificant
  • Size: Changes < 1KB AND < 1% are insignificant
  • All other changes are flagged to catch regressions

⚡ Dev Server

Metric Canary PR Change Trend
Cold (Listen) 812ms 812ms ▆▁▃▆█
Cold (Ready in log) 775ms 776ms ▂▁▃▂█
Cold (First Request) 1.173s 1.180s ▃▂▄▄█
Warm (Listen) 811ms 812ms ▄▂▄▄▇
Warm (Ready in log) 776ms 776ms ▃▁▅▄█
Warm (First Request) 575ms 575ms ▄▂▆▅█
📦 Dev Server (Webpack) (Legacy)

📦 Dev Server (Webpack)

Metric Canary PR Change Trend
Cold (Listen) 812ms 811ms █████
Cold (Ready in log) 776ms 778ms █▇██▆
Cold (First Request) 3.170s 3.178s ▄▅▅▇▄
Warm (Listen) 811ms 811ms █████
Warm (Ready in log) 777ms 777ms ▇▇█▇▆
Warm (First Request) 3.201s 3.198s ▃▅▆▆▃

⚡ Production Builds

Metric Canary PR Change Trend
Fresh Build 5.046s 5.082s ▂▂▆▃▃
Cached Build 5.101s 5.096s ▃▃▄▅▇
📦 Production Builds (Webpack) (Legacy)

📦 Production Builds (Webpack)

Metric Canary PR Change Trend
Fresh Build 23.877s 23.751s ▂▁▇█▄
Cached Build 23.990s 23.777s ▁▁▆█▁
node_modules Size 508 MB 508 MB 🟢 98.4 kB (0%) ▁▁▁██
📦 Bundle Sizes

Bundle Sizes

⚡ Turbopack

Client

Main Bundles
Canary PR Change
0-f-17t-npm6m.js gzip 154 B N/A -
04hm05ar7kldw.js gzip 5.73 kB N/A -
0bedn25rxx6ry.js gzip 159 B N/A -
0cidcrz007rdy.js gzip 65.6 kB N/A -
0cz1d0mv5g_q7.js gzip 39.4 kB 39.4 kB
0dvitrl5zg37g.js gzip 8.82 kB N/A -
0j5l0-of142ip.js gzip 155 B N/A -
0sf7ysou-72zd.js gzip 8.71 kB N/A -
0vqwhjxe60kfh.js gzip 156 B N/A -
0w85ncr0e6v74.js gzip 168 B N/A -
157abun3hwc_s.js gzip 10.3 kB N/A -
1arhay5cu2web.js gzip 71 kB N/A -
1efwdel1m3saz.js gzip 157 B N/A -
1elt1qium-r2m.css gzip 115 B 115 B
1jpaub6y8xlfr.js gzip 2.3 kB N/A -
1oi4fe_tu_0oa.js gzip 155 B N/A -
1ot0mvscrc_uf.js gzip 233 B N/A -
1rk1el84f2_lz.js gzip 155 B N/A -
2_m3xv2uq3sjc.js gzip 1.46 kB N/A -
24y34mwgrkqp4.js gzip 8.78 kB N/A -
2c-fd4y1zozz8.js gzip 8.79 kB N/A -
2d7416h_xd36x.js gzip 8.71 kB N/A -
2l5rruruo62gi.js gzip 160 B N/A -
2lyuhit6rn8fy.js gzip 9.44 kB N/A -
2q0gr8wfr3jwl.js gzip 8.77 kB N/A -
2qbccqdsdnwql.js gzip 154 B N/A -
2t9e75oz6r0zp.js gzip 8.76 kB N/A -
2tu4ozix-297g.js gzip 7.61 kB N/A -
2uku_olcn15b7.js gzip 8.79 kB N/A -
30r8mm-46bdqy.js gzip 220 B 220 B
340x4rsgf3u0g.js gzip 13.8 kB N/A -
38uju2wk2t_c8.js gzip 155 B N/A -
3c1jdxkzlb8oq.js gzip 12.9 kB N/A -
3inab2jybr4k9.js gzip 450 B N/A -
3jkm5tdjvaf_q.js gzip 13.1 kB N/A -
3mt67agm5wp40.js gzip 10.6 kB N/A -
3npr-wfnuzppc.js gzip 50.5 kB N/A -
3s0n085fubzek.js gzip 151 B N/A -
3saabek4kohwi.js gzip 10 kB N/A -
3taxvavjo16zc.js gzip 155 B N/A -
4189xmby9yu1p.js gzip 13.6 kB N/A -
turbopack-09..1q6n.js gzip 4.23 kB N/A -
turbopack-0y..2ycq.js gzip 4.23 kB N/A -
turbopack-14..556n.js gzip 4.21 kB N/A -
turbopack-1c..o_or.js gzip 4.23 kB N/A -
turbopack-1f..1zsw.js gzip 4.22 kB N/A -
turbopack-1h.._e44.js gzip 4.23 kB N/A -
turbopack-1i..mbwf.js gzip 4.23 kB N/A -
turbopack-1u..rw7p.js gzip 4.23 kB N/A -
turbopack-2e..q3pw.js gzip 4.23 kB N/A -
turbopack-2f..3370.js gzip 4.23 kB N/A -
turbopack-2t..ml7-.js gzip 4.23 kB N/A -
turbopack-2y..zjbl.js gzip 4.23 kB N/A -
turbopack-3e..y1oj.js gzip 4.23 kB N/A -
turbopack-3p..k-ga.js gzip 4.24 kB N/A -
0_i7nqgx23st7.js gzip N/A 10 kB -
0-vn2ff18s0im.js gzip N/A 156 B -
06puhytyxk31p.js gzip N/A 8.82 kB -
0b_2kh6mupu9e.js gzip N/A 157 B -
0bu428s3duhqp.js gzip N/A 7.61 kB -
0j42f9zonj0wd.js gzip N/A 13 kB -
0m34gln_kt4fg.js gzip N/A 5.73 kB -
159cwn6hbr-in.js gzip N/A 160 B -
1axp3-t1jbjqi.js gzip N/A 160 B -
1czxus355fsmv.js gzip N/A 155 B -
1g3q1ww01thnl.js gzip N/A 2.3 kB -
1hraqxuiymq6v.js gzip N/A 8.79 kB -
1l9un1sl77287.js gzip N/A 1.46 kB -
1t7gsvdiyt3r3.js gzip N/A 50.6 kB -
1use12_sq250e.js gzip N/A 156 B -
2_d_z1unbwi1_.js gzip N/A 156 B -
2147zgtf14z-q.js gzip N/A 234 B -
23bz3xsg-5-1s.js gzip N/A 8.71 kB -
27441mytv7pbm.js gzip N/A 9.43 kB -
2bp8-drcnrd0u.js gzip N/A 153 B -
2cjkwjgm1zcfs.js gzip N/A 8.71 kB -
2n6lhqsg6libb.js gzip N/A 154 B -
2scd8zaoyb8md.js gzip N/A 8.79 kB -
2st_qs6p_9us0.js gzip N/A 13.1 kB -
2v_u-l_mh7566.js gzip N/A 152 B -
2yidwe494v0dr.js gzip N/A 169 B -
2zo2exm1d8qj1.js gzip N/A 13.6 kB -
3-wy5wsgl7kd4.js gzip N/A 157 B -
30oszfu8bgqbc.js gzip N/A 13.9 kB -
34a2oieip_tle.js gzip N/A 65.6 kB -
3hn75zuxly9az.js gzip N/A 10.3 kB -
3hqh7m128tvsn.js gzip N/A 8.77 kB -
3hqti_t-zy1x4.js gzip N/A 449 B -
3jte-w814wmzg.js gzip N/A 155 B -
3mnawenie1flm.js gzip N/A 8.76 kB -
3ubsozlu6zs38.js gzip N/A 10.6 kB -
3xmd80e9al7x7.js gzip N/A 71 kB -
43iwfqjnx1cy_.js gzip N/A 8.78 kB -
turbopack-0c..nvgk.js gzip N/A 4.2 kB -
turbopack-0d..87dr.js gzip N/A 4.2 kB -
turbopack-0e..3y55.js gzip N/A 4.2 kB -
turbopack-0q..cuis.js gzip N/A 4.2 kB -
turbopack-0y..4zn3.js gzip N/A 4.2 kB -
turbopack-0y..6ulv.js gzip N/A 4.18 kB -
turbopack-0z..7doa.js gzip N/A 4.2 kB -
turbopack-15..op-n.js gzip N/A 4.2 kB -
turbopack-1g..25yd.js gzip N/A 4.2 kB -
turbopack-25..9vsk.js gzip N/A 4.2 kB -
turbopack-25..4epw.js gzip N/A 4.21 kB -
turbopack-2d..ind2.js gzip N/A 4.2 kB -
turbopack-2p..gyqg.js gzip N/A 4.2 kB -
turbopack-3y..107p.js gzip N/A 4.2 kB -
Total 470 kB 469 kB ✅ -239 B

Server

Middleware
Canary PR Change
middleware-b..fest.js gzip 728 B 717 B 🟢 11 B (-2%)
Total 728 B 717 B ✅ -11 B
Build Details
Build Manifests
Canary PR Change
_buildManifest.js gzip 433 B 435 B
Total 433 B 435 B ⚠️ +2 B

📦 Webpack

Client

Main Bundles
Canary PR Change
2258-HASH.js gzip 61.7 kB N/A -
2266-HASH.js gzip 4.69 kB N/A -
3317.HASH.js gzip 169 B N/A -
4866-HASH.js gzip 5.64 kB N/A -
9e302639-HASH.js gzip 62.8 kB N/A -
framework-HASH.js gzip 59.5 kB 59.5 kB
main-app-HASH.js gzip 255 B 254 B
main-HASH.js gzip 39.9 kB 39.9 kB
webpack-HASH.js gzip 1.68 kB 1.68 kB
175fd0fd-HASH.js gzip N/A 62.8 kB -
2596-HASH.js gzip N/A 5.63 kB -
34-HASH.js gzip N/A 61.7 kB -
5691.HASH.js gzip N/A 169 B -
9156-HASH.js gzip N/A 4.68 kB -
Total 236 kB 236 kB ✅ -17 B
Polyfills
Canary PR Change
polyfills-HASH.js gzip 39.4 kB 39.4 kB
Total 39.4 kB 39.4 kB
Pages
Canary PR Change
_app-HASH.js gzip 193 B 193 B
_error-HASH.js gzip 181 B 182 B
css-HASH.js gzip 334 B 332 B
dynamic-HASH.js gzip 1.79 kB 1.81 kB
edge-ssr-HASH.js gzip 255 B 255 B
head-HASH.js gzip 351 B 348 B
hooks-HASH.js gzip 385 B 384 B
image-HASH.js gzip 580 B 580 B
index-HASH.js gzip 257 B 259 B
link-HASH.js gzip 2.51 kB 2.52 kB
routerDirect..HASH.js gzip 318 B 319 B
script-HASH.js gzip 387 B 386 B
withRouter-HASH.js gzip 316 B 316 B
1afbb74e6ecf..834.css gzip 106 B 106 B
Total 7.97 kB 7.99 kB ⚠️ +19 B

Server

Edge SSR
Canary PR Change
edge-ssr.js gzip 126 kB 126 kB
page.js gzip 277 kB 272 kB 🟢 5.28 kB (-2%)
Total 404 kB 398 kB ✅ -5.49 kB
Middleware
Canary PR Change
middleware-b..fest.js gzip 618 B 614 B
middleware-r..fest.js gzip 155 B 155 B
middleware.js gzip 44.6 kB 44.8 kB
edge-runtime..pack.js gzip 842 B 842 B
Total 46.2 kB 46.4 kB ⚠️ +192 B
Build Details
Build Manifests
Canary PR Change
_buildManifest.js gzip 719 B 717 B
Total 719 B 717 B ✅ -2 B
Build Cache
Canary PR Change
0.pack gzip 4.51 MB 4.5 MB
index.pack gzip 114 kB 115 kB
index.pack.old gzip 114 kB 114 kB
Total 4.73 MB 4.73 MB ✅ -2.6 kB

🔄 Shared (bundler-independent)

Runtimes
Canary PR Change
app-page-exp...dev.js gzip 352 kB 352 kB
app-page-exp..prod.js gzip 196 kB 196 kB
app-page-tur...dev.js gzip 352 kB 352 kB
app-page-tur..prod.js gzip 196 kB 196 kB
app-page-tur...dev.js gzip 348 kB 348 kB
app-page-tur..prod.js gzip 194 kB 194 kB
app-page.run...dev.js gzip 348 kB 348 kB
app-page.run..prod.js gzip 194 kB 194 kB
app-route-ex...dev.js gzip 77.5 kB 77.5 kB
app-route-ex..prod.js gzip 52.9 kB 52.9 kB
app-route-tu...dev.js gzip 77.6 kB 77.6 kB
app-route-tu..prod.js gzip 52.9 kB 52.9 kB
app-route-tu...dev.js gzip 77.2 kB 77.2 kB
app-route-tu..prod.js gzip 52.7 kB 52.7 kB
app-route.ru...dev.js gzip 77.1 kB 77.1 kB
app-route.ru..prod.js gzip 52.7 kB 52.7 kB
dist_client_...dev.js gzip 324 B 324 B
dist_client_...dev.js gzip 326 B 326 B
dist_client_...dev.js gzip 318 B 318 B
dist_client_...dev.js gzip 317 B 317 B
pages-api-tu...dev.js gzip 44.3 kB 44.3 kB
pages-api-tu..prod.js gzip 33.8 kB 33.8 kB
pages-api.ru...dev.js gzip 44.3 kB 44.3 kB
pages-api.ru..prod.js gzip 33.7 kB 33.7 kB
pages-turbo....dev.js gzip 53.7 kB 53.7 kB
pages-turbo...prod.js gzip 39.4 kB 39.4 kB
pages.runtim...dev.js gzip 53.6 kB 53.6 kB
pages.runtim..prod.js gzip 39.4 kB 39.4 kB
server.runti..prod.js gzip 63.2 kB 63.1 kB
use-cache-pr...dev.js gzip 70 kB 70 kB
use-cache-pr...dev.js gzip 70 kB 70 kB
use-cache-pr...dev.js gzip 68.4 kB 68.4 kB
use-cache-pr...dev.js gzip 68.3 kB 68.3 kB
Total 3.38 MB 3.38 MB ⚠️ +95 B
📝 Changed Files (25 files)

Files with changes:

  • app-page-exp..ntime.dev.js
  • app-page-exp..time.prod.js
  • app-page-tur..ntime.dev.js
  • app-page-tur..time.prod.js
  • app-page-tur..ntime.dev.js
  • app-page-tur..time.prod.js
  • app-page.runtime.dev.js
  • app-page.runtime.prod.js
  • app-route-ex..ntime.dev.js
  • app-route-ex..time.prod.js
  • app-route-tu..ntime.dev.js
  • app-route-tu..time.prod.js
  • app-route-tu..ntime.dev.js
  • app-route-tu..time.prod.js
  • app-route.runtime.dev.js
  • app-route.ru..time.prod.js
  • pages-api-tu..ntime.dev.js
  • pages-api-tu..time.prod.js
  • pages-api.runtime.dev.js
  • pages-api.ru..time.prod.js
  • ... and 5 more
View diffs
app-page-exp..ntime.dev.js
failed to diff
app-page-exp..time.prod.js

Diff too large to display

app-page-tur..ntime.dev.js
failed to diff
app-page-tur..time.prod.js
failed to diff
app-page-tur..ntime.dev.js
failed to diff
app-page-tur..time.prod.js

Diff too large to display

app-page.runtime.dev.js
failed to diff
app-page.runtime.prod.js

Diff too large to display

app-route-ex..ntime.dev.js

Diff too large to display

app-route-ex..time.prod.js

Diff too large to display

app-route-tu..ntime.dev.js

Diff too large to display

app-route-tu..time.prod.js

Diff too large to display

app-route-tu..ntime.dev.js

Diff too large to display

app-route-tu..time.prod.js

Diff too large to display

app-route.runtime.dev.js

Diff too large to display

app-route.ru..time.prod.js

Diff too large to display

pages-api-tu..ntime.dev.js

Diff too large to display

pages-api-tu..time.prod.js

Diff too large to display

pages-api.runtime.dev.js

Diff too large to display

pages-api.ru..time.prod.js

Diff too large to display

pages-turbo...ntime.dev.js

Diff too large to display

pages-turbo...time.prod.js

Diff too large to display

pages.runtime.dev.js

Diff too large to display

pages.runtime.prod.js

Diff too large to display

server.runtime.prod.js

Diff too large to display

📎 Tarball URL
https://vercel-packages.vercel.app/next/commits/b886d5c288c7b2c7a9c4b29b99b7657b94002fa6/next

Commit: b886d5c

@bgw bgw requested review from eps1lon and timneutkens June 1, 2026 20:32
@bgw bgw force-pushed the bgw/rust-cache-use-upstream branch from fee4725 to 00e66fb Compare June 1, 2026 20:33
@bgw bgw force-pushed the bgw/rust-cache-use-upstream branch from 00e66fb to b886d5c Compare June 1, 2026 20:41

- name: Cache on ${{ github.ref_name }}
- name: Cache Rust targets on ${{ github.ref_name }}
if: ${{ !matrix.docker && !env.NEXT_SKIP_BUILD_CACHE }}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we even use this step nowadays? NEXT_SKIP_BUILD_CACHE is true for production, staging, and force-preview. So we only enable the build cache for the automated preview. However, the automated preview only builds Linux which runs in Docker. Seems like this always evaluates to false.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right. gh cache list --key 'build-' --limit 1000 confirms.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants