Skip to content

probe: probe-webkit-silent (throwaway) - #332

Closed
viclafouch wants to merge 9 commits into
mainfrom
probe-webkit-silent
Closed

viclafouch wants to merge 9 commits into
mainfrom
probe-webkit-silent

Conversation

@viclafouch

Copy link
Copy Markdown
Owner

Throwaway: repeats the WebKit player specs 10 times in CI, to tell whether the e2e video's sound stalls Linux WebKit. Closed without merging.

…cal emulators of every outside service

Each e2e run, local or CI, starts its own Postgres 17 (embedded-postgres) and
MSW emulators of Bunny, Stripe, Algolia, Resend and Anthropic, holding their
state in memory for the run. A network guard fails any request that leaves
the machine, in the app server, the Playwright processes and the browser.
The library video is a 3 second fixture. .env.e2e is committed with
placeholder keys, so the e2e workflow needs no secret, and runs of different
branches no longer wait for each other.

The app reads its Bunny pull zones as full origins and takes optional
origins for each outside API, defaulting to the real hosts.

Closes #320
Closes #292
…leave the machine

WebKit reads a video through blob: URLs, whose empty hostname the guard took
for a request to the outside, and aborted.
…ck before hydration sent it away

A submit before hydration posts the form natively, which drops the token from
the address. The faster suite meets that window more often.
…f the page

Once the app's service worker controls a WebKit page, the page's requests go
through it and skip Playwright's routing: they lost the per-test x-real-ip, so
every WebKit export counted against one shared "unknown" IP and hit the
download rate limit, and the browser network guard could not see them.
No scenario relies on the service worker.
…t's routing

The per-test x-real-ip only rides on routed calls. When a call skips the
routing, as WebKit's did through the service worker, every scenario shares one
IP and the rate limits fail tests far from the cause. The fixture now names
such calls at the end of the scenario. With service workers allowed, 11 of the
12 WebKit Meme files scenarios go red on it.
The e2e video now has a sound, and a phone browser may start it muted, as
Safari on an iPhone does. The scenario checks that the tap leaves the sound
alone, whichever way the browser started it.
…e world

Since every run owns its Postgres and its emulators, the suite can run on
several machines at once. Four shards each build the app and run the seed and
the setup, then a quarter of the scenarios. The global AI search cap scenario
becomes the teardown of the setup, so it still runs after every other scenario,
in each shard. The Meme files scenarios run in parallel. One `e2e` job gathers
the shards for branch protection and Vercel.
@vercel

vercel Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
petit-meme Ready Ready Preview Nov 29, 2026 11:15pm UTC

Request Review

@github-actions

Copy link
Copy Markdown

📦 Startup JS · ✅ No heavier

Brotli · 33 routes · against main at 874fd37 · workflow run

Route Route JS Budget Startup JS vs main
✅ /admin/categories 116.2 kB 122 kB · 5.8 kB left 407.4 kB ⚪ −0.1 kB
✅ /admin/downloader 83.6 kB 89 kB · 5.4 kB left 374.8 kB ⚪ −0.1 kB

What moved

Chunk vs main Loaded by
algolia-insights ⚪ +0.1 kB /reels, /, /dmca and 17 more
app-hooks ⚪ −0.1 kB every route

Caution

Far from the goal. 🟩 is the goal, each 🟥 one more goal’s worth.

