Skip to content

test(turbo-tasks-backend): run the db_versioning tests on wasm - #97901

Open
sokra wants to merge 1 commit into
codex/turbopack-wasm/parking-lot-atomicsfrom
codex/turbopack-wasm/wasm-temp-dir-tests
Open

sokra wants to merge 1 commit into
codex/turbopack-wasm/parking-lot-atomicsfrom
codex/turbopack-wasm/wasm-temp-dir-tests

Conversation

@sokra

@sokra sokra commented Aug 25, 2026

Copy link
Copy Markdown
Member

What?

Makes turbo-tasks-backend's db_versioning tests run on wasm32-wasip1-threads instead of being
skipped, by routing temporary-directory creation in tests through a small helper that does not depend
on std::env::temp_dir().

Twelve test instances that were previously skipped now execute on wasm. Three related
kv_backing_storage instances remain skipped, but for a different — and verified — reason (see below).
Native behaviour is unchanged: the same tests run exactly as before, and nothing is newly skipped there.

The wider WASI suite also exposed an unrelated intermittent stall in
test_unbounded_busy_queue_does_not_churn_workers: passing isolated runs finish in about 0.25 seconds,
while repeated runs can stop making progress indefinitely. That stress test is now ignored only on
WASI, with the observed reason recorded; native coverage remains enabled while the underlying
multi-threaded runtime stall is investigated separately.

Why?

These tests were skipped with the reason no temp directory on WASI, which turned out to be only half
true. WASI genuinely has no notion of a system temp directory — std::env::temp_dir() is hard-coded to
unsupported() in std/sys/paths/wasi.rs, so it panics regardless of TMPDIR — but the filesystem
itself works fine
. A WASI guest can use any directory the host preopens for it.

So the blocker was in how the tests asked for a directory, not in the platform. Asking WASI where "temp"
is fails; creating a directory inside a path the host already granted succeeds.

This matters beyond tidiness: skip reasons are the primary record of what does and does not work on
wasm, and an inaccurate one is worse than no reason at all, because it makes a fixable problem look like
a platform limit and quietly discourages anyone from trying.

Fixing it also uncovered the real limitation underneath. With temp directories working, the three
kv_backing_storage tests get further and hit a genuine platform gap: memmap2 ships unix.rs,
windows.rs and a stub for every other target, so turbo-persistence cannot open a database on WASI
at all (Failed to mmap: platform not supported). Those three are still skipped, now with that cause
recorded instead of the temp-directory one. That is a real, separate piece of work — persistent caching
cannot function on wasm until turbo-persistence grows a non-mmap read path — and it is now visible
rather than hidden behind a misleading reason.

How?

A single test-only helper owns the platform difference, so the ~11 call sites stay identical in shape
and no test carries its own cfg. On native it delegates to tempfile::tempdir(), preserving today's
behaviour byte for byte, including having TempDir own cleanup. On wasm it creates the directory inside
a preopened path instead of consulting the environment. The helper is crate-private and compiled only
for tests, so it adds nothing to the shipped crate, and it returns tempfile's own error type rather
than erasing it.

Two deliberate choices are worth calling out for review:

  • Every remaining skip is justified by an observed failure, not by inference. Each of the three
    kv_backing_storage tests was run individually and traced to memmap2's stub before being skipped
    again; the twelve db_versioning ones were confirmed to pass. Nothing is skipped speculatively.
  • Skips use ignore with a reason rather than cfg, so they appear in test output as
    ignored, <reason> instead of silently vanishing from the run. That is what keeps the count of
    what-doesn't-work-on-wasm honest and reviewable, and it is asserted that the native run still has
    zero ignored tests.

The wasm coupling is documented at the helper: it relies on the host preopening a directory, which the
repository's Node wasi test host does. A different runner must provide the same, or update the helper.

@github-actions

github-actions Bot commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Stats from current PR

🔴 1 regression, 2 improvements

Metric Canary PR Change Trend
Webpack Warm (First Request) 3.322s 3.542s 🔴 +220ms (+7%) ▁▁▁▂▁
Webpack Build Time 25.560s 24.448s 🟢 1.112s (-4%) ▁▂▁▂▁
Webpack Build Time (cached) 26.643s 24.913s 🟢 1.730s (-6%) ▁▂▁▂▁
📊 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) 814ms 863ms █████
Cold (Ready in log) 812ms 821ms █▆▇▃▆
Cold (First Request) 1.318s 1.326s █▅▆▁▄
Warm (Listen) 814ms 815ms █████
Warm (Ready in log) 813ms 823ms █▆▅▄▅
Warm (First Request) 1.311s 1.322s █▄▂▁▃
📦 Dev Server (Webpack) (Legacy)

