Repository navigation
probe: probe-webkit-silent (throwaway) - #332
viclafouch wants to merge 9 commits into
Conversation
…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.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
📦 Startup JS · ✅ No heavierBrotli · 33 routes · against main at
What moved
Caution Far from the goal. 🟩 is the goal, each 🟥 one more goal’s worth.
📋 Every route
🤖 Agent briefWhat this measures. The Brotli size of each JS file the server-rendered page of a route modulepreloads, read from the TanStack Start manifest of Rules. Budgets live in 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:analyzeData {
"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
}
]
} |
|
Probe done: with the sound, 3 WebKit failures out of 161; without it, 161/161. The e2e video goes silent in #328. |
Throwaway: repeats the WebKit player specs 10 times in CI, to tell whether the e2e video's sound stalls Linux WebKit. Closed without merging.