Now Goal Distance
Startup JS of /memes/$memeId/studio, the heaviest route 516.5 kB 150 kB 🟩🟥🟥🟥 3.4×
Shell (every route) 291.2 kB 150 kB 🟩🟥 1.9×
Route JS of /memes/$memeId/studio 225.3 kB 50 kB 🟩🟥🟥🟥🟥 4.5×
📋 Every route
Route Route JS Budget Startup JS vs main
✅ Shell (every route) 291.2 kB 296 kB · 4.8 kB left — —
✅ /memes/$memeId/studio 225.3 kB 228 kB · 2.7 kB left 516.5 kB ·
✅ /memes/$memeId 205.9 kB 209 kB · 3.1 kB left 497.1 kB ·
✅ /admin/library/$memeId 197.1 kB 203 kB · 5.9 kB left 488.3 kB ·
✅ /memes/ai-search 175.6 kB 178 kB · 2.4 kB left 466.8 kB ·
✅ /settings 174.5 kB 177 kB · 2.5 kB left 465.7 kB ·
✅ /submit 165.1 kB 168 kB · 2.9 kB left 456.3 kB ·
✅ /password/create-new 163.2 kB 166 kB · 2.8 kB left 454.4 kB ·
✅ /password/reset 161.5 kB 164 kB · 2.5 kB left 452.7 kB ·
✅ /memes/bookmarks 156.7 kB 160 kB · 3.3 kB left 447.9 kB ·
✅ /memes/category/$slug 155.9 kB 159 kB · 3.1 kB left 447.1 kB ·
✅ / 155.2 kB 158 kB · 2.8 kB left 446.4 kB ·
✅ /verify-email 150.2 kB 153 kB · 2.8 kB left 441.4 kB ·
✅ /app 138.7 kB 140 kB · 1.3 kB left 429.9 kB ·
✅ /pricing 137.3 kB 140 kB · 2.7 kB left 428.5 kB ·
✅ /mentions-legales 129.5 kB 133 kB · 3.5 kB left 420.7 kB ·
✅ /terms-of-use 129.5 kB 133 kB · 3.5 kB left 420.7 kB ·
✅ /privacy 129.5 kB 133 kB · 3.5 kB left 420.7 kB ·
✅ /dmca 129.5 kB 133 kB · 3.5 kB left 420.7 kB ·
✅ /faq 124.4 kB 127 kB · 2.6 kB left 415.6 kB ·
✅ /checkout/success 124.0 kB 127 kB · 3.0 kB left 415.2 kB ·
✅ /admin/library 117.9 kB 124 kB · 6.1 kB left 409.1 kB ·
✅ /admin/categories 116.2 kB 122 kB · 5.8 kB left 407.4 kB ⚪ −0.1 kB
✅ /admin/users/$userId 106.6 kB 112 kB · 5.4 kB left 397.8 kB ·
✅ /admin/users 96.0 kB 102 kB · 6.0 kB left 387.2 kB ·
✅ /reels 90.7 kB 96 kB · 5.3 kB left 381.9 kB ·
✅ /admin/proposals 85.7 kB 91 kB · 5.3 kB left 376.9 kB ·
✅ /admin/activity/$ip 84.0 kB 90 kB · 6.0 kB left 375.2 kB ·
✅ /admin/downloader 83.6 kB 89 kB · 5.4 kB left 374.8 kB ⚪ −0.1 kB
✅ /admin/activity 83.3 kB 89 kB · 5.7 kB left 374.5 kB ·
✅ /admin 81.4 kB 87 kB · 5.6 kB left 372.6 kB ·
✅ /admin/ai-search 74.5 kB 80 kB · 5.5 kB left 365.7 kB ·
✅ /embed/$memeId 69.8 kB 75 kB · 5.2 kB left 361.0 kB ·
✅ /admin/services 59.6 kB 65 kB · 5.4 kB left 350.8 kB ·
🤖 Agent brief

What this measures. The Brotli size of each JS file the server-rendered page of a route modulepreloads, read from the TanStack Start manifest of pnpm run build:e2e. The shell is what the root route preloads on every page. Route JS is what a route adds on top, each file counted once. Startup JS is both, and every comparison with main runs on it: Rolldown moves code between the shell and the routes from one build to the next, and only the startup JS of a page tells what its visitor downloads. Sizes in the data are bytes.

Rules. Budgets live in bundle-budget.json as a one-way ratchet: the size when last updated, plus 5 kB. pnpm run bundle-size --update only lowers them, and --allow-growth raises them, flagged in red against main. Never raise one to turn the check green. Chunk names drop the Rolldown hash: meme-card stands for meme-card-<hash>.js. Two chunks with the same name add up, and a chunk loaded by every route reads every route. A chunk that grows while no route loading it gets heavier shows ⚪, with isRegression: false: Rolldown renamed or merged it, and only red chunks explain a heavier route. A chunk Rolldown renamed reads old → new, with renamedFrom. First-view CSS is gated apart, by e2e/first-view.spec.ts against firstViewCss.

Reproduce

pnpm run build:e2e
gh run download 46307394879 --name bundle-size --dir /tmp/main-bundle-size
git show origin/main:bundle-budget.json > /tmp/main-budget.json
pnpm run bundle-size --base /tmp/main-bundle-size/report.json --base-budget /tmp/main-budget.json
pnpm run build:analyze

Data

{
  "verdict": "pass",
  "base": {
    "commit": "874fd37",
    "runId": "46307394879"
  },
  "violations": [],
  "raisedBudgets": [],
  "routeChanges": [
    {
      "name": "/admin/downloader",
      "beforeBytes": 374926,
      "afterBytes": 374813
    },
    {
      "name": "/admin/categories",
      "beforeBytes": 407560,
      "afterBytes": 407448
    }
  ],
  "chunkChanges": [
    {
      "chunk": "algolia-insights",
      "deltaBytes": 125,
      "loadedBy": [
        "/reels",
        "/",
        "/dmca",
        "/mentions-legales",
        "/privacy",
        "/terms-of-use",
        "/verify-email",
        "/memes/$memeId",
        "/app",
        "/checkout/success",
        "/memes/ai-search",
        "/password/create-new",
        "/password/reset",
        "/memes/$memeId/studio",
        "/memes/bookmarks",
        "/faq",
        "/pricing",
        "/settings",
        "/submit",
        "/memes/category/$slug"
      ],
      "isRegression": false
    },
    {
      "chunk": "app-hooks",
      "deltaBytes": -107,
      "loadedBy": [
        "every route"
      ],
      "isRegression": false
    }
  ]
}

@viclafouch

Copy link
Copy Markdown
Owner Author

Probe done: with the sound, 3 WebKit failures out of 161; without it, 161/161. The e2e video goes silent in #328.

@viclafouch viclafouch closed this Nov 29, 2026
@viclafouch
viclafouch deleted the probe-webkit-silent branch November 29, 2026 23:29

This branch was successfully deployed

1 active deployment
Preview — b66b69e0 Deployed Nov 29, 2026 by vercel[bot]
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.

1 participant