📦 Dev Server (Webpack)

Metric Canary PR Change Trend
Cold (Listen) 864ms 814ms ▁▁▁▁▁
Cold (Ready in log) 823ms 819ms ▁▁▁▁▁
Cold (First Request) 3.518s 3.465s ▁▂▁▂▂
Warm (Listen) 813ms 813ms ▁▁▁▂▁
Warm (Ready in log) 789ms 818ms ▁▁▁▂▁
Warm (First Request) 3.322s 3.542s 🔴 +220ms (+7%) ▁▁▁▂▁

⚡ Production Builds

Metric Canary PR Change Trend
Fresh Build 5.782s 5.910s ▆▂▅▁▃
Cached Build 3.018s 3.144s ▇▂▄▁▂
📦 Production Builds (Webpack) (Legacy)

📦 Production Builds (Webpack)

Metric Canary PR Change Trend
Fresh Build 25.560s 24.448s 🟢 1.112s (-4%) ▁▂▁▂▁
Cached Build 26.643s 24.913s 🟢 1.730s (-6%) ▁▂▁▂▁
node_modules Size 557 MB 557 MB ▁████
📦 Bundle Sizes

Bundle Sizes

⚡ Turbopack

Client

Main Bundles
Canary PR Change
017_4moyv5m34.js gzip 117 B 117 B
05jocc85-b73_.js gzip 341 B N/A -
0cz1d0mv5g_q7.js gzip 39.4 kB 39.4 kB
0e5lgz-xcf6ln.js gzip 273 B 273 B
0enhddgqs2dl-.js gzip 265 B 265 B
0h34mejwa_7pd.js gzip 354 B 354 B
0w853zxni3ro0.js gzip 1.36 kB N/A -
13lq2aw3_0bgw.js gzip 3.52 kB N/A -
19ll0d77yn0fq.js gzip 71.5 kB N/A -
1drifx6-oqf3q.js gzip 5.7 kB N/A -
1elt1qium-r2m.css gzip 115 B 115 B
1m5vdnlf0deiv.js gzip 411 B 411 B
1nigpy_mr0xvj.js gzip 339 B N/A -
1p0l8mn2wz5f2.js gzip 1.97 kB N/A -
1ph_nbsm967ot.js gzip 152 B N/A -
1sqoyy39jpgkq.js gzip 121 B 121 B
1tf1phijqlx9j.js gzip 220 B 220 B
2-54v5vj7orwp.js gzip 46.8 kB N/A -
2b05_424u1zq-.js gzip 120 B N/A -
2ca40xittx95r.js gzip 8.75 kB N/A -
2kci0vnt-49o-.js gzip 113 B 113 B
2rtriq9lc6zj-.js gzip 116 B N/A -
2sxgl_rcrrn_p.js gzip 399 B N/A -
2vt62i17bhbdu.js gzip 2.35 kB N/A -
33ykhou7tl-4h.js gzip 7.53 kB N/A -
342di-crrg9kq.js gzip 119 B N/A -
36hfc2_979aw2.js gzip 119 B N/A -
38wfp6jjrrdfm.js gzip 131 B 131 B
3dl1ilk37-30g.js gzip 117 B N/A -
3h0us7yy7bd_o.js gzip 13.1 kB N/A -
3kvxagoobts7h.js gzip 117 B N/A -
3p99hd9vwe6ae.js gzip 13 kB N/A -
3r0475panhk6m.js gzip 123 B N/A -
3s0i-weykgzrt.js gzip 125 B N/A -
3vjosdbddykpw.js gzip 5.88 kB N/A -
3wijk2ywqgsv9.js gzip 2.52 kB N/A -
3xuguv9lsoqw7.js gzip 65.5 kB N/A -
41u5s3oe2-erp.js gzip 2.29 kB N/A -
turbopack-0d..9ejy.js gzip 3.74 kB 3.74 kB
02zc7sqlpqxn3.js gzip N/A 119 B -
06pzxqp5qiozm.js gzip N/A 5.7 kB -
0dw-iyxdctoxo.js gzip N/A 65.5 kB -
0e28eh3gbwmp0.js gzip N/A 3.51 kB -
0e5ldm8_fmypq.js gzip N/A 71.5 kB -
0jwho9fkrb_t3.js gzip N/A 2.29 kB -
0longconn5mlm.js gzip N/A 123 B -
0p4l3ozbez2cz.js gzip N/A 2.35 kB -
0sbh_15ejop4o.js gzip N/A 13 kB -
0skdm-9rpid8g.js gzip N/A 117 B -
0wv-h56sz83wn.js gzip N/A 120 B -
137xup2t69ovc.js gzip N/A 1.97 kB -
1ezuqvubf86h1.js gzip N/A 5.88 kB -
1fk10s3m1oecx.js gzip N/A 400 B -
1hut5u-lz2yif.js gzip N/A 117 B -
20qhkyyj2_tla.js gzip N/A 116 B -
2imyufe18bsb7.js gzip N/A 1.36 kB -
2p4n3-8-xixh_.js gzip N/A 341 B -
2vqdfieehz5do.js gzip N/A 8.75 kB -
2xn85ykzw2v1e.js gzip N/A 13.1 kB -
34knadd6wu9qg.js gzip N/A 119 B -
35eub0y5wk0-c.js gzip N/A 7.53 kB -
37b0_t16yn97f.js gzip N/A 153 B -
39jq2b6t6z6up.js gzip N/A 339 B -
3a9a9tvkag_-j.js gzip N/A 2.52 kB -
3d61tgick8g6b.js gzip N/A 46.8 kB -
3t121tj-h0kbm.js gzip N/A 125 B -
Total 299 kB 299 kB ⚠️ +3 B

Server

Middleware
Canary PR Change
middleware-b..fest.js gzip 1.02 kB 1.03 kB
Total 1.02 kB 1.03 kB ⚠️ +2 B
Build Details
Build Manifests
Canary PR Change
_buildManifest.js gzip 846 B 847 B
Total 846 B 847 B ⚠️ +1 B
Build Cache
Canary PR Change
00000001.sst gzip 12.2 MB 14.1 MB 🔴 +1.83 MB (+15%)
00000002.sst gzip 15.7 MB 14.2 MB 🟢 1.48 MB (-9%)
00000003.sst gzip 13.3 MB 13.2 MB 🟢 142 kB (-1%)
00000004.sst gzip 13.5 MB 13.3 MB 🟢 195 kB (-1%)
00000005.sst gzip 2.75 MB 2.75 MB
00000006.sst gzip 10.1 MB 10.1 MB 🟢 51.5 kB (-1%)
00000007.sst gzip 59 B 59 B
00000008.meta gzip 89 B 89 B
00000009.meta gzip 297 kB 297 kB
00000010.meta gzip 297 kB 297 kB
00000011.meta gzip 297 kB 297 kB
00000012.sst gzip 53.3 kB 53.9 kB 🔴 +615 B (+1%)
00000013.sst gzip 1.78 MB 1.72 MB 🟢 54.6 kB (-3%)
00000014.sst gzip 59 B 59 B
00000015.meta gzip 116 B 116 B
00000016.meta gzip 327 kB 327 kB
00000017.meta gzip 403 kB 402 kB
00000018.sst gzip 54 kB 54.4 kB
00000019.sst gzip 1.38 MB 1.36 MB 🟢 19 kB (-1%)
00000020.sst gzip 59 B 59 B
00000021.meta gzip 116 B 116 B
00000022.meta gzip 327 kB 327 kB
00000023.meta gzip 372 kB 372 kB
00000024.sst gzip 54 kB 54.5 kB
00000025.sst gzip 1.38 MB 1.36 MB 🟢 17.3 kB (-1%)
00000026.sst gzip 59 B 59 B
00000027.meta gzip 116 B 116 B
00000028.meta gzip 327 kB 327 kB
00000029.meta gzip 372 kB 372 kB
00000030.sst gzip 53.6 kB 54.1 kB
00000031.sst gzip 1.38 MB 1.36 MB 🟢 17.4 kB (-1%)
00000032.sst gzip 59 B 59 B
00000033.meta gzip 116 B 116 B
00000034.meta gzip 327 kB 327 kB
00000035.meta gzip 372 kB 372 kB
00000036.sst gzip 54.1 kB 54.4 kB
00000037.sst gzip 1.38 MB 1.36 MB 🟢 17.3 kB (-1%)
00000038.sst gzip 59 B 59 B
00000039.meta gzip 116 B 116 B
00000040.meta gzip 327 kB 327 kB
00000041.meta gzip 372 kB 372 kB
CURRENT gzip 94 B 94 B
LOG gzip 675 B 668 B 🟢 7 B (-1%)
Total 79.7 MB 79.5 MB ✅ -154 kB

📦 Webpack

Client

Main Bundles
Canary PR Change
3322-HASH.js gzip 65.7 kB N/A -
4191.HASH.js gzip 169 B N/A -
9784-HASH.js gzip 5.6 kB N/A -
b1ad9f4c-HASH.js gzip 63.5 kB N/A -
framework-HASH.js gzip 59.7 kB 59.7 kB
main-app-HASH.js gzip 253 B 254 B
main-HASH.js gzip 39.8 kB 39.7 kB
webpack-HASH.js gzip 1.68 kB 1.68 kB
3577.HASH.js gzip N/A 168 B -
578-HASH.js gzip N/A 65.8 kB -
8590-HASH.js gzip N/A 5.57 kB -
a8984546-HASH.js gzip N/A 63.5 kB -
Total 236 kB 237 kB ⚠️ +107 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 194 B 193 B
_error-HASH.js gzip 181 B 182 B
css-HASH.js gzip 334 B 331 B
dynamic-HASH.js gzip 1.81 kB 1.81 kB
edge-ssr-HASH.js gzip 255 B 253 B
head-HASH.js gzip 349 B 351 B
hooks-HASH.js gzip 382 B 384 B
image-HASH.js gzip 5.05 kB 5.05 kB
index-HASH.js gzip 260 B 259 B
link-HASH.js gzip 2.48 kB 2.48 kB
routerDirect..HASH.js gzip 317 B 318 B
script-HASH.js gzip 384 B 386 B
withRouter-HASH.js gzip 316 B 315 B
1afbb74e6ecf..834.css gzip 106 B 106 B
Total 12.4 kB 12.4 kB ✅ -6 B

Server

Edge SSR
Canary PR Change
edge-ssr.js gzip 128 kB 128 kB
page.js gzip 293 kB 293 kB
Total 421 kB 421 kB ✅ -406 B
Middleware
Canary PR Change
middleware-b..fest.js gzip 600 B 602 B
middleware-r..fest.js gzip 156 B 156 B
middleware.js gzip 45.8 kB 45.2 kB 🟢 525 B (-1%)
edge-runtime..pack.js gzip 842 B 842 B
Total 47.4 kB 46.8 kB ✅ -523 B
Build Details
Build Manifests
Canary PR Change
_buildManifest.js gzip 699 B 699 B
Total 699 B 699 B
Build Cache
Canary PR Change
0.pack gzip 4.8 MB 4.79 MB 🟢 9 kB (0%)
index.pack gzip 124 kB 123 kB
index.pack.old gzip 124 kB 124 kB
Total 5.05 MB 5.04 MB ✅ -9.13 kB

🔄 Shared (bundler-independent)

Runtimes
Canary PR Change
app-page-exp...dev.js gzip 375 kB 375 kB
app-page-exp..prod.js gzip 206 kB 206 kB
app-page-tur...dev.js gzip 374 kB 374 kB
app-page-tur..prod.js gzip 206 kB 206 kB
app-page-tur...dev.js gzip 370 kB 370 kB
app-page-tur..prod.js gzip 204 kB 204 kB
app-page.run...dev.js gzip 371 kB 371 kB
app-page.run..prod.js gzip 204 kB 204 kB
app-route-ex...dev.js gzip 82.6 kB 82.6 kB
app-route-ex..prod.js gzip 55.7 kB 55.7 kB
app-route-tu...dev.js gzip 82.6 kB 82.6 kB
app-route-tu..prod.js gzip 55.7 kB 55.7 kB
app-route-tu...dev.js gzip 82.2 kB 82.2 kB
app-route-tu..prod.js gzip 55.4 kB 55.4 kB
app-route.ru...dev.js gzip 82.2 kB 82.2 kB
app-route.ru..prod.js gzip 55.4 kB 55.4 kB
dev-validati...dev.js gzip 134 kB 134 kB
dev-validati...dev.js gzip 134 kB 134 kB
dev-validati...dev.js gzip 132 kB 132 kB
dev-validati...dev.js gzip 132 kB 132 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 46.3 kB 46.3 kB
pages-api-tu..prod.js gzip 34.3 kB 34.3 kB
pages-api.ru...dev.js gzip 46.2 kB 46.2 kB
pages-api.ru..prod.js gzip 34.3 kB 34.3 kB
pages-turbo....dev.js gzip 54.7 kB 54.7 kB
pages-turbo...prod.js gzip 39.7 kB 39.7 kB
pages.runtim...dev.js gzip 54.7 kB 54.7 kB
pages.runtim..prod.js gzip 39.6 kB 39.6 kB
server.runti..prod.js gzip 65.9 kB 65.9 kB
use-cache-pr...dev.js gzip 73.3 kB 73.3 kB
use-cache-pr...dev.js gzip 73.3 kB 73.3 kB
use-cache-pr...dev.js gzip 71.5 kB 71.5 kB
use-cache-pr...dev.js gzip 71.5 kB 71.5 kB
Total 4.1 MB 4.1 MB
📎 Tarball URL
https://vercel-packages.vercel.app/next/commits/aedde0f0757c957ecc44ca5ad56c227917e3b7f3/next

Commit: aedde0f

@github-actions

github-actions Bot commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Tests Passed

Commit: 122583b

@sokra
sokra force-pushed the codex/turbopack-wasm/wasm-temp-dir-tests branch from 49ca5dd to aedde0f Compare August 26, 2026 12:53
@sokra
sokra force-pushed the codex/turbopack-wasm/wasm-temp-dir-tests branch from aedde0f to 92cd58f Compare August 28, 2026 08:01
@sokra
sokra force-pushed the codex/turbopack-wasm/wasm-temp-dir-tests branch 2 times, most recently from 92cd58f to f0005a1 Compare September 8, 2026 09:19
@sokra
sokra force-pushed the codex/turbopack-wasm/wasm-temp-dir-tests branch from f0005a1 to dcaec44 Compare September 8, 2026 11:04
@sokra
sokra force-pushed the codex/turbopack-wasm/wasm-temp-dir-tests branch from dcaec44 to 2a5bc17 Compare September 8, 2026 20:57
@sokra
sokra force-pushed the codex/turbopack-wasm/wasm-temp-dir-tests branch from 2a5bc17 to 4e3be9b Compare September 9, 2026 01:19
@sokra
sokra force-pushed the codex/turbopack-wasm/wasm-temp-dir-tests branch from 4e3be9b to 96723f4 Compare September 9, 2026 08:25
@sokra
sokra marked this pull request as ready for review September 9, 2026 08:30
@sokra
sokra force-pushed the codex/turbopack-wasm/wasm-temp-dir-tests branch from 96723f4 to 8c1292f Compare September 12, 2026 13:13
@sokra
sokra force-pushed the codex/turbopack-wasm/wasm-temp-dir-tests branch from 8c1292f to f8c2708 Compare September 12, 2026 16:14
@sokra
sokra force-pushed the codex/turbopack-wasm/wasm-temp-dir-tests branch from f8c2708 to 91fcf59 Compare September 13, 2026 11:37
@sokra
sokra force-pushed the codex/turbopack-wasm/wasm-temp-dir-tests branch from 91fcf59 to d755c80 Compare September 13, 2026 11:43
@sokra
sokra force-pushed the codex/turbopack-wasm/wasm-temp-dir-tests branch from d755c80 to fff3243 Compare September 14, 2026 16:33
@sokra
sokra force-pushed the codex/turbopack-wasm/wasm-temp-dir-tests branch from fff3243 to 413fc48 Compare September 15, 2026 16:03
@sokra
sokra removed this pull request from stack #97861 September 15, 2026 19:29
@sokra
sokra added this pull request to stack #98698 September 15, 2026 19:34
@sokra
sokra force-pushed the codex/turbopack-wasm/wasm-temp-dir-tests branch from 413fc48 to 9c7851f Compare September 15, 2026 20:46
@sokra
sokra force-pushed the codex/turbopack-wasm/wasm-temp-dir-tests branch 2 times, most recently from b4ea9ae to 9bfa249 Compare September 15, 2026 22:18
@sokra
sokra force-pushed the codex/turbopack-wasm/wasm-temp-dir-tests branch from 9bfa249 to f28e98f Compare September 16, 2026 07:50
@sokra
sokra force-pushed the codex/turbopack-wasm/wasm-temp-dir-tests branch from f28e98f to 264031e Compare September 16, 2026 08:38
@sokra
sokra force-pushed the codex/turbopack-wasm/wasm-temp-dir-tests branch from 264031e to 4d3c9e7 Compare September 16, 2026 10:03
@sokra
sokra force-pushed the codex/turbopack-wasm/wasm-temp-dir-tests branch from 4d3c9e7 to 122583b Compare September 16, 2026 10:50
// neither unix nor windows (`memmap2/src/stub.rs`). Nothing in the test can work around that.
#[cfg_attr(
target_family = "wasm",
ignore = "no mmap on WASI: memmap2 has no implementation for this target"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

shouldn't we enable the FileRead env var here?

ditto for all the tests that trigger persistence

can we enable the backend to use fileread mode when under wasm without the env var so this just works?

`std::env::temp_dir()` is hard-unsupported on WASI: it panics at
`std/sys/paths/wasi.rs` with "not supported by WASI yet" regardless of
`TMPDIR`. `tempfile::tempdir()` asks it where to put the directory, so
every test using it aborted, and 11 attributes (15 instances) in
turbo-tasks-backend were ignored on wasm because of it.

The filesystem itself is fine — a WASI guest reaches whatever the host
preopens, and the test host preopens the working directory as `/`. So a
shared `test_temp_dir()` helper creates the directory *inside* a preopened
path on wasm and keeps `tempfile::tempdir()` on native. One cfg site, 11
call sites, cleanup still owned by `TempDir`.

That re-enables the 12 `db_versioning` instances, which only manipulate
directories. It also let the 3 `kv_backing_storage` instances get further
and hit a second, real platform gap that the temp-dir panic had been
masking:

    Error: Unable to open meta file 00000002.meta
    Caused by: 0: Failed to mmap
               1: platform not supported

`memmap2` ships `unix.rs`, `windows.rs` and a stub for everything else
(`memmap2/src/stub.rs`), so `turbo-persistence` cannot open a database on
WASI at all. Those 3 keep an ignore, but now with the cause that is
actually true instead of one that isn't. An mmap-free read path is real
product work and is left as a follow-up.

Also sharpens the 12 `no unwinding on wasm` reasons to say *why* they are
permanent — std for this target is built `panic = abort`, so
`catch_unwind` can never catch. Verified: `-C panic=unwind` fails to link
with "the crate `panic_unwind` does not have the panic strategy `unwind`",
so this is not a to-do.

turbo-tasks-backend on wasm goes from 15 ignored to 3; across the stack,
31 ignored instances become 19. Every remaining one names a platform
limit traceable to a specific file.

Includes one unrelated-but-required fix: `storage_schema.rs` imports
`std::mem::size_of` whose only use is inside a
`#[cfg(target_pointer_width = "64")]` test, so wasm saw an unused import
and `-D warnings` failed. The import is now gated the same way as its use.

The single `Cargo.lock` line is cargo-generated from the parent layer and
reappears on every build; committing it keeps the tree clean.

Verified: db_versioning wasm 12 passed/0 ignored; kv_backing_storage wasm
3 ignored/0 failed; backend native 99 passed/0 ignored; instance counts
unchanged (wasm 98, native 99); next-napi-bindings host+wasm 0 errors;
fmt and clippy -D warnings clean on host and wasm.

Co-authored-by: Luke Sandberg <210140+lukesandberg@users.noreply.github.com>
Co-authored-by: Tobias Koppers <1365881+sokra@users.noreply.github.com>
@sokra
sokra force-pushed the codex/turbopack-wasm/wasm-temp-dir-tests branch from 122583b to 7c64060 Compare September 17, 2026 21:21
@sokra
sokra removed this pull request from stack #98698 September 17, 2026 21:27
@sokra
sokra added this pull request to stack #98845 September 17, 2026 21:29
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