ci: refactor wait-for-vercel-project to use GitHub Deployments API - #1861

Merged
TooTallNate merged 4 commits into
mainfrom
ci/wait-for-vercel-via-github-api
Apr 28, 2026
Merged

ci: refactor wait-for-vercel-project to use GitHub Deployments API#1861
TooTallNate merged 4 commits into
mainfrom
ci/wait-for-vercel-via-github-api

Conversation

@TooTallNate

@TooTallNateTooTallNate commented Apr 28, 2026

Copy link
Copy Markdown
Member

Summary

Refactors the wait-for-vercel-project composite action to discover the deployment via the GitHub Deployments API instead of the Vercel REST API. This drops the per-team Vercel API token requirement (VERCEL_DOCS_TOKEN is now unreferenced anywhere in the repo) and shrinks the action's bundled dist/index.js from 5.4MB → 828KB (90K LOC removed) by dropping @vercel/sdk.

How it works

  1. Resolve the target SHA from the GitHub event payload (same as before).
  2. Find the GitHub Deployment for (sha, environment) where environment matches the Vercel-app-created naming pattern: Preview – <project-slug> or Production – <project-slug> (em-dash).
  3. Poll its latest deployment status. success and inactive are both terminal-OK — Vercel emits inactive immediately for skipped duplicate builds, and the environment_url in that case still points at the live previously-deployed URL.
  4. Resolve the dpl_xxx deployment ID from the matching commit status. Vercel posts a Vercel – <project-slug> commit status whose target_url's last path segment is the inspector ID — which equals the deployment ID without the dpl_ prefix. Action throws if the ID can't be resolved (consumers wire it into VERCEL_DEPLOYMENT_ID, which world-target uses to pick between the vercel and local worlds — an empty value would silently flip execution mode).

The action never makes a request to the deployment URL itself. By the time GitHub's deployment status reaches success, the Vercel app has already verified the deployment is live and routing is primed. This means there's no readiness probe and no need for a Deployment Protection bypass token in the action.

Inputs

BeforeAfter
team-id (required)removed
project-id (required, prj_xxx)removed
vercel-token (required)removed
project-slug (required)
github-token (optional, defaults to ${{ github.token }})
timeout, check-interval, environmentunchanged

Outputs (deployment-url, deployment-id) are unchanged.

Testing

Manually verified all three scenarios against real recent commits in this repo:

  • Workbench preview (example-nextjs-workflow-webpack) — resolves URL + dpl_xxx ID
  • Workbench production — resolves URL + dpl_xxx ID
  • Docs preview with inactive (skipped duplicate build) — resolves URL of the still-live previous deployment

Call site changes

All four invocations updated:

  • .github/workflows/tests.yml — workbench e2e jobs
  • .github/workflows/benchmarks.yml — benchmark jobs
  • .github/workflows/docs-checks.yml — docs smoke checks (also dropped the unused VERCEL_DOCS_TOKEN env var that was being forwarded into check-docs-smoke.mjs despite never being read)
  • .github/workflows/dispatch-front-workflow-release-pr.yml — front release PR dispatch. This workflow has a top-level permissions: contents: read block that would prevent the default GITHUB_TOKEN from reading the Deployments / Statuses APIs, so it explicitly passes the GitHub App token (already generated for workflow,front) via the new github-token input.

VERCEL_LABS_TOKEN is still used to set WORKFLOW_VERCEL_AUTH_TOKEN for the e2e test runtime, so it stays. VERCEL_DOCS_TOKEN is now unreferenced anywhere in the repo and can be deleted from GH after this PR merges.

Notes

  • CI-only change; no changeset needed (pnpm changeset status confirms).
  • The action's package.json now depends on @types/node@^22.19.0 directly instead of the workspace catalog: entry — pnpm install against this package uses --ignore-workspace since it's outside the workspace root.

Replaces the Vercel SDK / Vercel API token-based implementation with one
that resolves the deployment URL via the GitHub Deployments API:
- Find the GitHub Deployment for (target SHA, environment) where
environment matches the Vercel-app-created "Preview \u2013 <slug>" or
"Production \u2013 <slug>" naming pattern.
- Wait for the latest deployment status to be `success` (or `inactive`
when Vercel skips a duplicate build, in which case its environment_url
still points at the live deployment).
- Probe the URL to confirm the edge can route to it (any non-5xx
response counts as live, including 401/403 from Deployment Protection
and 404/405 from the app). Manual redirect handling treats redirects
to vercel.com as "still building".
- Resolve the dpl_xxx deployment ID from the matching commit status
(Vercel posts `Vercel \u2013 <slug>` statuses where target_url's last
path segment is the inspector ID == deployment ID without the prefix).
Inputs change: project-slug + bypass-secret + github-token (with
GITHUB_TOKEN default) replace team-id + project-id + vercel-token.
Removes the @vercel/sdk dependency, shrinking the bundled dist from
5.4MB to 829KB. The VERCEL_DOCS_TOKEN secret is no longer referenced
anywhere in the repo and can be deleted from GH after this lands.
CopilotAI review requested due to automatic review settings April 28, 2026 17:27
@vercel

vercelBot commented Apr 28, 2026

Copy link
Copy Markdown
Contributor

@changeset-bot

changeset-botBot commented Apr 28, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 24aa506

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions

github-actionsBot commented Apr 28, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

All tests passed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production9780671045
✅ 💻 Local Development10540861140
✅ 📦 Local Production10540861140
✅ 🐘 Local Postgres10540861140
✅ 🪟 Windows950095
✅ 📋 Other267018285
Total450203434845

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro8807
✅ example8807
✅ express8807
✅ fastify8807
✅ hono8807
✅ nextjs-turbopack9302
✅ nextjs-webpack9302
✅ nitro8807
✅ nuxt8807
✅ sveltekit8807
✅ vite8807
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable8906
✅ express-stable8906
✅ fastify-stable8906
✅ hono-stable8906
✅ nextjs-turbopack-canary76019
✅ nextjs-turbopack-stable9500
✅ nextjs-webpack-canary76019
✅ nextjs-webpack-stable9500
✅ nitro-stable8906
✅ nuxt-stable8906
✅ sveltekit-stable8906
✅ vite-stable8906
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable8906
✅ express-stable8906
✅ fastify-stable8906
✅ hono-stable8906
✅ nextjs-turbopack-canary76019
✅ nextjs-turbopack-stable9500
✅ nextjs-webpack-canary76019
✅ nextjs-webpack-stable9500
✅ nitro-stable8906
✅ nuxt-stable8906
✅ sveltekit-stable8906
✅ vite-stable8906
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable8906
✅ express-stable8906
✅ fastify-stable8906
✅ hono-stable8906
✅ nextjs-turbopack-canary76019
✅ nextjs-turbopack-stable9500
✅ nextjs-webpack-canary76019
✅ nextjs-webpack-stable9500
✅ nitro-stable8906
✅ nuxt-stable8906
✅ sveltekit-stable8906
✅ vite-stable8906
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack9500
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable8906
✅ e2e-local-postgres-nest-stable8906
✅ e2e-local-prod-nest-stable8906

📋 View full workflow run

@github-actions

github-actionsBot commented Apr 28, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro0.042s (-3.0%)1.005s (~)0.964s101.00x
💻 LocalExpress0.044s (-1.4%)1.005s (~)0.961s101.05x
💻 LocalNext.js (Turbopack)0.046s1.005s0.959s101.10x
🐘 PostgresExpress0.060s (+3.8%)1.010s (~)0.950s101.44x
🐘 PostgresNitro0.061s (-36.1% 🟢)1.010s (-3.2%)0.949s101.45x
🐘 PostgresNext.js (Turbopack)0.067s1.013s0.946s101.60x
workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)1.114s2.005s0.892s101.00x
💻 LocalNitro1.126s (~)2.006s (~)0.880s101.01x
💻 LocalExpress1.131s (+0.5%)2.005s (~)0.874s101.02x
🐘 PostgresNitro1.145s (~)2.009s (~)0.864s101.03x
🐘 PostgresNext.js (Turbopack)1.146s2.011s0.866s101.03x
🐘 PostgresExpress1.148s (~)2.011s (~)0.863s101.03x
workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)10.786s11.024s0.238s31.00x
🐘 PostgresNitro10.877s (~)11.021s (~)0.144s31.01x
🐘 PostgresNext.js (Turbopack)10.903s11.024s0.120s31.01x
🐘 PostgresExpress10.911s (~)11.022s (~)0.111s31.01x
💻 LocalNitro10.944s (~)11.022s (~)0.078s31.01x
💻 LocalExpress10.958s (~)11.024s (~)0.066s31.02x
workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro14.537s (~)15.023s (~)0.486s41.00x
🐘 PostgresExpress14.540s (~)15.021s (~)0.481s41.00x
💻 LocalNext.js (Turbopack)14.593s15.028s0.435s41.00x
🐘 PostgresNext.js (Turbopack)14.639s15.026s0.387s41.01x
💻 LocalExpress15.000s (~)15.280s (+1.7%)0.279s41.03x
💻 LocalNitro15.029s (~)15.531s (-3.1%)0.502s41.03x
workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro13.990s (~)14.308s (~)0.318s71.00x
🐘 PostgresExpress14.008s (~)14.445s (-1.0%)0.437s71.00x
🐘 PostgresNext.js (Turbopack)14.181s14.886s0.706s71.01x
💻 LocalNext.js (Turbopack)15.999s16.363s0.364s61.14x
💻 LocalExpress16.472s (-0.8%)17.032s (~)0.560s61.18x
💻 LocalNitro16.820s (~)17.032s (~)0.212s61.20x
Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)1.251s2.010s0.759s151.00x
🐘 PostgresNitro1.272s (~)2.010s (~)0.738s151.02x
🐘 PostgresExpress1.276s (+1.2%)2.009s (~)0.734s151.02x
💻 LocalNitro1.512s (-7.3% 🟢)2.005s (-3.3%)0.493s151.21x
💻 LocalExpress1.523s (+2.3%)2.006s (~)0.483s151.22x
💻 LocalNext.js (Turbopack)1.559s2.073s0.513s151.25x
Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.319s (-1.8%)3.010s (~)0.691s101.00x
🐘 PostgresNitro2.330s (-0.9%)3.009s (~)0.679s101.00x
🐘 PostgresNext.js (Turbopack)2.473s3.010s0.537s101.07x
💻 LocalExpress2.802s (-5.1% 🟢)3.009s (-12.9% 🟢)0.207s101.21x
💻 LocalNext.js (Turbopack)2.910s3.453s0.543s91.26x
💻 LocalNitro3.043s (-3.2%)3.675s (-5.4% 🟢)0.633s91.31x
Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro3.453s (-0.8%)4.011s (~)0.558s81.00x
🐘 PostgresExpress3.474s (~)4.010s (~)0.536s81.01x
🐘 PostgresNext.js (Turbopack)3.742s4.011s0.269s81.08x
💻 LocalExpress7.428s (-10.9% 🟢)8.021s (-11.1% 🟢)0.592s42.15x
💻 LocalNext.js (Turbopack)7.731s8.268s0.537s42.24x
💻 LocalNitro9.085s (+8.8% 🔺)10.024s (+11.1% 🔺)0.939s32.63x
Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)1.245s2.009s0.765s151.00x
🐘 PostgresExpress1.258s (~)2.008s (~)0.750s151.01x
🐘 PostgresNitro1.268s (+0.9%)2.008s (~)0.739s151.02x
💻 LocalNext.js (Turbopack)1.483s2.006s0.523s151.19x
💻 LocalExpress1.559s (-17.7% 🟢)2.072s (-12.3% 🟢)0.513s151.25x
💻 LocalNitro1.896s (+1.6%)2.391s (+2.2%)0.495s131.52x
Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro2.312s (-1.2%)3.009s (~)0.698s101.00x
🐘 PostgresExpress2.366s (+1.1%)3.010s (~)0.643s101.02x
🐘 PostgresNext.js (Turbopack)2.450s3.010s0.560s101.06x
💻 LocalNext.js (Turbopack)2.840s3.564s0.724s91.23x
💻 LocalExpress2.857s (-8.8% 🟢)3.107s (-17.4% 🟢)0.250s101.24x
💻 LocalNitro3.120s (+1.8%)4.012s (+3.2%)0.892s81.35x
Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro3.464s (~)4.010s (~)0.546s81.00x
🐘 PostgresExpress3.545s (+1.3%)4.011s (~)0.467s81.02x
🐘 PostgresNext.js (Turbopack)3.703s4.012s0.309s81.07x
💻 LocalNext.js (Turbopack)8.102s8.769s0.667s42.34x
💻 LocalExpress8.290s (-5.8% 🟢)8.770s (-5.4% 🟢)0.480s42.39x
💻 LocalNitro9.097s (-0.5%)9.773s (-2.5%)0.677s42.63x
workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.815s (-0.7%)1.023s (+1.6%)0.208s591.00x
🐘 PostgresExpress0.819s (-2.4%)1.006s (-1.7%)0.187s601.01x
🐘 PostgresNext.js (Turbopack)0.826s1.007s0.181s601.01x
💻 LocalNext.js (Turbopack)0.838s1.004s0.166s601.03x
💻 LocalNitro1.004s (+2.3%)1.458s (+33.3% 🔺)0.454s421.23x
💻 LocalExpress1.029s (+4.5%)1.770s (+64.5% 🔺)0.742s341.26x
workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.919s (~)2.123s (+1.1%)0.205s431.00x
🐘 PostgresExpress1.940s (-1.8%)2.184s (-3.3%)0.244s421.01x
🐘 PostgresNext.js (Turbopack)2.043s2.767s0.724s331.06x
💻 LocalNext.js (Turbopack)2.674s3.008s0.334s301.39x
💻 LocalNitro3.031s (~)3.801s (+1.1%)0.770s241.58x
💻 LocalExpress3.040s (+0.8%)3.884s (+8.3% 🔺)0.844s241.58x
workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.938s (-1.3%)4.296s (-1.7%)0.357s281.00x
🐘 PostgresNext.js (Turbopack)4.180s5.013s0.833s241.06x
🐘 PostgresNitro4.361s (+6.3% 🔺)4.852s (+5.4% 🔺)0.491s251.11x
💻 LocalNext.js (Turbopack)8.643s9.017s0.375s142.19x
💻 LocalExpress8.923s (-3.1%)9.325s (-6.9% 🟢)0.402s132.27x
💻 LocalNitro9.214s (-0.9%)9.787s (-2.3%)0.573s132.34x
workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)0.262s1.007s0.746s601.00x
🐘 PostgresExpress0.276s (-2.1%)1.007s (~)0.730s601.06x
🐘 PostgresNitro0.316s (+11.6% 🔺)1.009s (~)0.693s601.21x
💻 LocalExpress0.545s (-2.7%)1.004s (~)0.459s602.08x
💻 LocalNext.js (Turbopack)0.590s1.039s0.450s582.25x
💻 LocalNitro0.608s (+0.5%)1.022s (~)0.414s592.32x
workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.495s (-2.9%)1.007s (~)0.512s901.00x
🐘 PostgresNitro0.521s (+4.9%)1.008s (~)0.487s901.05x
🐘 PostgresNext.js (Turbopack)0.521s1.007s0.486s901.05x
💻 LocalExpress2.333s (-7.2% 🟢)3.009s (~)0.676s304.71x
💻 LocalNext.js (Turbopack)2.499s3.009s0.510s305.05x
💻 LocalNitro2.546s (~)3.009s (~)0.462s305.14x
workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.788s (-3.7%)1.008s (-0.9%)0.219s1201.00x
🐘 PostgresNitro0.863s (+9.1% 🔺)1.055s (+4.7%)0.192s1141.09x
🐘 PostgresNext.js (Turbopack)0.912s1.111s0.199s1081.16x
💻 LocalExpress10.240s (-8.5% 🟢)10.936s (-8.4% 🟢)0.696s1112.99x
💻 LocalNext.js (Turbopack)10.374s11.028s0.654s1113.16x
💻 LocalNitro11.279s (+0.8%)12.029s (+3.1%)0.750s1014.30x
Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)0.169s1.003s0.012s1.018s0.849s101.00x
🐘 PostgresNext.js (Turbopack)0.206s1.000s0.002s1.012s0.806s101.22x
💻 LocalNitro0.206s (-3.5%)1.004s (~)0.012s (-1.6%)1.019s (~)0.812s101.22x
🐘 PostgresExpress0.213s (+4.0%)0.999s (~)0.001s (-12.5% 🟢)1.010s (~)0.797s101.26x
💻 LocalExpress0.217s (+9.0% 🔺)1.004s (~)0.010s (-16.5% 🟢)1.016s (~)0.799s101.29x
🐘 PostgresNitro0.225s (+9.6% 🔺)0.995s (~)0.001s (-40.0% 🟢)1.009s (~)0.784s101.33x
stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.611s (-3.0%)1.022s (+1.5%)0.004s (+2.6%)1.039s (+1.6%)0.428s581.00x
💻 LocalNext.js (Turbopack)0.647s1.012s0.010s1.024s0.377s591.06x
🐘 PostgresNitro0.652s (+4.5%)1.004s (~)0.004s (-10.2% 🟢)1.022s (~)0.370s591.07x
🐘 PostgresNext.js (Turbopack)0.671s1.009s0.007s1.029s0.359s591.10x
💻 LocalExpress0.754s (~)1.013s (-1.6%)0.009s (-6.7% 🟢)1.023s (-1.6%)0.269s591.23x
💻 LocalNitro0.756s (-9.9% 🟢)1.012s (~)0.010s (+5.8% 🔺)1.023s (-8.3% 🟢)0.268s591.24x
10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.894s (-7.7% 🟢)1.108s (-11.2% 🟢)0.000s (-100.0% 🟢)1.119s (-11.0% 🟢)0.225s541.00x
🐘 PostgresExpress0.964s (~)1.240s (-3.0%)0.000s (-52.1% 🟢)1.259s (-3.6%)0.296s481.08x
🐘 PostgresNext.js (Turbopack)0.972s1.272s0.000s1.280s0.309s481.09x
💻 LocalExpress1.191s (-2.7%)2.020s (~)0.000s (+20.0% 🔺)2.022s (~)0.831s301.33x
💻 LocalNext.js (Turbopack)1.245s2.020s0.000s2.023s0.779s301.39x
💻 LocalNitro1.427s (+16.7% 🔺)2.022s (~)0.000s (+257.1% 🔺)2.203s (+9.0% 🔺)0.776s281.60x
fan-out fan-in 10 streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.740s (-2.9%)2.175s (+1.6%)0.000s (-100.0% 🟢)2.187s (+0.6%)0.448s281.00x
🐘 PostgresExpress1.811s (+2.2%)2.175s (~)0.000s (+Infinity% 🔺)2.205s (~)0.393s281.04x
🐘 PostgresNext.js (Turbopack)1.973s2.262s0.000s2.270s0.297s271.13x
💻 LocalExpress3.318s (-4.3%)4.034s (~)0.000s (-58.3% 🟢)4.038s (~)0.720s151.91x
💻 LocalNext.js (Turbopack)3.441s4.035s0.000s4.039s0.597s151.98x
💻 LocalNitro3.531s (+4.2%)4.100s (+1.7%)0.000s (-12.5% 🟢)4.102s (+1.6%)0.572s152.03x

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)12/21
🐘 PostgresNitro11/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express🐘 Postgres19/21
Next.js (Turbopack)🐘 Postgres15/21
Nitro🐘 Postgres18/21
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)

📋 View full workflow run


⚠️Community world benchmarks failed (non-blocking):

  • Community Worlds: failure

Check the workflow run for details.

@socket-security

socket-securityBot commented Apr 28, 2026

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

DiffPackageSupply Chain
Security
VulnerabilityQualityMaintenanceLicense
Addednpm/​@​types/​node@​22.19.171001008195100

View full report

CopilotAI left a comment

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.

Pull request overview

Refactors the internal wait-for-vercel-project GitHub Action to discover and poll Vercel deployments via the GitHub Deployments API (rather than Vercel’s API), simplifying secrets management and reducing the action bundle/deps.

Changes:

  • Reworked the action implementation to list GitHub Deployments by (sha, environment) and poll deployment statuses + probe the environment URL.
  • Updated CI workflows to pass project-slug / bypass-secret instead of Vercel team/project IDs and Vercel API tokens.
  • Removed @vercel/sdk from the action package dependencies and updated the lockfile accordingly.

Reviewed changes

Copilot reviewed 7 out of 9 changed files in this pull request and generated 4 comments.

Show a summary per file
FileDescription
.github/workflows/tests.ymlUpdates action invocation to use project-slug and bypass secret.
.github/workflows/benchmarks.ymlUpdates action invocation to use project-slug and bypass secret.
.github/workflows/docs-checks.ymlUpdates action invocation and removes forwarding of the unused docs Vercel token env var.
.github/workflows/dispatch-front-workflow-release-pr.ymlUpdates docs deployment wait step to use the new action inputs.
.github/actions/wait-for-vercel-project/src/wait-for-deployment.tsImplements GitHub Deployments API polling, readiness probing, and deployment-id resolution from commit statuses.
.github/actions/wait-for-vercel-project/action.ymlUpdates inputs/outputs documentation for the new mechanism and parameters.
.github/actions/wait-for-vercel-project/package.jsonDrops @vercel/sdk, updates description, adds @types/node.
.github/actions/wait-for-vercel-project/pnpm-lock.yamlReflects dependency removals/additions for the action package.
Files not reviewed (1)
  • .github/actions/wait-for-vercel-project/pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread.github/actions/wait-for-vercel-project/action.yml
Comment thread.github/actions/wait-for-vercel-project/src/wait-for-deployment.ts Outdated
Comment thread.github/workflows/dispatch-front-workflow-release-pr.yml
Comment thread.github/actions/wait-for-vercel-project/action.yml Outdated
The GitHub Deployment status transitions to `success` only after the
Vercel app finishes building and routing is live, so an extra HTTP
liveness probe of the deployment URL was redundant. Removing it lets
us also drop the bypass-secret input \u2014 protected deployments don't
need a workaround anymore because we never make the request.
Reduces the action surface area and eliminates a runtime fetch.
- Fail loudly when the dpl_xxx deployment ID can't be resolved instead
of returning an empty string. Consumers wire this into
VERCEL_DEPLOYMENT_ID, which world-target uses to pick between the
vercel and local worlds (packages/utils/src/world-target.ts), so an
empty value would silently flip execution mode.
- Pass the GitHub App token to wait-for-vercel-project in the dispatch
release workflow. The job sets `permissions: contents: read`, which
blocks the default GITHUB_TOKEN from reading the Deployments API.
The App token (already generated for workflow,front) has the
necessary scopes.
@TooTallNate
TooTallNate enabled auto-merge (squash) April 28, 2026 20:10
@TooTallNate
TooTallNate merged commit 3a08eaa into mainApr 28, 2026
154 of 165 checks passed
@TooTallNate
TooTallNate deleted the ci/wait-for-vercel-via-github-api branch April 28, 2026 20:20
ijjk pushed a commit that referenced this pull request Apr 28, 2026
…1861)
* ci: refactor wait-for-vercel-project to use GitHub Deployments API
Replaces the Vercel SDK / Vercel API token-based implementation with one
that resolves the deployment URL via the GitHub Deployments API:
- Find the GitHub Deployment for (target SHA, environment) where
environment matches the Vercel-app-created "Preview \u2013 <slug>" or
"Production \u2013 <slug>" naming pattern.
- Wait for the latest deployment status to be `success` (or `inactive`
when Vercel skips a duplicate build, in which case its environment_url
still points at the live deployment).
- Probe the URL to confirm the edge can route to it (any non-5xx
response counts as live, including 401/403 from Deployment Protection
and 404/405 from the app). Manual redirect handling treats redirects
to vercel.com as "still building".
- Resolve the dpl_xxx deployment ID from the matching commit status
(Vercel posts `Vercel \u2013 <slug>` statuses where target_url's last
path segment is the inspector ID == deployment ID without the prefix).
Inputs change: project-slug + bypass-secret + github-token (with
GITHUB_TOKEN default) replace team-id + project-id + vercel-token.
Removes the @vercel/sdk dependency, shrinking the bundled dist from
5.4MB to 829KB. The VERCEL_DOCS_TOKEN secret is no longer referenced
anywhere in the repo and can be deleted from GH after this lands.
* ci(wait-for-vercel-project): drop URL probe and bypass-secret input
The GitHub Deployment status transitions to `success` only after the
Vercel app finishes building and routing is live, so an extra HTTP
liveness probe of the deployment URL was redundant. Removing it lets
us also drop the bypass-secret input \u2014 protected deployments don't
need a workaround anymore because we never make the request.
Reduces the action surface area and eliminates a runtime fetch.
* ci(wait-for-vercel-project): address PR review
- Fail loudly when the dpl_xxx deployment ID can't be resolved instead
of returning an empty string. Consumers wire this into
VERCEL_DEPLOYMENT_ID, which world-target uses to pick between the
vercel and local worlds (packages/utils/src/world-target.ts), so an
empty value would silently flip execution mode.
- Pass the GitHub App token to wait-for-vercel-project in the dispatch
release workflow. The job sets `permissions: contents: read`, which
blocks the default GITHUB_TOKEN from reading the Deployments API.
The App token (already generated for workflow,front) has the
necessary scopes.
Sign up for freeto 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.

3 participants

@TooTallNate@ijjk
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Add copy buttons to all
 blocks\n(function() {\n function addCopyButtons() {\n document.querySelectorAll('pre code').forEach(function(codeBlock) {\n if (codeBlock.parentElement.hasAttribute('data-copy-added')) return;\n codeBlock.parentElement.setAttribute('data-copy-added', 'true');\n \n var btn = document.createElement('button');\n btn.textContent = 'Copy';\n btn.style.cssText = 'position:absolute;top:4px;right:4px;padding:2px 8px;font-size:11px;background:#4ecdc4;border:none;border-radius:4px;color:#1a1a2e;cursor:pointer;opacity:0.7;transition:opacity 0.2s;';\n btn.onmouseover = function() { this.style.opacity = '1'; };\n btn.onmouseout = function() { this.style.opacity = '0.7'; };\n btn.onclick = function() {\n navigator.clipboard.writeText(codeBlock.textContent).then(function() {\n btn.textContent = 'Copied!';\n setTimeout(function() { btn.textContent = 'Copy'; }, 1500);\n });\n };\n codeBlock.parentElement.style.position = 'relative';\n codeBlock.parentElement.appendChild(btn);\n });\n }\n \n addCopyButtons();\n \n // Re-run on dynamic content\n var observer = new MutationObserver(addCopyButtons);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Add Copy Buttons to Code Blocks");
}
} catch(__e) { console.warn('[Userscript:Add Copy Buttons to Code Blocks]', __e); }
})();
(function(){
try {
var __m = "github.com";
var __re = new RegExp('^' + "github\\.com" + '
Skip to content

ci: refactor wait-for-vercel-project to use GitHub Deployments API - #1861

Merged
TooTallNate merged 4 commits into
mainfrom
ci/wait-for-vercel-via-github-api
Apr 28, 2026
Merged

ci: refactor wait-for-vercel-project to use GitHub Deployments API#1861
TooTallNate merged 4 commits into
mainfrom
ci/wait-for-vercel-via-github-api

Conversation

@TooTallNate

@TooTallNateTooTallNate commented Apr 28, 2026

Copy link
Copy Markdown
Member

Summary

Refactors the wait-for-vercel-project composite action to discover the deployment via the GitHub Deployments API instead of the Vercel REST API. This drops the per-team Vercel API token requirement (VERCEL_DOCS_TOKEN is now unreferenced anywhere in the repo) and shrinks the action's bundled dist/index.js from 5.4MB → 828KB (90K LOC removed) by dropping @vercel/sdk.

How it works

  1. Resolve the target SHA from the GitHub event payload (same as before).
  2. Find the GitHub Deployment for (sha, environment) where environment matches the Vercel-app-created naming pattern: Preview – <project-slug> or Production – <project-slug> (em-dash).
  3. Poll its latest deployment status. success and inactive are both terminal-OK — Vercel emits inactive immediately for skipped duplicate builds, and the environment_url in that case still points at the live previously-deployed URL.
  4. Resolve the dpl_xxx deployment ID from the matching commit status. Vercel posts a Vercel – <project-slug> commit status whose target_url's last path segment is the inspector ID — which equals the deployment ID without the dpl_ prefix. Action throws if the ID can't be resolved (consumers wire it into VERCEL_DEPLOYMENT_ID, which world-target uses to pick between the vercel and local worlds — an empty value would silently flip execution mode).

The action never makes a request to the deployment URL itself. By the time GitHub's deployment status reaches success, the Vercel app has already verified the deployment is live and routing is primed. This means there's no readiness probe and no need for a Deployment Protection bypass token in the action.

Inputs

BeforeAfter
team-id (required)removed
project-id (required, prj_xxx)removed
vercel-token (required)removed
project-slug (required)
github-token (optional, defaults to ${{ github.token }})
timeout, check-interval, environmentunchanged

Outputs (deployment-url, deployment-id) are unchanged.

Testing

Manually verified all three scenarios against real recent commits in this repo:

  • Workbench preview (example-nextjs-workflow-webpack) — resolves URL + dpl_xxx ID
  • Workbench production — resolves URL + dpl_xxx ID
  • Docs preview with inactive (skipped duplicate build) — resolves URL of the still-live previous deployment

Call site changes

All four invocations updated:

  • .github/workflows/tests.yml — workbench e2e jobs
  • .github/workflows/benchmarks.yml — benchmark jobs
  • .github/workflows/docs-checks.yml — docs smoke checks (also dropped the unused VERCEL_DOCS_TOKEN env var that was being forwarded into check-docs-smoke.mjs despite never being read)
  • .github/workflows/dispatch-front-workflow-release-pr.yml — front release PR dispatch. This workflow has a top-level permissions: contents: read block that would prevent the default GITHUB_TOKEN from reading the Deployments / Statuses APIs, so it explicitly passes the GitHub App token (already generated for workflow,front) via the new github-token input.

VERCEL_LABS_TOKEN is still used to set WORKFLOW_VERCEL_AUTH_TOKEN for the e2e test runtime, so it stays. VERCEL_DOCS_TOKEN is now unreferenced anywhere in the repo and can be deleted from GH after this PR merges.

Notes

  • CI-only change; no changeset needed (pnpm changeset status confirms).
  • The action's package.json now depends on @types/node@^22.19.0 directly instead of the workspace catalog: entry — pnpm install against this package uses --ignore-workspace since it's outside the workspace root.

Replaces the Vercel SDK / Vercel API token-based implementation with one
that resolves the deployment URL via the GitHub Deployments API:
- Find the GitHub Deployment for (target SHA, environment) where
environment matches the Vercel-app-created "Preview \u2013 <slug>" or
"Production \u2013 <slug>" naming pattern.
- Wait for the latest deployment status to be `success` (or `inactive`
when Vercel skips a duplicate build, in which case its environment_url
still points at the live deployment).
- Probe the URL to confirm the edge can route to it (any non-5xx
response counts as live, including 401/403 from Deployment Protection
and 404/405 from the app). Manual redirect handling treats redirects
to vercel.com as "still building".
- Resolve the dpl_xxx deployment ID from the matching commit status
(Vercel posts `Vercel \u2013 <slug>` statuses where target_url's last
path segment is the inspector ID == deployment ID without the prefix).
Inputs change: project-slug + bypass-secret + github-token (with
GITHUB_TOKEN default) replace team-id + project-id + vercel-token.
Removes the @vercel/sdk dependency, shrinking the bundled dist from
5.4MB to 829KB. The VERCEL_DOCS_TOKEN secret is no longer referenced
anywhere in the repo and can be deleted from GH after this lands.
CopilotAI review requested due to automatic review settings April 28, 2026 17:27
@vercel

vercelBot commented Apr 28, 2026

Copy link
Copy Markdown
Contributor

@changeset-bot

changeset-botBot commented Apr 28, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 24aa506

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions

github-actionsBot commented Apr 28, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

All tests passed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production9780671045
✅ 💻 Local Development10540861140
✅ 📦 Local Production10540861140
✅ 🐘 Local Postgres10540861140
✅ 🪟 Windows950095
✅ 📋 Other267018285
Total450203434845

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro8807
✅ example8807
✅ express8807
✅ fastify8807
✅ hono8807
✅ nextjs-turbopack9302
✅ nextjs-webpack9302
✅ nitro8807
✅ nuxt8807
✅ sveltekit8807
✅ vite8807
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable8906
✅ express-stable8906
✅ fastify-stable8906
✅ hono-stable8906
✅ nextjs-turbopack-canary76019
✅ nextjs-turbopack-stable9500
✅ nextjs-webpack-canary76019
✅ nextjs-webpack-stable9500
✅ nitro-stable8906
✅ nuxt-stable8906
✅ sveltekit-stable8906
✅ vite-stable8906
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable8906
✅ express-stable8906
✅ fastify-stable8906
✅ hono-stable8906
✅ nextjs-turbopack-canary76019
✅ nextjs-turbopack-stable9500
✅ nextjs-webpack-canary76019
✅ nextjs-webpack-stable9500
✅ nitro-stable8906
✅ nuxt-stable8906
✅ sveltekit-stable8906
✅ vite-stable8906
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable8906
✅ express-stable8906
✅ fastify-stable8906
✅ hono-stable8906
✅ nextjs-turbopack-canary76019
✅ nextjs-turbopack-stable9500
✅ nextjs-webpack-canary76019
✅ nextjs-webpack-stable9500
✅ nitro-stable8906
✅ nuxt-stable8906
✅ sveltekit-stable8906
✅ vite-stable8906
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack9500
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable8906
✅ e2e-local-postgres-nest-stable8906
✅ e2e-local-prod-nest-stable8906

📋 View full workflow run

@github-actions

github-actionsBot commented Apr 28, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro0.042s (-3.0%)1.005s (~)0.964s101.00x
💻 LocalExpress0.044s (-1.4%)1.005s (~)0.961s101.05x
💻 LocalNext.js (Turbopack)0.046s1.005s0.959s101.10x
🐘 PostgresExpress0.060s (+3.8%)1.010s (~)0.950s101.44x
🐘 PostgresNitro0.061s (-36.1% 🟢)1.010s (-3.2%)0.949s101.45x
🐘 PostgresNext.js (Turbopack)0.067s1.013s0.946s101.60x
workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)1.114s2.005s0.892s101.00x
💻 LocalNitro1.126s (~)2.006s (~)0.880s101.01x
💻 LocalExpress1.131s (+0.5%)2.005s (~)0.874s101.02x
🐘 PostgresNitro1.145s (~)2.009s (~)0.864s101.03x
🐘 PostgresNext.js (Turbopack)1.146s2.011s0.866s101.03x
🐘 PostgresExpress1.148s (~)2.011s (~)0.863s101.03x
workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)10.786s11.024s0.238s31.00x
🐘 PostgresNitro10.877s (~)11.021s (~)0.144s31.01x
🐘 PostgresNext.js (Turbopack)10.903s11.024s0.120s31.01x
🐘 PostgresExpress10.911s (~)11.022s (~)0.111s31.01x
💻 LocalNitro10.944s (~)11.022s (~)0.078s31.01x
💻 LocalExpress10.958s (~)11.024s (~)0.066s31.02x
workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro14.537s (~)15.023s (~)0.486s41.00x
🐘 PostgresExpress14.540s (~)15.021s (~)0.481s41.00x
💻 LocalNext.js (Turbopack)14.593s15.028s0.435s41.00x
🐘 PostgresNext.js (Turbopack)14.639s15.026s0.387s41.01x
💻 LocalExpress15.000s (~)15.280s (+1.7%)0.279s41.03x
💻 LocalNitro15.029s (~)15.531s (-3.1%)0.502s41.03x
workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro13.990s (~)14.308s (~)0.318s71.00x
🐘 PostgresExpress14.008s (~)14.445s (-1.0%)0.437s71.00x
🐘 PostgresNext.js (Turbopack)14.181s14.886s0.706s71.01x
💻 LocalNext.js (Turbopack)15.999s16.363s0.364s61.14x
💻 LocalExpress16.472s (-0.8%)17.032s (~)0.560s61.18x
💻 LocalNitro16.820s (~)17.032s (~)0.212s61.20x
Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)1.251s2.010s0.759s151.00x
🐘 PostgresNitro1.272s (~)2.010s (~)0.738s151.02x
🐘 PostgresExpress1.276s (+1.2%)2.009s (~)0.734s151.02x
💻 LocalNitro1.512s (-7.3% 🟢)2.005s (-3.3%)0.493s151.21x
💻 LocalExpress1.523s (+2.3%)2.006s (~)0.483s151.22x
💻 LocalNext.js (Turbopack)1.559s2.073s0.513s151.25x
Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.319s (-1.8%)3.010s (~)0.691s101.00x
🐘 PostgresNitro2.330s (-0.9%)3.009s (~)0.679s101.00x
🐘 PostgresNext.js (Turbopack)2.473s3.010s0.537s101.07x
💻 LocalExpress2.802s (-5.1% 🟢)3.009s (-12.9% 🟢)0.207s101.21x
💻 LocalNext.js (Turbopack)2.910s3.453s0.543s91.26x
💻 LocalNitro3.043s (-3.2%)3.675s (-5.4% 🟢)0.633s91.31x
Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro3.453s (-0.8%)4.011s (~)0.558s81.00x
🐘 PostgresExpress3.474s (~)4.010s (~)0.536s81.01x
🐘 PostgresNext.js (Turbopack)3.742s4.011s0.269s81.08x
💻 LocalExpress7.428s (-10.9% 🟢)8.021s (-11.1% 🟢)0.592s42.15x
💻 LocalNext.js (Turbopack)7.731s8.268s0.537s42.24x
💻 LocalNitro9.085s (+8.8% 🔺)10.024s (+11.1% 🔺)0.939s32.63x
Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)1.245s2.009s0.765s151.00x
🐘 PostgresExpress1.258s (~)2.008s (~)0.750s151.01x
🐘 PostgresNitro1.268s (+0.9%)2.008s (~)0.739s151.02x
💻 LocalNext.js (Turbopack)1.483s2.006s0.523s151.19x
💻 LocalExpress1.559s (-17.7% 🟢)2.072s (-12.3% 🟢)0.513s151.25x
💻 LocalNitro1.896s (+1.6%)2.391s (+2.2%)0.495s131.52x
Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro2.312s (-1.2%)3.009s (~)0.698s101.00x
🐘 PostgresExpress2.366s (+1.1%)3.010s (~)0.643s101.02x
🐘 PostgresNext.js (Turbopack)2.450s3.010s0.560s101.06x
💻 LocalNext.js (Turbopack)2.840s3.564s0.724s91.23x
💻 LocalExpress2.857s (-8.8% 🟢)3.107s (-17.4% 🟢)0.250s101.24x
💻 LocalNitro3.120s (+1.8%)4.012s (+3.2%)0.892s81.35x
Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro3.464s (~)4.010s (~)0.546s81.00x
🐘 PostgresExpress3.545s (+1.3%)4.011s (~)0.467s81.02x
🐘 PostgresNext.js (Turbopack)3.703s4.012s0.309s81.07x
💻 LocalNext.js (Turbopack)8.102s8.769s0.667s42.34x
💻 LocalExpress8.290s (-5.8% 🟢)8.770s (-5.4% 🟢)0.480s42.39x
💻 LocalNitro9.097s (-0.5%)9.773s (-2.5%)0.677s42.63x
workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.815s (-0.7%)1.023s (+1.6%)0.208s591.00x
🐘 PostgresExpress0.819s (-2.4%)1.006s (-1.7%)0.187s601.01x
🐘 PostgresNext.js (Turbopack)0.826s1.007s0.181s601.01x
💻 LocalNext.js (Turbopack)0.838s1.004s0.166s601.03x
💻 LocalNitro1.004s (+2.3%)1.458s (+33.3% 🔺)0.454s421.23x
💻 LocalExpress1.029s (+4.5%)1.770s (+64.5% 🔺)0.742s341.26x
workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.919s (~)2.123s (+1.1%)0.205s431.00x
🐘 PostgresExpress1.940s (-1.8%)2.184s (-3.3%)0.244s421.01x
🐘 PostgresNext.js (Turbopack)2.043s2.767s0.724s331.06x
💻 LocalNext.js (Turbopack)2.674s3.008s0.334s301.39x
💻 LocalNitro3.031s (~)3.801s (+1.1%)0.770s241.58x
💻 LocalExpress3.040s (+0.8%)3.884s (+8.3% 🔺)0.844s241.58x
workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.938s (-1.3%)4.296s (-1.7%)0.357s281.00x
🐘 PostgresNext.js (Turbopack)4.180s5.013s0.833s241.06x
🐘 PostgresNitro4.361s (+6.3% 🔺)4.852s (+5.4% 🔺)0.491s251.11x
💻 LocalNext.js (Turbopack)8.643s9.017s0.375s142.19x
💻 LocalExpress8.923s (-3.1%)9.325s (-6.9% 🟢)0.402s132.27x
💻 LocalNitro9.214s (-0.9%)9.787s (-2.3%)0.573s132.34x
workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)0.262s1.007s0.746s601.00x
🐘 PostgresExpress0.276s (-2.1%)1.007s (~)0.730s601.06x
🐘 PostgresNitro0.316s (+11.6% 🔺)1.009s (~)0.693s601.21x
💻 LocalExpress0.545s (-2.7%)1.004s (~)0.459s602.08x
💻 LocalNext.js (Turbopack)0.590s1.039s0.450s582.25x
💻 LocalNitro0.608s (+0.5%)1.022s (~)0.414s592.32x
workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.495s (-2.9%)1.007s (~)0.512s901.00x
🐘 PostgresNitro0.521s (+4.9%)1.008s (~)0.487s901.05x
🐘 PostgresNext.js (Turbopack)0.521s1.007s0.486s901.05x
💻 LocalExpress2.333s (-7.2% 🟢)3.009s (~)0.676s304.71x
💻 LocalNext.js (Turbopack)2.499s3.009s0.510s305.05x
💻 LocalNitro2.546s (~)3.009s (~)0.462s305.14x
workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.788s (-3.7%)1.008s (-0.9%)0.219s1201.00x
🐘 PostgresNitro0.863s (+9.1% 🔺)1.055s (+4.7%)0.192s1141.09x
🐘 PostgresNext.js (Turbopack)0.912s1.111s0.199s1081.16x
💻 LocalExpress10.240s (-8.5% 🟢)10.936s (-8.4% 🟢)0.696s1112.99x
💻 LocalNext.js (Turbopack)10.374s11.028s0.654s1113.16x
💻 LocalNitro11.279s (+0.8%)12.029s (+3.1%)0.750s1014.30x
Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)0.169s1.003s0.012s1.018s0.849s101.00x
🐘 PostgresNext.js (Turbopack)0.206s1.000s0.002s1.012s0.806s101.22x
💻 LocalNitro0.206s (-3.5%)1.004s (~)0.012s (-1.6%)1.019s (~)0.812s101.22x
🐘 PostgresExpress0.213s (+4.0%)0.999s (~)0.001s (-12.5% 🟢)1.010s (~)0.797s101.26x
💻 LocalExpress0.217s (+9.0% 🔺)1.004s (~)0.010s (-16.5% 🟢)1.016s (~)0.799s101.29x
🐘 PostgresNitro0.225s (+9.6% 🔺)0.995s (~)0.001s (-40.0% 🟢)1.009s (~)0.784s101.33x
stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.611s (-3.0%)1.022s (+1.5%)0.004s (+2.6%)1.039s (+1.6%)0.428s581.00x
💻 LocalNext.js (Turbopack)0.647s1.012s0.010s1.024s0.377s591.06x
🐘 PostgresNitro0.652s (+4.5%)1.004s (~)0.004s (-10.2% 🟢)1.022s (~)0.370s591.07x
🐘 PostgresNext.js (Turbopack)0.671s1.009s0.007s1.029s0.359s591.10x
💻 LocalExpress0.754s (~)1.013s (-1.6%)0.009s (-6.7% 🟢)1.023s (-1.6%)0.269s591.23x
💻 LocalNitro0.756s (-9.9% 🟢)1.012s (~)0.010s (+5.8% 🔺)1.023s (-8.3% 🟢)0.268s591.24x
10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.894s (-7.7% 🟢)1.108s (-11.2% 🟢)0.000s (-100.0% 🟢)1.119s (-11.0% 🟢)0.225s541.00x
🐘 PostgresExpress0.964s (~)1.240s (-3.0%)0.000s (-52.1% 🟢)1.259s (-3.6%)0.296s481.08x
🐘 PostgresNext.js (Turbopack)0.972s1.272s0.000s1.280s0.309s481.09x
💻 LocalExpress1.191s (-2.7%)2.020s (~)0.000s (+20.0% 🔺)2.022s (~)0.831s301.33x
💻 LocalNext.js (Turbopack)1.245s2.020s0.000s2.023s0.779s301.39x
💻 LocalNitro1.427s (+16.7% 🔺)2.022s (~)0.000s (+257.1% 🔺)2.203s (+9.0% 🔺)0.776s281.60x
fan-out fan-in 10 streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.740s (-2.9%)2.175s (+1.6%)0.000s (-100.0% 🟢)2.187s (+0.6%)0.448s281.00x
🐘 PostgresExpress1.811s (+2.2%)2.175s (~)0.000s (+Infinity% 🔺)2.205s (~)0.393s281.04x
🐘 PostgresNext.js (Turbopack)1.973s2.262s0.000s2.270s0.297s271.13x
💻 LocalExpress3.318s (-4.3%)4.034s (~)0.000s (-58.3% 🟢)4.038s (~)0.720s151.91x
💻 LocalNext.js (Turbopack)3.441s4.035s0.000s4.039s0.597s151.98x
💻 LocalNitro3.531s (+4.2%)4.100s (+1.7%)0.000s (-12.5% 🟢)4.102s (+1.6%)0.572s152.03x

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)12/21
🐘 PostgresNitro11/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express🐘 Postgres19/21
Next.js (Turbopack)🐘 Postgres15/21
Nitro🐘 Postgres18/21
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)

📋 View full workflow run


⚠️Community world benchmarks failed (non-blocking):

  • Community Worlds: failure

Check the workflow run for details.

@socket-security

socket-securityBot commented Apr 28, 2026

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

DiffPackageSupply Chain
Security
VulnerabilityQualityMaintenanceLicense
Addednpm/​@​types/​node@​22.19.171001008195100

View full report

CopilotAI left a comment

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.

Pull request overview

Refactors the internal wait-for-vercel-project GitHub Action to discover and poll Vercel deployments via the GitHub Deployments API (rather than Vercel’s API), simplifying secrets management and reducing the action bundle/deps.

Changes:

  • Reworked the action implementation to list GitHub Deployments by (sha, environment) and poll deployment statuses + probe the environment URL.
  • Updated CI workflows to pass project-slug / bypass-secret instead of Vercel team/project IDs and Vercel API tokens.
  • Removed @vercel/sdk from the action package dependencies and updated the lockfile accordingly.

Reviewed changes

Copilot reviewed 7 out of 9 changed files in this pull request and generated 4 comments.

Show a summary per file
FileDescription
.github/workflows/tests.ymlUpdates action invocation to use project-slug and bypass secret.
.github/workflows/benchmarks.ymlUpdates action invocation to use project-slug and bypass secret.
.github/workflows/docs-checks.ymlUpdates action invocation and removes forwarding of the unused docs Vercel token env var.
.github/workflows/dispatch-front-workflow-release-pr.ymlUpdates docs deployment wait step to use the new action inputs.
.github/actions/wait-for-vercel-project/src/wait-for-deployment.tsImplements GitHub Deployments API polling, readiness probing, and deployment-id resolution from commit statuses.
.github/actions/wait-for-vercel-project/action.ymlUpdates inputs/outputs documentation for the new mechanism and parameters.
.github/actions/wait-for-vercel-project/package.jsonDrops @vercel/sdk, updates description, adds @types/node.
.github/actions/wait-for-vercel-project/pnpm-lock.yamlReflects dependency removals/additions for the action package.
Files not reviewed (1)
  • .github/actions/wait-for-vercel-project/pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread.github/actions/wait-for-vercel-project/action.yml
Comment thread.github/actions/wait-for-vercel-project/src/wait-for-deployment.ts Outdated
Comment thread.github/workflows/dispatch-front-workflow-release-pr.yml
Comment thread.github/actions/wait-for-vercel-project/action.yml Outdated
The GitHub Deployment status transitions to `success` only after the
Vercel app finishes building and routing is live, so an extra HTTP
liveness probe of the deployment URL was redundant. Removing it lets
us also drop the bypass-secret input \u2014 protected deployments don't
need a workaround anymore because we never make the request.
Reduces the action surface area and eliminates a runtime fetch.
- Fail loudly when the dpl_xxx deployment ID can't be resolved instead
of returning an empty string. Consumers wire this into
VERCEL_DEPLOYMENT_ID, which world-target uses to pick between the
vercel and local worlds (packages/utils/src/world-target.ts), so an
empty value would silently flip execution mode.
- Pass the GitHub App token to wait-for-vercel-project in the dispatch
release workflow. The job sets `permissions: contents: read`, which
blocks the default GITHUB_TOKEN from reading the Deployments API.
The App token (already generated for workflow,front) has the
necessary scopes.
@TooTallNate
TooTallNate enabled auto-merge (squash) April 28, 2026 20:10
@TooTallNate
TooTallNate merged commit 3a08eaa into mainApr 28, 2026
154 of 165 checks passed
@TooTallNate
TooTallNate deleted the ci/wait-for-vercel-via-github-api branch April 28, 2026 20:20
ijjk pushed a commit that referenced this pull request Apr 28, 2026
…1861)
* ci: refactor wait-for-vercel-project to use GitHub Deployments API
Replaces the Vercel SDK / Vercel API token-based implementation with one
that resolves the deployment URL via the GitHub Deployments API:
- Find the GitHub Deployment for (target SHA, environment) where
environment matches the Vercel-app-created "Preview \u2013 <slug>" or
"Production \u2013 <slug>" naming pattern.
- Wait for the latest deployment status to be `success` (or `inactive`
when Vercel skips a duplicate build, in which case its environment_url
still points at the live deployment).
- Probe the URL to confirm the edge can route to it (any non-5xx
response counts as live, including 401/403 from Deployment Protection
and 404/405 from the app). Manual redirect handling treats redirects
to vercel.com as "still building".
- Resolve the dpl_xxx deployment ID from the matching commit status
(Vercel posts `Vercel \u2013 <slug>` statuses where target_url's last
path segment is the inspector ID == deployment ID without the prefix).
Inputs change: project-slug + bypass-secret + github-token (with
GITHUB_TOKEN default) replace team-id + project-id + vercel-token.
Removes the @vercel/sdk dependency, shrinking the bundled dist from
5.4MB to 829KB. The VERCEL_DOCS_TOKEN secret is no longer referenced
anywhere in the repo and can be deleted from GH after this lands.
* ci(wait-for-vercel-project): drop URL probe and bypass-secret input
The GitHub Deployment status transitions to `success` only after the
Vercel app finishes building and routing is live, so an extra HTTP
liveness probe of the deployment URL was redundant. Removing it lets
us also drop the bypass-secret input \u2014 protected deployments don't
need a workaround anymore because we never make the request.
Reduces the action surface area and eliminates a runtime fetch.
* ci(wait-for-vercel-project): address PR review
- Fail loudly when the dpl_xxx deployment ID can't be resolved instead
of returning an empty string. Consumers wire this into
VERCEL_DEPLOYMENT_ID, which world-target uses to pick between the
vercel and local worlds (packages/utils/src/world-target.ts), so an
empty value would silently flip execution mode.
- Pass the GitHub App token to wait-for-vercel-project in the dispatch
release workflow. The job sets `permissions: contents: read`, which
blocks the default GITHUB_TOKEN from reading the Deployments API.
The App token (already generated for workflow,front) has the
necessary scopes.
Sign up for freeto 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.

3 participants

@TooTallNate@ijjk
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Force GitHub README to respect dark mode\n(function() {\n var style = document.createElement('style');\n style.textContent = '\n .markdown-body {\n color-scheme: dark light;\n }\n .markdown-body pre { background: #161b22 !important; }\n .markdown-body code { background: rgba(110, 118, 129, 0.4) !important; }\n .markdown-body table th, .markdown-body table td { border-color: #30363d !important; }\n .markdown-body img { background: #0d1117; }\n .markdown-body blockquote { border-left-color: #8b949e; }\n .markdown-body hr { border-color: #30363d; }\n ';\n document.head.appendChild(style);\n})();", "GitHub Dark Mode README Fix"); } } catch(__e) { console.warn('[Userscript:GitHub Dark Mode README Fix]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

ci: refactor wait-for-vercel-project to use GitHub Deployments API - #1861

Merged
TooTallNate merged 4 commits into
mainfrom
ci/wait-for-vercel-via-github-api
Apr 28, 2026
Merged

ci: refactor wait-for-vercel-project to use GitHub Deployments API#1861
TooTallNate merged 4 commits into
mainfrom
ci/wait-for-vercel-via-github-api

Conversation

@TooTallNate

@TooTallNateTooTallNate commented Apr 28, 2026

Copy link
Copy Markdown
Member

Summary

Refactors the wait-for-vercel-project composite action to discover the deployment via the GitHub Deployments API instead of the Vercel REST API. This drops the per-team Vercel API token requirement (VERCEL_DOCS_TOKEN is now unreferenced anywhere in the repo) and shrinks the action's bundled dist/index.js from 5.4MB → 828KB (90K LOC removed) by dropping @vercel/sdk.

How it works

  1. Resolve the target SHA from the GitHub event payload (same as before).
  2. Find the GitHub Deployment for (sha, environment) where environment matches the Vercel-app-created naming pattern: Preview – <project-slug> or Production – <project-slug> (em-dash).
  3. Poll its latest deployment status. success and inactive are both terminal-OK — Vercel emits inactive immediately for skipped duplicate builds, and the environment_url in that case still points at the live previously-deployed URL.
  4. Resolve the dpl_xxx deployment ID from the matching commit status. Vercel posts a Vercel – <project-slug> commit status whose target_url's last path segment is the inspector ID — which equals the deployment ID without the dpl_ prefix. Action throws if the ID can't be resolved (consumers wire it into VERCEL_DEPLOYMENT_ID, which world-target uses to pick between the vercel and local worlds — an empty value would silently flip execution mode).

The action never makes a request to the deployment URL itself. By the time GitHub's deployment status reaches success, the Vercel app has already verified the deployment is live and routing is primed. This means there's no readiness probe and no need for a Deployment Protection bypass token in the action.

Inputs

BeforeAfter
team-id (required)removed
project-id (required, prj_xxx)removed
vercel-token (required)removed
project-slug (required)
github-token (optional, defaults to ${{ github.token }})
timeout, check-interval, environmentunchanged

Outputs (deployment-url, deployment-id) are unchanged.

Testing

Manually verified all three scenarios against real recent commits in this repo:

  • Workbench preview (example-nextjs-workflow-webpack) — resolves URL + dpl_xxx ID
  • Workbench production — resolves URL + dpl_xxx ID
  • Docs preview with inactive (skipped duplicate build) — resolves URL of the still-live previous deployment

Call site changes

All four invocations updated:

  • .github/workflows/tests.yml — workbench e2e jobs
  • .github/workflows/benchmarks.yml — benchmark jobs
  • .github/workflows/docs-checks.yml — docs smoke checks (also dropped the unused VERCEL_DOCS_TOKEN env var that was being forwarded into check-docs-smoke.mjs despite never being read)
  • .github/workflows/dispatch-front-workflow-release-pr.yml — front release PR dispatch. This workflow has a top-level permissions: contents: read block that would prevent the default GITHUB_TOKEN from reading the Deployments / Statuses APIs, so it explicitly passes the GitHub App token (already generated for workflow,front) via the new github-token input.

VERCEL_LABS_TOKEN is still used to set WORKFLOW_VERCEL_AUTH_TOKEN for the e2e test runtime, so it stays. VERCEL_DOCS_TOKEN is now unreferenced anywhere in the repo and can be deleted from GH after this PR merges.

Notes

  • CI-only change; no changeset needed (pnpm changeset status confirms).
  • The action's package.json now depends on @types/node@^22.19.0 directly instead of the workspace catalog: entry — pnpm install against this package uses --ignore-workspace since it's outside the workspace root.

Replaces the Vercel SDK / Vercel API token-based implementation with one
that resolves the deployment URL via the GitHub Deployments API:
- Find the GitHub Deployment for (target SHA, environment) where
environment matches the Vercel-app-created "Preview \u2013 <slug>" or
"Production \u2013 <slug>" naming pattern.
- Wait for the latest deployment status to be `success` (or `inactive`
when Vercel skips a duplicate build, in which case its environment_url
still points at the live deployment).
- Probe the URL to confirm the edge can route to it (any non-5xx
response counts as live, including 401/403 from Deployment Protection
and 404/405 from the app). Manual redirect handling treats redirects
to vercel.com as "still building".
- Resolve the dpl_xxx deployment ID from the matching commit status
(Vercel posts `Vercel \u2013 <slug>` statuses where target_url's last
path segment is the inspector ID == deployment ID without the prefix).
Inputs change: project-slug + bypass-secret + github-token (with
GITHUB_TOKEN default) replace team-id + project-id + vercel-token.
Removes the @vercel/sdk dependency, shrinking the bundled dist from
5.4MB to 829KB. The VERCEL_DOCS_TOKEN secret is no longer referenced
anywhere in the repo and can be deleted from GH after this lands.
CopilotAI review requested due to automatic review settings April 28, 2026 17:27
@vercel

vercelBot commented Apr 28, 2026

Copy link
Copy Markdown
Contributor

@changeset-bot

changeset-botBot commented Apr 28, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 24aa506

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions

github-actionsBot commented Apr 28, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

All tests passed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production9780671045
✅ 💻 Local Development10540861140
✅ 📦 Local Production10540861140
✅ 🐘 Local Postgres10540861140
✅ 🪟 Windows950095
✅ 📋 Other267018285
Total450203434845

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro8807
✅ example8807
✅ express8807
✅ fastify8807
✅ hono8807
✅ nextjs-turbopack9302
✅ nextjs-webpack9302
✅ nitro8807
✅ nuxt8807
✅ sveltekit8807
✅ vite8807
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable8906
✅ express-stable8906
✅ fastify-stable8906
✅ hono-stable8906
✅ nextjs-turbopack-canary76019
✅ nextjs-turbopack-stable9500
✅ nextjs-webpack-canary76019
✅ nextjs-webpack-stable9500
✅ nitro-stable8906
✅ nuxt-stable8906
✅ sveltekit-stable8906
✅ vite-stable8906
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable8906
✅ express-stable8906
✅ fastify-stable8906
✅ hono-stable8906
✅ nextjs-turbopack-canary76019
✅ nextjs-turbopack-stable9500
✅ nextjs-webpack-canary76019
✅ nextjs-webpack-stable9500
✅ nitro-stable8906
✅ nuxt-stable8906
✅ sveltekit-stable8906
✅ vite-stable8906
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable8906
✅ express-stable8906
✅ fastify-stable8906
✅ hono-stable8906
✅ nextjs-turbopack-canary76019
✅ nextjs-turbopack-stable9500
✅ nextjs-webpack-canary76019
✅ nextjs-webpack-stable9500
✅ nitro-stable8906
✅ nuxt-stable8906
✅ sveltekit-stable8906
✅ vite-stable8906
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack9500
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable8906
✅ e2e-local-postgres-nest-stable8906
✅ e2e-local-prod-nest-stable8906

📋 View full workflow run

@github-actions

github-actionsBot commented Apr 28, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro0.042s (-3.0%)1.005s (~)0.964s101.00x
💻 LocalExpress0.044s (-1.4%)1.005s (~)0.961s101.05x
💻 LocalNext.js (Turbopack)0.046s1.005s0.959s101.10x
🐘 PostgresExpress0.060s (+3.8%)1.010s (~)0.950s101.44x
🐘 PostgresNitro0.061s (-36.1% 🟢)1.010s (-3.2%)0.949s101.45x
🐘 PostgresNext.js (Turbopack)0.067s1.013s0.946s101.60x
workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)1.114s2.005s0.892s101.00x
💻 LocalNitro1.126s (~)2.006s (~)0.880s101.01x
💻 LocalExpress1.131s (+0.5%)2.005s (~)0.874s101.02x
🐘 PostgresNitro1.145s (~)2.009s (~)0.864s101.03x
🐘 PostgresNext.js (Turbopack)1.146s2.011s0.866s101.03x
🐘 PostgresExpress1.148s (~)2.011s (~)0.863s101.03x
workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)10.786s11.024s0.238s31.00x
🐘 PostgresNitro10.877s (~)11.021s (~)0.144s31.01x
🐘 PostgresNext.js (Turbopack)10.903s11.024s0.120s31.01x
🐘 PostgresExpress10.911s (~)11.022s (~)0.111s31.01x
💻 LocalNitro10.944s (~)11.022s (~)0.078s31.01x
💻 LocalExpress10.958s (~)11.024s (~)0.066s31.02x
workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro14.537s (~)15.023s (~)0.486s41.00x
🐘 PostgresExpress14.540s (~)15.021s (~)0.481s41.00x
💻 LocalNext.js (Turbopack)14.593s15.028s0.435s41.00x
🐘 PostgresNext.js (Turbopack)14.639s15.026s0.387s41.01x
💻 LocalExpress15.000s (~)15.280s (+1.7%)0.279s41.03x
💻 LocalNitro15.029s (~)15.531s (-3.1%)0.502s41.03x
workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro13.990s (~)14.308s (~)0.318s71.00x
🐘 PostgresExpress14.008s (~)14.445s (-1.0%)0.437s71.00x
🐘 PostgresNext.js (Turbopack)14.181s14.886s0.706s71.01x
💻 LocalNext.js (Turbopack)15.999s16.363s0.364s61.14x
💻 LocalExpress16.472s (-0.8%)17.032s (~)0.560s61.18x
💻 LocalNitro16.820s (~)17.032s (~)0.212s61.20x
Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)1.251s2.010s0.759s151.00x
🐘 PostgresNitro1.272s (~)2.010s (~)0.738s151.02x
🐘 PostgresExpress1.276s (+1.2%)2.009s (~)0.734s151.02x
💻 LocalNitro1.512s (-7.3% 🟢)2.005s (-3.3%)0.493s151.21x
💻 LocalExpress1.523s (+2.3%)2.006s (~)0.483s151.22x
💻 LocalNext.js (Turbopack)1.559s2.073s0.513s151.25x
Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.319s (-1.8%)3.010s (~)0.691s101.00x
🐘 PostgresNitro2.330s (-0.9%)3.009s (~)0.679s101.00x
🐘 PostgresNext.js (Turbopack)2.473s3.010s0.537s101.07x
💻 LocalExpress2.802s (-5.1% 🟢)3.009s (-12.9% 🟢)0.207s101.21x
💻 LocalNext.js (Turbopack)2.910s3.453s0.543s91.26x
💻 LocalNitro3.043s (-3.2%)3.675s (-5.4% 🟢)0.633s91.31x
Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro3.453s (-0.8%)4.011s (~)0.558s81.00x
🐘 PostgresExpress3.474s (~)4.010s (~)0.536s81.01x
🐘 PostgresNext.js (Turbopack)3.742s4.011s0.269s81.08x
💻 LocalExpress7.428s (-10.9% 🟢)8.021s (-11.1% 🟢)0.592s42.15x
💻 LocalNext.js (Turbopack)7.731s8.268s0.537s42.24x
💻 LocalNitro9.085s (+8.8% 🔺)10.024s (+11.1% 🔺)0.939s32.63x
Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)1.245s2.009s0.765s151.00x
🐘 PostgresExpress1.258s (~)2.008s (~)0.750s151.01x
🐘 PostgresNitro1.268s (+0.9%)2.008s (~)0.739s151.02x
💻 LocalNext.js (Turbopack)1.483s2.006s0.523s151.19x
💻 LocalExpress1.559s (-17.7% 🟢)2.072s (-12.3% 🟢)0.513s151.25x
💻 LocalNitro1.896s (+1.6%)2.391s (+2.2%)0.495s131.52x
Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro2.312s (-1.2%)3.009s (~)0.698s101.00x
🐘 PostgresExpress2.366s (+1.1%)3.010s (~)0.643s101.02x
🐘 PostgresNext.js (Turbopack)2.450s3.010s0.560s101.06x
💻 LocalNext.js (Turbopack)2.840s3.564s0.724s91.23x
💻 LocalExpress2.857s (-8.8% 🟢)3.107s (-17.4% 🟢)0.250s101.24x
💻 LocalNitro3.120s (+1.8%)4.012s (+3.2%)0.892s81.35x
Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro3.464s (~)4.010s (~)0.546s81.00x
🐘 PostgresExpress3.545s (+1.3%)4.011s (~)0.467s81.02x
🐘 PostgresNext.js (Turbopack)3.703s4.012s0.309s81.07x
💻 LocalNext.js (Turbopack)8.102s8.769s0.667s42.34x
💻 LocalExpress8.290s (-5.8% 🟢)8.770s (-5.4% 🟢)0.480s42.39x
💻 LocalNitro9.097s (-0.5%)9.773s (-2.5%)0.677s42.63x
workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.815s (-0.7%)1.023s (+1.6%)0.208s591.00x
🐘 PostgresExpress0.819s (-2.4%)1.006s (-1.7%)0.187s601.01x
🐘 PostgresNext.js (Turbopack)0.826s1.007s0.181s601.01x
💻 LocalNext.js (Turbopack)0.838s1.004s0.166s601.03x
💻 LocalNitro1.004s (+2.3%)1.458s (+33.3% 🔺)0.454s421.23x
💻 LocalExpress1.029s (+4.5%)1.770s (+64.5% 🔺)0.742s341.26x
workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.919s (~)2.123s (+1.1%)0.205s431.00x
🐘 PostgresExpress1.940s (-1.8%)2.184s (-3.3%)0.244s421.01x
🐘 PostgresNext.js (Turbopack)2.043s2.767s0.724s331.06x
💻 LocalNext.js (Turbopack)2.674s3.008s0.334s301.39x
💻 LocalNitro3.031s (~)3.801s (+1.1%)0.770s241.58x
💻 LocalExpress3.040s (+0.8%)3.884s (+8.3% 🔺)0.844s241.58x
workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.938s (-1.3%)4.296s (-1.7%)0.357s281.00x
🐘 PostgresNext.js (Turbopack)4.180s5.013s0.833s241.06x
🐘 PostgresNitro4.361s (+6.3% 🔺)4.852s (+5.4% 🔺)0.491s251.11x
💻 LocalNext.js (Turbopack)8.643s9.017s0.375s142.19x
💻 LocalExpress8.923s (-3.1%)9.325s (-6.9% 🟢)0.402s132.27x
💻 LocalNitro9.214s (-0.9%)9.787s (-2.3%)0.573s132.34x
workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)0.262s1.007s0.746s601.00x
🐘 PostgresExpress0.276s (-2.1%)1.007s (~)0.730s601.06x
🐘 PostgresNitro0.316s (+11.6% 🔺)1.009s (~)0.693s601.21x
💻 LocalExpress0.545s (-2.7%)1.004s (~)0.459s602.08x
💻 LocalNext.js (Turbopack)0.590s1.039s0.450s582.25x
💻 LocalNitro0.608s (+0.5%)1.022s (~)0.414s592.32x
workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.495s (-2.9%)1.007s (~)0.512s901.00x
🐘 PostgresNitro0.521s (+4.9%)1.008s (~)0.487s901.05x
🐘 PostgresNext.js (Turbopack)0.521s1.007s0.486s901.05x
💻 LocalExpress2.333s (-7.2% 🟢)3.009s (~)0.676s304.71x
💻 LocalNext.js (Turbopack)2.499s3.009s0.510s305.05x
💻 LocalNitro2.546s (~)3.009s (~)0.462s305.14x
workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.788s (-3.7%)1.008s (-0.9%)0.219s1201.00x
🐘 PostgresNitro0.863s (+9.1% 🔺)1.055s (+4.7%)0.192s1141.09x
🐘 PostgresNext.js (Turbopack)0.912s1.111s0.199s1081.16x
💻 LocalExpress10.240s (-8.5% 🟢)10.936s (-8.4% 🟢)0.696s1112.99x
💻 LocalNext.js (Turbopack)10.374s11.028s0.654s1113.16x
💻 LocalNitro11.279s (+0.8%)12.029s (+3.1%)0.750s1014.30x
Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)0.169s1.003s0.012s1.018s0.849s101.00x
🐘 PostgresNext.js (Turbopack)0.206s1.000s0.002s1.012s0.806s101.22x
💻 LocalNitro0.206s (-3.5%)1.004s (~)0.012s (-1.6%)1.019s (~)0.812s101.22x
🐘 PostgresExpress0.213s (+4.0%)0.999s (~)0.001s (-12.5% 🟢)1.010s (~)0.797s101.26x
💻 LocalExpress0.217s (+9.0% 🔺)1.004s (~)0.010s (-16.5% 🟢)1.016s (~)0.799s101.29x
🐘 PostgresNitro0.225s (+9.6% 🔺)0.995s (~)0.001s (-40.0% 🟢)1.009s (~)0.784s101.33x
stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.611s (-3.0%)1.022s (+1.5%)0.004s (+2.6%)1.039s (+1.6%)0.428s581.00x
💻 LocalNext.js (Turbopack)0.647s1.012s0.010s1.024s0.377s591.06x
🐘 PostgresNitro0.652s (+4.5%)1.004s (~)0.004s (-10.2% 🟢)1.022s (~)0.370s591.07x
🐘 PostgresNext.js (Turbopack)0.671s1.009s0.007s1.029s0.359s591.10x
💻 LocalExpress0.754s (~)1.013s (-1.6%)0.009s (-6.7% 🟢)1.023s (-1.6%)0.269s591.23x
💻 LocalNitro0.756s (-9.9% 🟢)1.012s (~)0.010s (+5.8% 🔺)1.023s (-8.3% 🟢)0.268s591.24x
10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.894s (-7.7% 🟢)1.108s (-11.2% 🟢)0.000s (-100.0% 🟢)1.119s (-11.0% 🟢)0.225s541.00x
🐘 PostgresExpress0.964s (~)1.240s (-3.0%)0.000s (-52.1% 🟢)1.259s (-3.6%)0.296s481.08x
🐘 PostgresNext.js (Turbopack)0.972s1.272s0.000s1.280s0.309s481.09x
💻 LocalExpress1.191s (-2.7%)2.020s (~)0.000s (+20.0% 🔺)2.022s (~)0.831s301.33x
💻 LocalNext.js (Turbopack)1.245s2.020s0.000s2.023s0.779s301.39x
💻 LocalNitro1.427s (+16.7% 🔺)2.022s (~)0.000s (+257.1% 🔺)2.203s (+9.0% 🔺)0.776s281.60x
fan-out fan-in 10 streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.740s (-2.9%)2.175s (+1.6%)0.000s (-100.0% 🟢)2.187s (+0.6%)0.448s281.00x
🐘 PostgresExpress1.811s (+2.2%)2.175s (~)0.000s (+Infinity% 🔺)2.205s (~)0.393s281.04x
🐘 PostgresNext.js (Turbopack)1.973s2.262s0.000s2.270s0.297s271.13x
💻 LocalExpress3.318s (-4.3%)4.034s (~)0.000s (-58.3% 🟢)4.038s (~)0.720s151.91x
💻 LocalNext.js (Turbopack)3.441s4.035s0.000s4.039s0.597s151.98x
💻 LocalNitro3.531s (+4.2%)4.100s (+1.7%)0.000s (-12.5% 🟢)4.102s (+1.6%)0.572s152.03x

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)12/21
🐘 PostgresNitro11/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express🐘 Postgres19/21
Next.js (Turbopack)🐘 Postgres15/21
Nitro🐘 Postgres18/21
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)

📋 View full workflow run


⚠️Community world benchmarks failed (non-blocking):

  • Community Worlds: failure

Check the workflow run for details.

@socket-security

socket-securityBot commented Apr 28, 2026

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

DiffPackageSupply Chain
Security
VulnerabilityQualityMaintenanceLicense
Addednpm/​@​types/​node@​22.19.171001008195100

View full report

CopilotAI left a comment

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.

Pull request overview

Refactors the internal wait-for-vercel-project GitHub Action to discover and poll Vercel deployments via the GitHub Deployments API (rather than Vercel’s API), simplifying secrets management and reducing the action bundle/deps.

Changes:

  • Reworked the action implementation to list GitHub Deployments by (sha, environment) and poll deployment statuses + probe the environment URL.
  • Updated CI workflows to pass project-slug / bypass-secret instead of Vercel team/project IDs and Vercel API tokens.
  • Removed @vercel/sdk from the action package dependencies and updated the lockfile accordingly.

Reviewed changes

Copilot reviewed 7 out of 9 changed files in this pull request and generated 4 comments.

Show a summary per file
FileDescription
.github/workflows/tests.ymlUpdates action invocation to use project-slug and bypass secret.
.github/workflows/benchmarks.ymlUpdates action invocation to use project-slug and bypass secret.
.github/workflows/docs-checks.ymlUpdates action invocation and removes forwarding of the unused docs Vercel token env var.
.github/workflows/dispatch-front-workflow-release-pr.ymlUpdates docs deployment wait step to use the new action inputs.
.github/actions/wait-for-vercel-project/src/wait-for-deployment.tsImplements GitHub Deployments API polling, readiness probing, and deployment-id resolution from commit statuses.
.github/actions/wait-for-vercel-project/action.ymlUpdates inputs/outputs documentation for the new mechanism and parameters.
.github/actions/wait-for-vercel-project/package.jsonDrops @vercel/sdk, updates description, adds @types/node.
.github/actions/wait-for-vercel-project/pnpm-lock.yamlReflects dependency removals/additions for the action package.
Files not reviewed (1)
  • .github/actions/wait-for-vercel-project/pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread.github/actions/wait-for-vercel-project/action.yml
Comment thread.github/actions/wait-for-vercel-project/src/wait-for-deployment.ts Outdated
Comment thread.github/workflows/dispatch-front-workflow-release-pr.yml
Comment thread.github/actions/wait-for-vercel-project/action.yml Outdated
The GitHub Deployment status transitions to `success` only after the
Vercel app finishes building and routing is live, so an extra HTTP
liveness probe of the deployment URL was redundant. Removing it lets
us also drop the bypass-secret input \u2014 protected deployments don't
need a workaround anymore because we never make the request.
Reduces the action surface area and eliminates a runtime fetch.
- Fail loudly when the dpl_xxx deployment ID can't be resolved instead
of returning an empty string. Consumers wire this into
VERCEL_DEPLOYMENT_ID, which world-target uses to pick between the
vercel and local worlds (packages/utils/src/world-target.ts), so an
empty value would silently flip execution mode.
- Pass the GitHub App token to wait-for-vercel-project in the dispatch
release workflow. The job sets `permissions: contents: read`, which
blocks the default GITHUB_TOKEN from reading the Deployments API.
The App token (already generated for workflow,front) has the
necessary scopes.
@TooTallNate
TooTallNate enabled auto-merge (squash) April 28, 2026 20:10
@TooTallNate
TooTallNate merged commit 3a08eaa into mainApr 28, 2026
154 of 165 checks passed
@TooTallNate
TooTallNate deleted the ci/wait-for-vercel-via-github-api branch April 28, 2026 20:20
ijjk pushed a commit that referenced this pull request Apr 28, 2026
…1861)
* ci: refactor wait-for-vercel-project to use GitHub Deployments API
Replaces the Vercel SDK / Vercel API token-based implementation with one
that resolves the deployment URL via the GitHub Deployments API:
- Find the GitHub Deployment for (target SHA, environment) where
environment matches the Vercel-app-created "Preview \u2013 <slug>" or
"Production \u2013 <slug>" naming pattern.
- Wait for the latest deployment status to be `success` (or `inactive`
when Vercel skips a duplicate build, in which case its environment_url
still points at the live deployment).
- Probe the URL to confirm the edge can route to it (any non-5xx
response counts as live, including 401/403 from Deployment Protection
and 404/405 from the app). Manual redirect handling treats redirects
to vercel.com as "still building".
- Resolve the dpl_xxx deployment ID from the matching commit status
(Vercel posts `Vercel \u2013 <slug>` statuses where target_url's last
path segment is the inspector ID == deployment ID without the prefix).
Inputs change: project-slug + bypass-secret + github-token (with
GITHUB_TOKEN default) replace team-id + project-id + vercel-token.
Removes the @vercel/sdk dependency, shrinking the bundled dist from
5.4MB to 829KB. The VERCEL_DOCS_TOKEN secret is no longer referenced
anywhere in the repo and can be deleted from GH after this lands.
* ci(wait-for-vercel-project): drop URL probe and bypass-secret input
The GitHub Deployment status transitions to `success` only after the
Vercel app finishes building and routing is live, so an extra HTTP
liveness probe of the deployment URL was redundant. Removing it lets
us also drop the bypass-secret input \u2014 protected deployments don't
need a workaround anymore because we never make the request.
Reduces the action surface area and eliminates a runtime fetch.
* ci(wait-for-vercel-project): address PR review
- Fail loudly when the dpl_xxx deployment ID can't be resolved instead
of returning an empty string. Consumers wire this into
VERCEL_DEPLOYMENT_ID, which world-target uses to pick between the
vercel and local worlds (packages/utils/src/world-target.ts), so an
empty value would silently flip execution mode.
- Pass the GitHub App token to wait-for-vercel-project in the dispatch
release workflow. The job sets `permissions: contents: read`, which
blocks the default GITHUB_TOKEN from reading the Deployments API.
The App token (already generated for workflow,front) has the
necessary scopes.
Sign up for freeto 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.

3 participants

@TooTallNate@ijjk
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Highlight search terms from Google/DuckDuckGo/Bing referrer\n(function() {\n var ref = document.referrer;\n var terms = [];\n \n if (ref.includes('google.com') || ref.includes('duckduckgo.com') || ref.includes('bing.com')) {\n var url = new URL(ref);\n var q = url.searchParams.get('q') || url.searchParams.get('p');\n if (q) {\n terms = q.split(/\\s+/).filter(function(t) { return t.length > 2; });\n }\n }\n \n if (terms.length === 0) return;\n \n var style = document.createElement('style');\n style.textContent = '.userscript-highlight { background: #fbbf24; color: #1a1a2e; padding: 1px 3px; border-radius: 2px; }';\n document.head.appendChild(style);\n \n function highlight(node) {\n if (node.nodeType === 3) { // text node\n var text = node.textContent;\n var found = false;\n terms.forEach(function(term) {\n var regex = new RegExp('(' + term.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\') + ')', 'gi');\n if (regex.test(text)) {\n found = true;\n var frag = document.createDocumentFragment();\n var parts = text.split(regex);\n parts.forEach(function(part, i) {\n if (i % 2 === 0) {\n frag.appendChild(document.createTextNode(part));\n } else {\n var span = document.createElement('span');\n span.className = 'userscript-highlight';\n span.textContent = part;\n frag.appendChild(span);\n }\n });\n node.parentNode.replaceChild(frag, node);\n }\n });\n } else if (node.nodeType === 1 && node.childNodes) { // element\n var skipTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'TEXTAREA', 'INPUT', 'SELECT'];\n if (!skipTags.includes(node.tagName)) {\n Array.from(node.childNodes).forEach(highlight);\n }\n }\n }\n \n highlight(document.body);\n \n // Re-highlight on dynamic content\n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1 || node.nodeType === 3) highlight(node);\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Highlight Search Terms"); } } catch(__e) { console.warn('[Userscript:Highlight Search Terms]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

ci: refactor wait-for-vercel-project to use GitHub Deployments API - #1861

Merged
TooTallNate merged 4 commits into
mainfrom
ci/wait-for-vercel-via-github-api
Apr 28, 2026
Merged

ci: refactor wait-for-vercel-project to use GitHub Deployments API#1861
TooTallNate merged 4 commits into
mainfrom
ci/wait-for-vercel-via-github-api

Conversation

@TooTallNate

@TooTallNateTooTallNate commented Apr 28, 2026

Copy link
Copy Markdown
Member

Summary

Refactors the wait-for-vercel-project composite action to discover the deployment via the GitHub Deployments API instead of the Vercel REST API. This drops the per-team Vercel API token requirement (VERCEL_DOCS_TOKEN is now unreferenced anywhere in the repo) and shrinks the action's bundled dist/index.js from 5.4MB → 828KB (90K LOC removed) by dropping @vercel/sdk.

How it works

  1. Resolve the target SHA from the GitHub event payload (same as before).
  2. Find the GitHub Deployment for (sha, environment) where environment matches the Vercel-app-created naming pattern: Preview – <project-slug> or Production – <project-slug> (em-dash).
  3. Poll its latest deployment status. success and inactive are both terminal-OK — Vercel emits inactive immediately for skipped duplicate builds, and the environment_url in that case still points at the live previously-deployed URL.
  4. Resolve the dpl_xxx deployment ID from the matching commit status. Vercel posts a Vercel – <project-slug> commit status whose target_url's last path segment is the inspector ID — which equals the deployment ID without the dpl_ prefix. Action throws if the ID can't be resolved (consumers wire it into VERCEL_DEPLOYMENT_ID, which world-target uses to pick between the vercel and local worlds — an empty value would silently flip execution mode).

The action never makes a request to the deployment URL itself. By the time GitHub's deployment status reaches success, the Vercel app has already verified the deployment is live and routing is primed. This means there's no readiness probe and no need for a Deployment Protection bypass token in the action.

Inputs

BeforeAfter
team-id (required)removed
project-id (required, prj_xxx)removed
vercel-token (required)removed
project-slug (required)
github-token (optional, defaults to ${{ github.token }})
timeout, check-interval, environmentunchanged

Outputs (deployment-url, deployment-id) are unchanged.

Testing

Manually verified all three scenarios against real recent commits in this repo:

  • Workbench preview (example-nextjs-workflow-webpack) — resolves URL + dpl_xxx ID
  • Workbench production — resolves URL + dpl_xxx ID
  • Docs preview with inactive (skipped duplicate build) — resolves URL of the still-live previous deployment

Call site changes

All four invocations updated:

  • .github/workflows/tests.yml — workbench e2e jobs
  • .github/workflows/benchmarks.yml — benchmark jobs
  • .github/workflows/docs-checks.yml — docs smoke checks (also dropped the unused VERCEL_DOCS_TOKEN env var that was being forwarded into check-docs-smoke.mjs despite never being read)
  • .github/workflows/dispatch-front-workflow-release-pr.yml — front release PR dispatch. This workflow has a top-level permissions: contents: read block that would prevent the default GITHUB_TOKEN from reading the Deployments / Statuses APIs, so it explicitly passes the GitHub App token (already generated for workflow,front) via the new github-token input.

VERCEL_LABS_TOKEN is still used to set WORKFLOW_VERCEL_AUTH_TOKEN for the e2e test runtime, so it stays. VERCEL_DOCS_TOKEN is now unreferenced anywhere in the repo and can be deleted from GH after this PR merges.

Notes

  • CI-only change; no changeset needed (pnpm changeset status confirms).
  • The action's package.json now depends on @types/node@^22.19.0 directly instead of the workspace catalog: entry — pnpm install against this package uses --ignore-workspace since it's outside the workspace root.

Replaces the Vercel SDK / Vercel API token-based implementation with one
that resolves the deployment URL via the GitHub Deployments API:
- Find the GitHub Deployment for (target SHA, environment) where
environment matches the Vercel-app-created "Preview \u2013 <slug>" or
"Production \u2013 <slug>" naming pattern.
- Wait for the latest deployment status to be `success` (or `inactive`
when Vercel skips a duplicate build, in which case its environment_url
still points at the live deployment).
- Probe the URL to confirm the edge can route to it (any non-5xx
response counts as live, including 401/403 from Deployment Protection
and 404/405 from the app). Manual redirect handling treats redirects
to vercel.com as "still building".
- Resolve the dpl_xxx deployment ID from the matching commit status
(Vercel posts `Vercel \u2013 <slug>` statuses where target_url's last
path segment is the inspector ID == deployment ID without the prefix).
Inputs change: project-slug + bypass-secret + github-token (with
GITHUB_TOKEN default) replace team-id + project-id + vercel-token.
Removes the @vercel/sdk dependency, shrinking the bundled dist from
5.4MB to 829KB. The VERCEL_DOCS_TOKEN secret is no longer referenced
anywhere in the repo and can be deleted from GH after this lands.
CopilotAI review requested due to automatic review settings April 28, 2026 17:27
@vercel

vercelBot commented Apr 28, 2026

Copy link
Copy Markdown
Contributor

@changeset-bot

changeset-botBot commented Apr 28, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 24aa506

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions

github-actionsBot commented Apr 28, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

All tests passed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production9780671045
✅ 💻 Local Development10540861140
✅ 📦 Local Production10540861140
✅ 🐘 Local Postgres10540861140
✅ 🪟 Windows950095
✅ 📋 Other267018285
Total450203434845

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro8807
✅ example8807
✅ express8807
✅ fastify8807
✅ hono8807
✅ nextjs-turbopack9302
✅ nextjs-webpack9302
✅ nitro8807
✅ nuxt8807
✅ sveltekit8807
✅ vite8807
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable8906
✅ express-stable8906
✅ fastify-stable8906
✅ hono-stable8906
✅ nextjs-turbopack-canary76019
✅ nextjs-turbopack-stable9500
✅ nextjs-webpack-canary76019
✅ nextjs-webpack-stable9500
✅ nitro-stable8906
✅ nuxt-stable8906
✅ sveltekit-stable8906
✅ vite-stable8906
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable8906
✅ express-stable8906
✅ fastify-stable8906
✅ hono-stable8906
✅ nextjs-turbopack-canary76019
✅ nextjs-turbopack-stable9500
✅ nextjs-webpack-canary76019
✅ nextjs-webpack-stable9500
✅ nitro-stable8906
✅ nuxt-stable8906
✅ sveltekit-stable8906
✅ vite-stable8906
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable8906
✅ express-stable8906
✅ fastify-stable8906
✅ hono-stable8906
✅ nextjs-turbopack-canary76019
✅ nextjs-turbopack-stable9500
✅ nextjs-webpack-canary76019
✅ nextjs-webpack-stable9500
✅ nitro-stable8906
✅ nuxt-stable8906
✅ sveltekit-stable8906
✅ vite-stable8906
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack9500
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable8906
✅ e2e-local-postgres-nest-stable8906
✅ e2e-local-prod-nest-stable8906

📋 View full workflow run

@github-actions

github-actionsBot commented Apr 28, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro0.042s (-3.0%)1.005s (~)0.964s101.00x
💻 LocalExpress0.044s (-1.4%)1.005s (~)0.961s101.05x
💻 LocalNext.js (Turbopack)0.046s1.005s0.959s101.10x
🐘 PostgresExpress0.060s (+3.8%)1.010s (~)0.950s101.44x
🐘 PostgresNitro0.061s (-36.1% 🟢)1.010s (-3.2%)0.949s101.45x
🐘 PostgresNext.js (Turbopack)0.067s1.013s0.946s101.60x
workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)1.114s2.005s0.892s101.00x
💻 LocalNitro1.126s (~)2.006s (~)0.880s101.01x
💻 LocalExpress1.131s (+0.5%)2.005s (~)0.874s101.02x
🐘 PostgresNitro1.145s (~)2.009s (~)0.864s101.03x
🐘 PostgresNext.js (Turbopack)1.146s2.011s0.866s101.03x
🐘 PostgresExpress1.148s (~)2.011s (~)0.863s101.03x
workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)10.786s11.024s0.238s31.00x
🐘 PostgresNitro10.877s (~)11.021s (~)0.144s31.01x
🐘 PostgresNext.js (Turbopack)10.903s11.024s0.120s31.01x
🐘 PostgresExpress10.911s (~)11.022s (~)0.111s31.01x
💻 LocalNitro10.944s (~)11.022s (~)0.078s31.01x
💻 LocalExpress10.958s (~)11.024s (~)0.066s31.02x
workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro14.537s (~)15.023s (~)0.486s41.00x
🐘 PostgresExpress14.540s (~)15.021s (~)0.481s41.00x
💻 LocalNext.js (Turbopack)14.593s15.028s0.435s41.00x
🐘 PostgresNext.js (Turbopack)14.639s15.026s0.387s41.01x
💻 LocalExpress15.000s (~)15.280s (+1.7%)0.279s41.03x
💻 LocalNitro15.029s (~)15.531s (-3.1%)0.502s41.03x
workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro13.990s (~)14.308s (~)0.318s71.00x
🐘 PostgresExpress14.008s (~)14.445s (-1.0%)0.437s71.00x
🐘 PostgresNext.js (Turbopack)14.181s14.886s0.706s71.01x
💻 LocalNext.js (Turbopack)15.999s16.363s0.364s61.14x
💻 LocalExpress16.472s (-0.8%)17.032s (~)0.560s61.18x
💻 LocalNitro16.820s (~)17.032s (~)0.212s61.20x
Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)1.251s2.010s0.759s151.00x
🐘 PostgresNitro1.272s (~)2.010s (~)0.738s151.02x
🐘 PostgresExpress1.276s (+1.2%)2.009s (~)0.734s151.02x
💻 LocalNitro1.512s (-7.3% 🟢)2.005s (-3.3%)0.493s151.21x
💻 LocalExpress1.523s (+2.3%)2.006s (~)0.483s151.22x
💻 LocalNext.js (Turbopack)1.559s2.073s0.513s151.25x
Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.319s (-1.8%)3.010s (~)0.691s101.00x
🐘 PostgresNitro2.330s (-0.9%)3.009s (~)0.679s101.00x
🐘 PostgresNext.js (Turbopack)2.473s3.010s0.537s101.07x
💻 LocalExpress2.802s (-5.1% 🟢)3.009s (-12.9% 🟢)0.207s101.21x
💻 LocalNext.js (Turbopack)2.910s3.453s0.543s91.26x
💻 LocalNitro3.043s (-3.2%)3.675s (-5.4% 🟢)0.633s91.31x
Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro3.453s (-0.8%)4.011s (~)0.558s81.00x
🐘 PostgresExpress3.474s (~)4.010s (~)0.536s81.01x
🐘 PostgresNext.js (Turbopack)3.742s4.011s0.269s81.08x
💻 LocalExpress7.428s (-10.9% 🟢)8.021s (-11.1% 🟢)0.592s42.15x
💻 LocalNext.js (Turbopack)7.731s8.268s0.537s42.24x
💻 LocalNitro9.085s (+8.8% 🔺)10.024s (+11.1% 🔺)0.939s32.63x
Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)1.245s2.009s0.765s151.00x
🐘 PostgresExpress1.258s (~)2.008s (~)0.750s151.01x
🐘 PostgresNitro1.268s (+0.9%)2.008s (~)0.739s151.02x
💻 LocalNext.js (Turbopack)1.483s2.006s0.523s151.19x
💻 LocalExpress1.559s (-17.7% 🟢)2.072s (-12.3% 🟢)0.513s151.25x
💻 LocalNitro1.896s (+1.6%)2.391s (+2.2%)0.495s131.52x
Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro2.312s (-1.2%)3.009s (~)0.698s101.00x
🐘 PostgresExpress2.366s (+1.1%)3.010s (~)0.643s101.02x
🐘 PostgresNext.js (Turbopack)2.450s3.010s0.560s101.06x
💻 LocalNext.js (Turbopack)2.840s3.564s0.724s91.23x
💻 LocalExpress2.857s (-8.8% 🟢)3.107s (-17.4% 🟢)0.250s101.24x
💻 LocalNitro3.120s (+1.8%)4.012s (+3.2%)0.892s81.35x
Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro3.464s (~)4.010s (~)0.546s81.00x
🐘 PostgresExpress3.545s (+1.3%)4.011s (~)0.467s81.02x
🐘 PostgresNext.js (Turbopack)3.703s4.012s0.309s81.07x
💻 LocalNext.js (Turbopack)8.102s8.769s0.667s42.34x
💻 LocalExpress8.290s (-5.8% 🟢)8.770s (-5.4% 🟢)0.480s42.39x
💻 LocalNitro9.097s (-0.5%)9.773s (-2.5%)0.677s42.63x
workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.815s (-0.7%)1.023s (+1.6%)0.208s591.00x
🐘 PostgresExpress0.819s (-2.4%)1.006s (-1.7%)0.187s601.01x
🐘 PostgresNext.js (Turbopack)0.826s1.007s0.181s601.01x
💻 LocalNext.js (Turbopack)0.838s1.004s0.166s601.03x
💻 LocalNitro1.004s (+2.3%)1.458s (+33.3% 🔺)0.454s421.23x
💻 LocalExpress1.029s (+4.5%)1.770s (+64.5% 🔺)0.742s341.26x
workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.919s (~)2.123s (+1.1%)0.205s431.00x
🐘 PostgresExpress1.940s (-1.8%)2.184s (-3.3%)0.244s421.01x
🐘 PostgresNext.js (Turbopack)2.043s2.767s0.724s331.06x
💻 LocalNext.js (Turbopack)2.674s3.008s0.334s301.39x
💻 LocalNitro3.031s (~)3.801s (+1.1%)0.770s241.58x
💻 LocalExpress3.040s (+0.8%)3.884s (+8.3% 🔺)0.844s241.58x
workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.938s (-1.3%)4.296s (-1.7%)0.357s281.00x
🐘 PostgresNext.js (Turbopack)4.180s5.013s0.833s241.06x
🐘 PostgresNitro4.361s (+6.3% 🔺)4.852s (+5.4% 🔺)0.491s251.11x
💻 LocalNext.js (Turbopack)8.643s9.017s0.375s142.19x
💻 LocalExpress8.923s (-3.1%)9.325s (-6.9% 🟢)0.402s132.27x
💻 LocalNitro9.214s (-0.9%)9.787s (-2.3%)0.573s132.34x
workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)0.262s1.007s0.746s601.00x
🐘 PostgresExpress0.276s (-2.1%)1.007s (~)0.730s601.06x
🐘 PostgresNitro0.316s (+11.6% 🔺)1.009s (~)0.693s601.21x
💻 LocalExpress0.545s (-2.7%)1.004s (~)0.459s602.08x
💻 LocalNext.js (Turbopack)0.590s1.039s0.450s582.25x
💻 LocalNitro0.608s (+0.5%)1.022s (~)0.414s592.32x
workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.495s (-2.9%)1.007s (~)0.512s901.00x
🐘 PostgresNitro0.521s (+4.9%)1.008s (~)0.487s901.05x
🐘 PostgresNext.js (Turbopack)0.521s1.007s0.486s901.05x
💻 LocalExpress2.333s (-7.2% 🟢)3.009s (~)0.676s304.71x
💻 LocalNext.js (Turbopack)2.499s3.009s0.510s305.05x
💻 LocalNitro2.546s (~)3.009s (~)0.462s305.14x
workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.788s (-3.7%)1.008s (-0.9%)0.219s1201.00x
🐘 PostgresNitro0.863s (+9.1% 🔺)1.055s (+4.7%)0.192s1141.09x
🐘 PostgresNext.js (Turbopack)0.912s1.111s0.199s1081.16x
💻 LocalExpress10.240s (-8.5% 🟢)10.936s (-8.4% 🟢)0.696s1112.99x
💻 LocalNext.js (Turbopack)10.374s11.028s0.654s1113.16x
💻 LocalNitro11.279s (+0.8%)12.029s (+3.1%)0.750s1014.30x
Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)0.169s1.003s0.012s1.018s0.849s101.00x
🐘 PostgresNext.js (Turbopack)0.206s1.000s0.002s1.012s0.806s101.22x
💻 LocalNitro0.206s (-3.5%)1.004s (~)0.012s (-1.6%)1.019s (~)0.812s101.22x
🐘 PostgresExpress0.213s (+4.0%)0.999s (~)0.001s (-12.5% 🟢)1.010s (~)0.797s101.26x
💻 LocalExpress0.217s (+9.0% 🔺)1.004s (~)0.010s (-16.5% 🟢)1.016s (~)0.799s101.29x
🐘 PostgresNitro0.225s (+9.6% 🔺)0.995s (~)0.001s (-40.0% 🟢)1.009s (~)0.784s101.33x
stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.611s (-3.0%)1.022s (+1.5%)0.004s (+2.6%)1.039s (+1.6%)0.428s581.00x
💻 LocalNext.js (Turbopack)0.647s1.012s0.010s1.024s0.377s591.06x
🐘 PostgresNitro0.652s (+4.5%)1.004s (~)0.004s (-10.2% 🟢)1.022s (~)0.370s591.07x
🐘 PostgresNext.js (Turbopack)0.671s1.009s0.007s1.029s0.359s591.10x
💻 LocalExpress0.754s (~)1.013s (-1.6%)0.009s (-6.7% 🟢)1.023s (-1.6%)0.269s591.23x
💻 LocalNitro0.756s (-9.9% 🟢)1.012s (~)0.010s (+5.8% 🔺)1.023s (-8.3% 🟢)0.268s591.24x
10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.894s (-7.7% 🟢)1.108s (-11.2% 🟢)0.000s (-100.0% 🟢)1.119s (-11.0% 🟢)0.225s541.00x
🐘 PostgresExpress0.964s (~)1.240s (-3.0%)0.000s (-52.1% 🟢)1.259s (-3.6%)0.296s481.08x
🐘 PostgresNext.js (Turbopack)0.972s1.272s0.000s1.280s0.309s481.09x
💻 LocalExpress1.191s (-2.7%)2.020s (~)0.000s (+20.0% 🔺)2.022s (~)0.831s301.33x
💻 LocalNext.js (Turbopack)1.245s2.020s0.000s2.023s0.779s301.39x
💻 LocalNitro1.427s (+16.7% 🔺)2.022s (~)0.000s (+257.1% 🔺)2.203s (+9.0% 🔺)0.776s281.60x
fan-out fan-in 10 streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.740s (-2.9%)2.175s (+1.6%)0.000s (-100.0% 🟢)2.187s (+0.6%)0.448s281.00x
🐘 PostgresExpress1.811s (+2.2%)2.175s (~)0.000s (+Infinity% 🔺)2.205s (~)0.393s281.04x
🐘 PostgresNext.js (Turbopack)1.973s2.262s0.000s2.270s0.297s271.13x
💻 LocalExpress3.318s (-4.3%)4.034s (~)0.000s (-58.3% 🟢)4.038s (~)0.720s151.91x
💻 LocalNext.js (Turbopack)3.441s4.035s0.000s4.039s0.597s151.98x
💻 LocalNitro3.531s (+4.2%)4.100s (+1.7%)0.000s (-12.5% 🟢)4.102s (+1.6%)0.572s152.03x

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)12/21
🐘 PostgresNitro11/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express🐘 Postgres19/21
Next.js (Turbopack)🐘 Postgres15/21
Nitro🐘 Postgres18/21
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)

📋 View full workflow run


⚠️Community world benchmarks failed (non-blocking):

  • Community Worlds: failure

Check the workflow run for details.

@socket-security

socket-securityBot commented Apr 28, 2026

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

DiffPackageSupply Chain
Security
VulnerabilityQualityMaintenanceLicense
Addednpm/​@​types/​node@​22.19.171001008195100

View full report

CopilotAI left a comment

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.

Pull request overview

Refactors the internal wait-for-vercel-project GitHub Action to discover and poll Vercel deployments via the GitHub Deployments API (rather than Vercel’s API), simplifying secrets management and reducing the action bundle/deps.

Changes:

  • Reworked the action implementation to list GitHub Deployments by (sha, environment) and poll deployment statuses + probe the environment URL.
  • Updated CI workflows to pass project-slug / bypass-secret instead of Vercel team/project IDs and Vercel API tokens.
  • Removed @vercel/sdk from the action package dependencies and updated the lockfile accordingly.

Reviewed changes

Copilot reviewed 7 out of 9 changed files in this pull request and generated 4 comments.

Show a summary per file
FileDescription
.github/workflows/tests.ymlUpdates action invocation to use project-slug and bypass secret.
.github/workflows/benchmarks.ymlUpdates action invocation to use project-slug and bypass secret.
.github/workflows/docs-checks.ymlUpdates action invocation and removes forwarding of the unused docs Vercel token env var.
.github/workflows/dispatch-front-workflow-release-pr.ymlUpdates docs deployment wait step to use the new action inputs.
.github/actions/wait-for-vercel-project/src/wait-for-deployment.tsImplements GitHub Deployments API polling, readiness probing, and deployment-id resolution from commit statuses.
.github/actions/wait-for-vercel-project/action.ymlUpdates inputs/outputs documentation for the new mechanism and parameters.
.github/actions/wait-for-vercel-project/package.jsonDrops @vercel/sdk, updates description, adds @types/node.
.github/actions/wait-for-vercel-project/pnpm-lock.yamlReflects dependency removals/additions for the action package.
Files not reviewed (1)
  • .github/actions/wait-for-vercel-project/pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread.github/actions/wait-for-vercel-project/action.yml
Comment thread.github/actions/wait-for-vercel-project/src/wait-for-deployment.ts Outdated
Comment thread.github/workflows/dispatch-front-workflow-release-pr.yml
Comment thread.github/actions/wait-for-vercel-project/action.yml Outdated
The GitHub Deployment status transitions to `success` only after the
Vercel app finishes building and routing is live, so an extra HTTP
liveness probe of the deployment URL was redundant. Removing it lets
us also drop the bypass-secret input \u2014 protected deployments don't
need a workaround anymore because we never make the request.
Reduces the action surface area and eliminates a runtime fetch.
- Fail loudly when the dpl_xxx deployment ID can't be resolved instead
of returning an empty string. Consumers wire this into
VERCEL_DEPLOYMENT_ID, which world-target uses to pick between the
vercel and local worlds (packages/utils/src/world-target.ts), so an
empty value would silently flip execution mode.
- Pass the GitHub App token to wait-for-vercel-project in the dispatch
release workflow. The job sets `permissions: contents: read`, which
blocks the default GITHUB_TOKEN from reading the Deployments API.
The App token (already generated for workflow,front) has the
necessary scopes.
@TooTallNate
TooTallNate enabled auto-merge (squash) April 28, 2026 20:10
@TooTallNate
TooTallNate merged commit 3a08eaa into mainApr 28, 2026
154 of 165 checks passed
@TooTallNate
TooTallNate deleted the ci/wait-for-vercel-via-github-api branch April 28, 2026 20:20
ijjk pushed a commit that referenced this pull request Apr 28, 2026
…1861)
* ci: refactor wait-for-vercel-project to use GitHub Deployments API
Replaces the Vercel SDK / Vercel API token-based implementation with one
that resolves the deployment URL via the GitHub Deployments API:
- Find the GitHub Deployment for (target SHA, environment) where
environment matches the Vercel-app-created "Preview \u2013 <slug>" or
"Production \u2013 <slug>" naming pattern.
- Wait for the latest deployment status to be `success` (or `inactive`
when Vercel skips a duplicate build, in which case its environment_url
still points at the live deployment).
- Probe the URL to confirm the edge can route to it (any non-5xx
response counts as live, including 401/403 from Deployment Protection
and 404/405 from the app). Manual redirect handling treats redirects
to vercel.com as "still building".
- Resolve the dpl_xxx deployment ID from the matching commit status
(Vercel posts `Vercel \u2013 <slug>` statuses where target_url's last
path segment is the inspector ID == deployment ID without the prefix).
Inputs change: project-slug + bypass-secret + github-token (with
GITHUB_TOKEN default) replace team-id + project-id + vercel-token.
Removes the @vercel/sdk dependency, shrinking the bundled dist from
5.4MB to 829KB. The VERCEL_DOCS_TOKEN secret is no longer referenced
anywhere in the repo and can be deleted from GH after this lands.
* ci(wait-for-vercel-project): drop URL probe and bypass-secret input
The GitHub Deployment status transitions to `success` only after the
Vercel app finishes building and routing is live, so an extra HTTP
liveness probe of the deployment URL was redundant. Removing it lets
us also drop the bypass-secret input \u2014 protected deployments don't
need a workaround anymore because we never make the request.
Reduces the action surface area and eliminates a runtime fetch.
* ci(wait-for-vercel-project): address PR review
- Fail loudly when the dpl_xxx deployment ID can't be resolved instead
of returning an empty string. Consumers wire this into
VERCEL_DEPLOYMENT_ID, which world-target uses to pick between the
vercel and local worlds (packages/utils/src/world-target.ts), so an
empty value would silently flip execution mode.
- Pass the GitHub App token to wait-for-vercel-project in the dispatch
release workflow. The job sets `permissions: contents: read`, which
blocks the default GITHUB_TOKEN from reading the Deployments API.
The App token (already generated for workflow,front) has the
necessary scopes.
Sign up for freeto 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.

3 participants

@TooTallNate@ijjk
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Strip utm_, fbclid, gclid, etc. from all links on page\n(function() {\n var trackingParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content',\n 'fbclid', 'gclid', 'dclid', 'msclkid', 'yclid',\n 'ref', 'ref_src', 'source', 'medium', 'campaign'];\n \n function cleanUrl(url) {\n try {\n var u = new URL(url, window.location.origin);\n var changed = false;\n trackingParams.forEach(function(p) {\n if (u.searchParams.has(p)) {\n u.searchParams.delete(p);\n changed = true;\n }\n });\n return changed ? u.toString() : url;\n } catch (e) {\n return url;\n }\n }\n \n function cleanLinks() {\n document.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n \n cleanLinks();\n \n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1) {\n if (node.tagName === 'A') cleanLinks();\n node.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Remove Tracking Parameters from Links"); } } catch(__e) { console.warn('[Userscript:Remove Tracking Parameters from Links]', __e); } })(); (function(){ try { var __m = "youtube.com"; var __re = new RegExp('^' + "youtube\\.com" + '
Skip to content

ci: refactor wait-for-vercel-project to use GitHub Deployments API - #1861

Merged
TooTallNate merged 4 commits into
mainfrom
ci/wait-for-vercel-via-github-api
Apr 28, 2026
Merged

ci: refactor wait-for-vercel-project to use GitHub Deployments API#1861
TooTallNate merged 4 commits into
mainfrom
ci/wait-for-vercel-via-github-api

Conversation

@TooTallNate

@TooTallNateTooTallNate commented Apr 28, 2026

Copy link
Copy Markdown
Member

Summary

Refactors the wait-for-vercel-project composite action to discover the deployment via the GitHub Deployments API instead of the Vercel REST API. This drops the per-team Vercel API token requirement (VERCEL_DOCS_TOKEN is now unreferenced anywhere in the repo) and shrinks the action's bundled dist/index.js from 5.4MB → 828KB (90K LOC removed) by dropping @vercel/sdk.

How it works

  1. Resolve the target SHA from the GitHub event payload (same as before).
  2. Find the GitHub Deployment for (sha, environment) where environment matches the Vercel-app-created naming pattern: Preview – <project-slug> or Production – <project-slug> (em-dash).
  3. Poll its latest deployment status. success and inactive are both terminal-OK — Vercel emits inactive immediately for skipped duplicate builds, and the environment_url in that case still points at the live previously-deployed URL.
  4. Resolve the dpl_xxx deployment ID from the matching commit status. Vercel posts a Vercel – <project-slug> commit status whose target_url's last path segment is the inspector ID — which equals the deployment ID without the dpl_ prefix. Action throws if the ID can't be resolved (consumers wire it into VERCEL_DEPLOYMENT_ID, which world-target uses to pick between the vercel and local worlds — an empty value would silently flip execution mode).

The action never makes a request to the deployment URL itself. By the time GitHub's deployment status reaches success, the Vercel app has already verified the deployment is live and routing is primed. This means there's no readiness probe and no need for a Deployment Protection bypass token in the action.

Inputs

BeforeAfter
team-id (required)removed
project-id (required, prj_xxx)removed
vercel-token (required)removed
project-slug (required)
github-token (optional, defaults to ${{ github.token }})
timeout, check-interval, environmentunchanged

Outputs (deployment-url, deployment-id) are unchanged.

Testing

Manually verified all three scenarios against real recent commits in this repo:

  • Workbench preview (example-nextjs-workflow-webpack) — resolves URL + dpl_xxx ID
  • Workbench production — resolves URL + dpl_xxx ID
  • Docs preview with inactive (skipped duplicate build) — resolves URL of the still-live previous deployment

Call site changes

All four invocations updated:

  • .github/workflows/tests.yml — workbench e2e jobs
  • .github/workflows/benchmarks.yml — benchmark jobs
  • .github/workflows/docs-checks.yml — docs smoke checks (also dropped the unused VERCEL_DOCS_TOKEN env var that was being forwarded into check-docs-smoke.mjs despite never being read)
  • .github/workflows/dispatch-front-workflow-release-pr.yml — front release PR dispatch. This workflow has a top-level permissions: contents: read block that would prevent the default GITHUB_TOKEN from reading the Deployments / Statuses APIs, so it explicitly passes the GitHub App token (already generated for workflow,front) via the new github-token input.

VERCEL_LABS_TOKEN is still used to set WORKFLOW_VERCEL_AUTH_TOKEN for the e2e test runtime, so it stays. VERCEL_DOCS_TOKEN is now unreferenced anywhere in the repo and can be deleted from GH after this PR merges.

Notes

  • CI-only change; no changeset needed (pnpm changeset status confirms).
  • The action's package.json now depends on @types/node@^22.19.0 directly instead of the workspace catalog: entry — pnpm install against this package uses --ignore-workspace since it's outside the workspace root.

Replaces the Vercel SDK / Vercel API token-based implementation with one
that resolves the deployment URL via the GitHub Deployments API:
- Find the GitHub Deployment for (target SHA, environment) where
environment matches the Vercel-app-created "Preview \u2013 <slug>" or
"Production \u2013 <slug>" naming pattern.
- Wait for the latest deployment status to be `success` (or `inactive`
when Vercel skips a duplicate build, in which case its environment_url
still points at the live deployment).
- Probe the URL to confirm the edge can route to it (any non-5xx
response counts as live, including 401/403 from Deployment Protection
and 404/405 from the app). Manual redirect handling treats redirects
to vercel.com as "still building".
- Resolve the dpl_xxx deployment ID from the matching commit status
(Vercel posts `Vercel \u2013 <slug>` statuses where target_url's last
path segment is the inspector ID == deployment ID without the prefix).
Inputs change: project-slug + bypass-secret + github-token (with
GITHUB_TOKEN default) replace team-id + project-id + vercel-token.
Removes the @vercel/sdk dependency, shrinking the bundled dist from
5.4MB to 829KB. The VERCEL_DOCS_TOKEN secret is no longer referenced
anywhere in the repo and can be deleted from GH after this lands.
CopilotAI review requested due to automatic review settings April 28, 2026 17:27
@vercel

vercelBot commented Apr 28, 2026

Copy link
Copy Markdown
Contributor

@changeset-bot

changeset-botBot commented Apr 28, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 24aa506

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions

github-actionsBot commented Apr 28, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

All tests passed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production9780671045
✅ 💻 Local Development10540861140
✅ 📦 Local Production10540861140
✅ 🐘 Local Postgres10540861140
✅ 🪟 Windows950095
✅ 📋 Other267018285
Total450203434845

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro8807
✅ example8807
✅ express8807
✅ fastify8807
✅ hono8807
✅ nextjs-turbopack9302
✅ nextjs-webpack9302
✅ nitro8807
✅ nuxt8807
✅ sveltekit8807
✅ vite8807
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable8906
✅ express-stable8906
✅ fastify-stable8906
✅ hono-stable8906
✅ nextjs-turbopack-canary76019
✅ nextjs-turbopack-stable9500
✅ nextjs-webpack-canary76019
✅ nextjs-webpack-stable9500
✅ nitro-stable8906
✅ nuxt-stable8906
✅ sveltekit-stable8906
✅ vite-stable8906
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable8906
✅ express-stable8906
✅ fastify-stable8906
✅ hono-stable8906
✅ nextjs-turbopack-canary76019
✅ nextjs-turbopack-stable9500
✅ nextjs-webpack-canary76019
✅ nextjs-webpack-stable9500
✅ nitro-stable8906
✅ nuxt-stable8906
✅ sveltekit-stable8906
✅ vite-stable8906
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable8906
✅ express-stable8906
✅ fastify-stable8906
✅ hono-stable8906
✅ nextjs-turbopack-canary76019
✅ nextjs-turbopack-stable9500
✅ nextjs-webpack-canary76019
✅ nextjs-webpack-stable9500
✅ nitro-stable8906
✅ nuxt-stable8906
✅ sveltekit-stable8906
✅ vite-stable8906
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack9500
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable8906
✅ e2e-local-postgres-nest-stable8906
✅ e2e-local-prod-nest-stable8906

📋 View full workflow run

@github-actions

github-actionsBot commented Apr 28, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro0.042s (-3.0%)1.005s (~)0.964s101.00x
💻 LocalExpress0.044s (-1.4%)1.005s (~)0.961s101.05x
💻 LocalNext.js (Turbopack)0.046s1.005s0.959s101.10x
🐘 PostgresExpress0.060s (+3.8%)1.010s (~)0.950s101.44x
🐘 PostgresNitro0.061s (-36.1% 🟢)1.010s (-3.2%)0.949s101.45x
🐘 PostgresNext.js (Turbopack)0.067s1.013s0.946s101.60x
workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)1.114s2.005s0.892s101.00x
💻 LocalNitro1.126s (~)2.006s (~)0.880s101.01x
💻 LocalExpress1.131s (+0.5%)2.005s (~)0.874s101.02x
🐘 PostgresNitro1.145s (~)2.009s (~)0.864s101.03x
🐘 PostgresNext.js (Turbopack)1.146s2.011s0.866s101.03x
🐘 PostgresExpress1.148s (~)2.011s (~)0.863s101.03x
workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)10.786s11.024s0.238s31.00x
🐘 PostgresNitro10.877s (~)11.021s (~)0.144s31.01x
🐘 PostgresNext.js (Turbopack)10.903s11.024s0.120s31.01x
🐘 PostgresExpress10.911s (~)11.022s (~)0.111s31.01x
💻 LocalNitro10.944s (~)11.022s (~)0.078s31.01x
💻 LocalExpress10.958s (~)11.024s (~)0.066s31.02x
workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro14.537s (~)15.023s (~)0.486s41.00x
🐘 PostgresExpress14.540s (~)15.021s (~)0.481s41.00x
💻 LocalNext.js (Turbopack)14.593s15.028s0.435s41.00x
🐘 PostgresNext.js (Turbopack)14.639s15.026s0.387s41.01x
💻 LocalExpress15.000s (~)15.280s (+1.7%)0.279s41.03x
💻 LocalNitro15.029s (~)15.531s (-3.1%)0.502s41.03x
workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro13.990s (~)14.308s (~)0.318s71.00x
🐘 PostgresExpress14.008s (~)14.445s (-1.0%)0.437s71.00x
🐘 PostgresNext.js (Turbopack)14.181s14.886s0.706s71.01x
💻 LocalNext.js (Turbopack)15.999s16.363s0.364s61.14x
💻 LocalExpress16.472s (-0.8%)17.032s (~)0.560s61.18x
💻 LocalNitro16.820s (~)17.032s (~)0.212s61.20x
Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)1.251s2.010s0.759s151.00x
🐘 PostgresNitro1.272s (~)2.010s (~)0.738s151.02x
🐘 PostgresExpress1.276s (+1.2%)2.009s (~)0.734s151.02x
💻 LocalNitro1.512s (-7.3% 🟢)2.005s (-3.3%)0.493s151.21x
💻 LocalExpress1.523s (+2.3%)2.006s (~)0.483s151.22x
💻 LocalNext.js (Turbopack)1.559s2.073s0.513s151.25x
Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.319s (-1.8%)3.010s (~)0.691s101.00x
🐘 PostgresNitro2.330s (-0.9%)3.009s (~)0.679s101.00x
🐘 PostgresNext.js (Turbopack)2.473s3.010s0.537s101.07x
💻 LocalExpress2.802s (-5.1% 🟢)3.009s (-12.9% 🟢)0.207s101.21x
💻 LocalNext.js (Turbopack)2.910s3.453s0.543s91.26x
💻 LocalNitro3.043s (-3.2%)3.675s (-5.4% 🟢)0.633s91.31x
Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro3.453s (-0.8%)4.011s (~)0.558s81.00x
🐘 PostgresExpress3.474s (~)4.010s (~)0.536s81.01x
🐘 PostgresNext.js (Turbopack)3.742s4.011s0.269s81.08x
💻 LocalExpress7.428s (-10.9% 🟢)8.021s (-11.1% 🟢)0.592s42.15x
💻 LocalNext.js (Turbopack)7.731s8.268s0.537s42.24x
💻 LocalNitro9.085s (+8.8% 🔺)10.024s (+11.1% 🔺)0.939s32.63x
Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)1.245s2.009s0.765s151.00x
🐘 PostgresExpress1.258s (~)2.008s (~)0.750s151.01x
🐘 PostgresNitro1.268s (+0.9%)2.008s (~)0.739s151.02x
💻 LocalNext.js (Turbopack)1.483s2.006s0.523s151.19x
💻 LocalExpress1.559s (-17.7% 🟢)2.072s (-12.3% 🟢)0.513s151.25x
💻 LocalNitro1.896s (+1.6%)2.391s (+2.2%)0.495s131.52x
Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro2.312s (-1.2%)3.009s (~)0.698s101.00x
🐘 PostgresExpress2.366s (+1.1%)3.010s (~)0.643s101.02x
🐘 PostgresNext.js (Turbopack)2.450s3.010s0.560s101.06x
💻 LocalNext.js (Turbopack)2.840s3.564s0.724s91.23x
💻 LocalExpress2.857s (-8.8% 🟢)3.107s (-17.4% 🟢)0.250s101.24x
💻 LocalNitro3.120s (+1.8%)4.012s (+3.2%)0.892s81.35x
Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro3.464s (~)4.010s (~)0.546s81.00x
🐘 PostgresExpress3.545s (+1.3%)4.011s (~)0.467s81.02x
🐘 PostgresNext.js (Turbopack)3.703s4.012s0.309s81.07x
💻 LocalNext.js (Turbopack)8.102s8.769s0.667s42.34x
💻 LocalExpress8.290s (-5.8% 🟢)8.770s (-5.4% 🟢)0.480s42.39x
💻 LocalNitro9.097s (-0.5%)9.773s (-2.5%)0.677s42.63x
workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.815s (-0.7%)1.023s (+1.6%)0.208s591.00x
🐘 PostgresExpress0.819s (-2.4%)1.006s (-1.7%)0.187s601.01x
🐘 PostgresNext.js (Turbopack)0.826s1.007s0.181s601.01x
💻 LocalNext.js (Turbopack)0.838s1.004s0.166s601.03x
💻 LocalNitro1.004s (+2.3%)1.458s (+33.3% 🔺)0.454s421.23x
💻 LocalExpress1.029s (+4.5%)1.770s (+64.5% 🔺)0.742s341.26x
workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.919s (~)2.123s (+1.1%)0.205s431.00x
🐘 PostgresExpress1.940s (-1.8%)2.184s (-3.3%)0.244s421.01x
🐘 PostgresNext.js (Turbopack)2.043s2.767s0.724s331.06x
💻 LocalNext.js (Turbopack)2.674s3.008s0.334s301.39x
💻 LocalNitro3.031s (~)3.801s (+1.1%)0.770s241.58x
💻 LocalExpress3.040s (+0.8%)3.884s (+8.3% 🔺)0.844s241.58x
workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.938s (-1.3%)4.296s (-1.7%)0.357s281.00x
🐘 PostgresNext.js (Turbopack)4.180s5.013s0.833s241.06x
🐘 PostgresNitro4.361s (+6.3% 🔺)4.852s (+5.4% 🔺)0.491s251.11x
💻 LocalNext.js (Turbopack)8.643s9.017s0.375s142.19x
💻 LocalExpress8.923s (-3.1%)9.325s (-6.9% 🟢)0.402s132.27x
💻 LocalNitro9.214s (-0.9%)9.787s (-2.3%)0.573s132.34x
workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)0.262s1.007s0.746s601.00x
🐘 PostgresExpress0.276s (-2.1%)1.007s (~)0.730s601.06x
🐘 PostgresNitro0.316s (+11.6% 🔺)1.009s (~)0.693s601.21x
💻 LocalExpress0.545s (-2.7%)1.004s (~)0.459s602.08x
💻 LocalNext.js (Turbopack)0.590s1.039s0.450s582.25x
💻 LocalNitro0.608s (+0.5%)1.022s (~)0.414s592.32x
workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.495s (-2.9%)1.007s (~)0.512s901.00x
🐘 PostgresNitro0.521s (+4.9%)1.008s (~)0.487s901.05x
🐘 PostgresNext.js (Turbopack)0.521s1.007s0.486s901.05x
💻 LocalExpress2.333s (-7.2% 🟢)3.009s (~)0.676s304.71x
💻 LocalNext.js (Turbopack)2.499s3.009s0.510s305.05x
💻 LocalNitro2.546s (~)3.009s (~)0.462s305.14x
workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.788s (-3.7%)1.008s (-0.9%)0.219s1201.00x
🐘 PostgresNitro0.863s (+9.1% 🔺)1.055s (+4.7%)0.192s1141.09x
🐘 PostgresNext.js (Turbopack)0.912s1.111s0.199s1081.16x
💻 LocalExpress10.240s (-8.5% 🟢)10.936s (-8.4% 🟢)0.696s1112.99x
💻 LocalNext.js (Turbopack)10.374s11.028s0.654s1113.16x
💻 LocalNitro11.279s (+0.8%)12.029s (+3.1%)0.750s1014.30x
Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)0.169s1.003s0.012s1.018s0.849s101.00x
🐘 PostgresNext.js (Turbopack)0.206s1.000s0.002s1.012s0.806s101.22x
💻 LocalNitro0.206s (-3.5%)1.004s (~)0.012s (-1.6%)1.019s (~)0.812s101.22x
🐘 PostgresExpress0.213s (+4.0%)0.999s (~)0.001s (-12.5% 🟢)1.010s (~)0.797s101.26x
💻 LocalExpress0.217s (+9.0% 🔺)1.004s (~)0.010s (-16.5% 🟢)1.016s (~)0.799s101.29x
🐘 PostgresNitro0.225s (+9.6% 🔺)0.995s (~)0.001s (-40.0% 🟢)1.009s (~)0.784s101.33x
stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.611s (-3.0%)1.022s (+1.5%)0.004s (+2.6%)1.039s (+1.6%)0.428s581.00x
💻 LocalNext.js (Turbopack)0.647s1.012s0.010s1.024s0.377s591.06x
🐘 PostgresNitro0.652s (+4.5%)1.004s (~)0.004s (-10.2% 🟢)1.022s (~)0.370s591.07x
🐘 PostgresNext.js (Turbopack)0.671s1.009s0.007s1.029s0.359s591.10x
💻 LocalExpress0.754s (~)1.013s (-1.6%)0.009s (-6.7% 🟢)1.023s (-1.6%)0.269s591.23x
💻 LocalNitro0.756s (-9.9% 🟢)1.012s (~)0.010s (+5.8% 🔺)1.023s (-8.3% 🟢)0.268s591.24x
10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.894s (-7.7% 🟢)1.108s (-11.2% 🟢)0.000s (-100.0% 🟢)1.119s (-11.0% 🟢)0.225s541.00x
🐘 PostgresExpress0.964s (~)1.240s (-3.0%)0.000s (-52.1% 🟢)1.259s (-3.6%)0.296s481.08x
🐘 PostgresNext.js (Turbopack)0.972s1.272s0.000s1.280s0.309s481.09x
💻 LocalExpress1.191s (-2.7%)2.020s (~)0.000s (+20.0% 🔺)2.022s (~)0.831s301.33x
💻 LocalNext.js (Turbopack)1.245s2.020s0.000s2.023s0.779s301.39x
💻 LocalNitro1.427s (+16.7% 🔺)2.022s (~)0.000s (+257.1% 🔺)2.203s (+9.0% 🔺)0.776s281.60x
fan-out fan-in 10 streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.740s (-2.9%)2.175s (+1.6%)0.000s (-100.0% 🟢)2.187s (+0.6%)0.448s281.00x
🐘 PostgresExpress1.811s (+2.2%)2.175s (~)0.000s (+Infinity% 🔺)2.205s (~)0.393s281.04x
🐘 PostgresNext.js (Turbopack)1.973s2.262s0.000s2.270s0.297s271.13x
💻 LocalExpress3.318s (-4.3%)4.034s (~)0.000s (-58.3% 🟢)4.038s (~)0.720s151.91x
💻 LocalNext.js (Turbopack)3.441s4.035s0.000s4.039s0.597s151.98x
💻 LocalNitro3.531s (+4.2%)4.100s (+1.7%)0.000s (-12.5% 🟢)4.102s (+1.6%)0.572s152.03x

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)12/21
🐘 PostgresNitro11/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express🐘 Postgres19/21
Next.js (Turbopack)🐘 Postgres15/21
Nitro🐘 Postgres18/21
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)

📋 View full workflow run


⚠️Community world benchmarks failed (non-blocking):

  • Community Worlds: failure

Check the workflow run for details.

@socket-security

socket-securityBot commented Apr 28, 2026

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

DiffPackageSupply Chain
Security
VulnerabilityQualityMaintenanceLicense
Addednpm/​@​types/​node@​22.19.171001008195100

View full report

CopilotAI left a comment

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.

Pull request overview

Refactors the internal wait-for-vercel-project GitHub Action to discover and poll Vercel deployments via the GitHub Deployments API (rather than Vercel’s API), simplifying secrets management and reducing the action bundle/deps.

Changes:

  • Reworked the action implementation to list GitHub Deployments by (sha, environment) and poll deployment statuses + probe the environment URL.
  • Updated CI workflows to pass project-slug / bypass-secret instead of Vercel team/project IDs and Vercel API tokens.
  • Removed @vercel/sdk from the action package dependencies and updated the lockfile accordingly.

Reviewed changes

Copilot reviewed 7 out of 9 changed files in this pull request and generated 4 comments.

Show a summary per file
FileDescription
.github/workflows/tests.ymlUpdates action invocation to use project-slug and bypass secret.
.github/workflows/benchmarks.ymlUpdates action invocation to use project-slug and bypass secret.
.github/workflows/docs-checks.ymlUpdates action invocation and removes forwarding of the unused docs Vercel token env var.
.github/workflows/dispatch-front-workflow-release-pr.ymlUpdates docs deployment wait step to use the new action inputs.
.github/actions/wait-for-vercel-project/src/wait-for-deployment.tsImplements GitHub Deployments API polling, readiness probing, and deployment-id resolution from commit statuses.
.github/actions/wait-for-vercel-project/action.ymlUpdates inputs/outputs documentation for the new mechanism and parameters.
.github/actions/wait-for-vercel-project/package.jsonDrops @vercel/sdk, updates description, adds @types/node.
.github/actions/wait-for-vercel-project/pnpm-lock.yamlReflects dependency removals/additions for the action package.
Files not reviewed (1)
  • .github/actions/wait-for-vercel-project/pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread.github/actions/wait-for-vercel-project/action.yml
Comment thread.github/actions/wait-for-vercel-project/src/wait-for-deployment.ts Outdated
Comment thread.github/workflows/dispatch-front-workflow-release-pr.yml
Comment thread.github/actions/wait-for-vercel-project/action.yml Outdated
The GitHub Deployment status transitions to `success` only after the
Vercel app finishes building and routing is live, so an extra HTTP
liveness probe of the deployment URL was redundant. Removing it lets
us also drop the bypass-secret input \u2014 protected deployments don't
need a workaround anymore because we never make the request.
Reduces the action surface area and eliminates a runtime fetch.
- Fail loudly when the dpl_xxx deployment ID can't be resolved instead
of returning an empty string. Consumers wire this into
VERCEL_DEPLOYMENT_ID, which world-target uses to pick between the
vercel and local worlds (packages/utils/src/world-target.ts), so an
empty value would silently flip execution mode.
- Pass the GitHub App token to wait-for-vercel-project in the dispatch
release workflow. The job sets `permissions: contents: read`, which
blocks the default GITHUB_TOKEN from reading the Deployments API.
The App token (already generated for workflow,front) has the
necessary scopes.
@TooTallNate
TooTallNate enabled auto-merge (squash) April 28, 2026 20:10
@TooTallNate
TooTallNate merged commit 3a08eaa into mainApr 28, 2026
154 of 165 checks passed
@TooTallNate
TooTallNate deleted the ci/wait-for-vercel-via-github-api branch April 28, 2026 20:20
ijjk pushed a commit that referenced this pull request Apr 28, 2026
…1861)
* ci: refactor wait-for-vercel-project to use GitHub Deployments API
Replaces the Vercel SDK / Vercel API token-based implementation with one
that resolves the deployment URL via the GitHub Deployments API:
- Find the GitHub Deployment for (target SHA, environment) where
environment matches the Vercel-app-created "Preview \u2013 <slug>" or
"Production \u2013 <slug>" naming pattern.
- Wait for the latest deployment status to be `success` (or `inactive`
when Vercel skips a duplicate build, in which case its environment_url
still points at the live deployment).
- Probe the URL to confirm the edge can route to it (any non-5xx
response counts as live, including 401/403 from Deployment Protection
and 404/405 from the app). Manual redirect handling treats redirects
to vercel.com as "still building".
- Resolve the dpl_xxx deployment ID from the matching commit status
(Vercel posts `Vercel \u2013 <slug>` statuses where target_url's last
path segment is the inspector ID == deployment ID without the prefix).
Inputs change: project-slug + bypass-secret + github-token (with
GITHUB_TOKEN default) replace team-id + project-id + vercel-token.
Removes the @vercel/sdk dependency, shrinking the bundled dist from
5.4MB to 829KB. The VERCEL_DOCS_TOKEN secret is no longer referenced
anywhere in the repo and can be deleted from GH after this lands.
* ci(wait-for-vercel-project): drop URL probe and bypass-secret input
The GitHub Deployment status transitions to `success` only after the
Vercel app finishes building and routing is live, so an extra HTTP
liveness probe of the deployment URL was redundant. Removing it lets
us also drop the bypass-secret input \u2014 protected deployments don't
need a workaround anymore because we never make the request.
Reduces the action surface area and eliminates a runtime fetch.
* ci(wait-for-vercel-project): address PR review
- Fail loudly when the dpl_xxx deployment ID can't be resolved instead
of returning an empty string. Consumers wire this into
VERCEL_DEPLOYMENT_ID, which world-target uses to pick between the
vercel and local worlds (packages/utils/src/world-target.ts), so an
empty value would silently flip execution mode.
- Pass the GitHub App token to wait-for-vercel-project in the dispatch
release workflow. The job sets `permissions: contents: read`, which
blocks the default GITHUB_TOKEN from reading the Deployments API.
The App token (already generated for workflow,front) has the
necessary scopes.
Sign up for freeto 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.

3 participants

@TooTallNate@ijjk
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Auto-enable theater mode on YouTube\n(function() {\n function tryTheater() {\n var btn = document.querySelector('button[aria-label=\"Theater mode\"], ytd-player #player button[title=\"Theater mode\"]');\n if (btn && !btn.classList.contains('activated')) {\n btn.click();\n }\n }\n \n // Try immediately\n tryTheater();\n \n // Try after navigation (SPA)\n var lastUrl = location.href;\n setInterval(function() {\n if (location.href !== lastUrl) {\n lastUrl = location.href;\n setTimeout(tryTheater, 500);\n }\n }, 1000);\n \n // Also try on player load\n var observer = new MutationObserver(tryTheater);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "YouTube Theater Mode Default"); } } catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

ci: refactor wait-for-vercel-project to use GitHub Deployments API - #1861

Merged
TooTallNate merged 4 commits into
mainfrom
ci/wait-for-vercel-via-github-api
Apr 28, 2026
Merged

ci: refactor wait-for-vercel-project to use GitHub Deployments API#1861
TooTallNate merged 4 commits into
mainfrom
ci/wait-for-vercel-via-github-api

Conversation

@TooTallNate

@TooTallNateTooTallNate commented Apr 28, 2026

Copy link
Copy Markdown
Member

Summary

Refactors the wait-for-vercel-project composite action to discover the deployment via the GitHub Deployments API instead of the Vercel REST API. This drops the per-team Vercel API token requirement (VERCEL_DOCS_TOKEN is now unreferenced anywhere in the repo) and shrinks the action's bundled dist/index.js from 5.4MB → 828KB (90K LOC removed) by dropping @vercel/sdk.

How it works

  1. Resolve the target SHA from the GitHub event payload (same as before).
  2. Find the GitHub Deployment for (sha, environment) where environment matches the Vercel-app-created naming pattern: Preview – <project-slug> or Production – <project-slug> (em-dash).
  3. Poll its latest deployment status. success and inactive are both terminal-OK — Vercel emits inactive immediately for skipped duplicate builds, and the environment_url in that case still points at the live previously-deployed URL.
  4. Resolve the dpl_xxx deployment ID from the matching commit status. Vercel posts a Vercel – <project-slug> commit status whose target_url's last path segment is the inspector ID — which equals the deployment ID without the dpl_ prefix. Action throws if the ID can't be resolved (consumers wire it into VERCEL_DEPLOYMENT_ID, which world-target uses to pick between the vercel and local worlds — an empty value would silently flip execution mode).

The action never makes a request to the deployment URL itself. By the time GitHub's deployment status reaches success, the Vercel app has already verified the deployment is live and routing is primed. This means there's no readiness probe and no need for a Deployment Protection bypass token in the action.

Inputs

BeforeAfter
team-id (required)removed
project-id (required, prj_xxx)removed
vercel-token (required)removed
project-slug (required)
github-token (optional, defaults to ${{ github.token }})
timeout, check-interval, environmentunchanged

Outputs (deployment-url, deployment-id) are unchanged.

Testing

Manually verified all three scenarios against real recent commits in this repo:

  • Workbench preview (example-nextjs-workflow-webpack) — resolves URL + dpl_xxx ID
  • Workbench production — resolves URL + dpl_xxx ID
  • Docs preview with inactive (skipped duplicate build) — resolves URL of the still-live previous deployment

Call site changes

All four invocations updated:

  • .github/workflows/tests.yml — workbench e2e jobs
  • .github/workflows/benchmarks.yml — benchmark jobs
  • .github/workflows/docs-checks.yml — docs smoke checks (also dropped the unused VERCEL_DOCS_TOKEN env var that was being forwarded into check-docs-smoke.mjs despite never being read)
  • .github/workflows/dispatch-front-workflow-release-pr.yml — front release PR dispatch. This workflow has a top-level permissions: contents: read block that would prevent the default GITHUB_TOKEN from reading the Deployments / Statuses APIs, so it explicitly passes the GitHub App token (already generated for workflow,front) via the new github-token input.

VERCEL_LABS_TOKEN is still used to set WORKFLOW_VERCEL_AUTH_TOKEN for the e2e test runtime, so it stays. VERCEL_DOCS_TOKEN is now unreferenced anywhere in the repo and can be deleted from GH after this PR merges.

Notes

  • CI-only change; no changeset needed (pnpm changeset status confirms).
  • The action's package.json now depends on @types/node@^22.19.0 directly instead of the workspace catalog: entry — pnpm install against this package uses --ignore-workspace since it's outside the workspace root.

Replaces the Vercel SDK / Vercel API token-based implementation with one
that resolves the deployment URL via the GitHub Deployments API:
- Find the GitHub Deployment for (target SHA, environment) where
environment matches the Vercel-app-created "Preview \u2013 <slug>" or
"Production \u2013 <slug>" naming pattern.
- Wait for the latest deployment status to be `success` (or `inactive`
when Vercel skips a duplicate build, in which case its environment_url
still points at the live deployment).
- Probe the URL to confirm the edge can route to it (any non-5xx
response counts as live, including 401/403 from Deployment Protection
and 404/405 from the app). Manual redirect handling treats redirects
to vercel.com as "still building".
- Resolve the dpl_xxx deployment ID from the matching commit status
(Vercel posts `Vercel \u2013 <slug>` statuses where target_url's last
path segment is the inspector ID == deployment ID without the prefix).
Inputs change: project-slug + bypass-secret + github-token (with
GITHUB_TOKEN default) replace team-id + project-id + vercel-token.
Removes the @vercel/sdk dependency, shrinking the bundled dist from
5.4MB to 829KB. The VERCEL_DOCS_TOKEN secret is no longer referenced
anywhere in the repo and can be deleted from GH after this lands.
CopilotAI review requested due to automatic review settings April 28, 2026 17:27
@vercel

vercelBot commented Apr 28, 2026

Copy link
Copy Markdown
Contributor

@changeset-bot

changeset-botBot commented Apr 28, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 24aa506

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions

github-actionsBot commented Apr 28, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

All tests passed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production9780671045
✅ 💻 Local Development10540861140
✅ 📦 Local Production10540861140
✅ 🐘 Local Postgres10540861140
✅ 🪟 Windows950095
✅ 📋 Other267018285
Total450203434845

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro8807
✅ example8807
✅ express8807
✅ fastify8807
✅ hono8807
✅ nextjs-turbopack9302
✅ nextjs-webpack9302
✅ nitro8807
✅ nuxt8807
✅ sveltekit8807
✅ vite8807
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable8906
✅ express-stable8906
✅ fastify-stable8906
✅ hono-stable8906
✅ nextjs-turbopack-canary76019
✅ nextjs-turbopack-stable9500
✅ nextjs-webpack-canary76019
✅ nextjs-webpack-stable9500
✅ nitro-stable8906
✅ nuxt-stable8906
✅ sveltekit-stable8906
✅ vite-stable8906
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable8906
✅ express-stable8906
✅ fastify-stable8906
✅ hono-stable8906
✅ nextjs-turbopack-canary76019
✅ nextjs-turbopack-stable9500
✅ nextjs-webpack-canary76019
✅ nextjs-webpack-stable9500
✅ nitro-stable8906
✅ nuxt-stable8906
✅ sveltekit-stable8906
✅ vite-stable8906
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable8906
✅ express-stable8906
✅ fastify-stable8906
✅ hono-stable8906
✅ nextjs-turbopack-canary76019
✅ nextjs-turbopack-stable9500
✅ nextjs-webpack-canary76019
✅ nextjs-webpack-stable9500
✅ nitro-stable8906
✅ nuxt-stable8906
✅ sveltekit-stable8906
✅ vite-stable8906
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack9500
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable8906
✅ e2e-local-postgres-nest-stable8906
✅ e2e-local-prod-nest-stable8906

📋 View full workflow run

@github-actions

github-actionsBot commented Apr 28, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro0.042s (-3.0%)1.005s (~)0.964s101.00x
💻 LocalExpress0.044s (-1.4%)1.005s (~)0.961s101.05x
💻 LocalNext.js (Turbopack)0.046s1.005s0.959s101.10x
🐘 PostgresExpress0.060s (+3.8%)1.010s (~)0.950s101.44x
🐘 PostgresNitro0.061s (-36.1% 🟢)1.010s (-3.2%)0.949s101.45x
🐘 PostgresNext.js (Turbopack)0.067s1.013s0.946s101.60x
workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)1.114s2.005s0.892s101.00x
💻 LocalNitro1.126s (~)2.006s (~)0.880s101.01x
💻 LocalExpress1.131s (+0.5%)2.005s (~)0.874s101.02x
🐘 PostgresNitro1.145s (~)2.009s (~)0.864s101.03x
🐘 PostgresNext.js (Turbopack)1.146s2.011s0.866s101.03x
🐘 PostgresExpress1.148s (~)2.011s (~)0.863s101.03x
workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)10.786s11.024s0.238s31.00x
🐘 PostgresNitro10.877s (~)11.021s (~)0.144s31.01x
🐘 PostgresNext.js (Turbopack)10.903s11.024s0.120s31.01x
🐘 PostgresExpress10.911s (~)11.022s (~)0.111s31.01x
💻 LocalNitro10.944s (~)11.022s (~)0.078s31.01x
💻 LocalExpress10.958s (~)11.024s (~)0.066s31.02x
workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro14.537s (~)15.023s (~)0.486s41.00x
🐘 PostgresExpress14.540s (~)15.021s (~)0.481s41.00x
💻 LocalNext.js (Turbopack)14.593s15.028s0.435s41.00x
🐘 PostgresNext.js (Turbopack)14.639s15.026s0.387s41.01x
💻 LocalExpress15.000s (~)15.280s (+1.7%)0.279s41.03x
💻 LocalNitro15.029s (~)15.531s (-3.1%)0.502s41.03x
workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro13.990s (~)14.308s (~)0.318s71.00x
🐘 PostgresExpress14.008s (~)14.445s (-1.0%)0.437s71.00x
🐘 PostgresNext.js (Turbopack)14.181s14.886s0.706s71.01x
💻 LocalNext.js (Turbopack)15.999s16.363s0.364s61.14x
💻 LocalExpress16.472s (-0.8%)17.032s (~)0.560s61.18x
💻 LocalNitro16.820s (~)17.032s (~)0.212s61.20x
Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)1.251s2.010s0.759s151.00x
🐘 PostgresNitro1.272s (~)2.010s (~)0.738s151.02x
🐘 PostgresExpress1.276s (+1.2%)2.009s (~)0.734s151.02x
💻 LocalNitro1.512s (-7.3% 🟢)2.005s (-3.3%)0.493s151.21x
💻 LocalExpress1.523s (+2.3%)2.006s (~)0.483s151.22x
💻 LocalNext.js (Turbopack)1.559s2.073s0.513s151.25x
Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.319s (-1.8%)3.010s (~)0.691s101.00x
🐘 PostgresNitro2.330s (-0.9%)3.009s (~)0.679s101.00x
🐘 PostgresNext.js (Turbopack)2.473s3.010s0.537s101.07x
💻 LocalExpress2.802s (-5.1% 🟢)3.009s (-12.9% 🟢)0.207s101.21x
💻 LocalNext.js (Turbopack)2.910s3.453s0.543s91.26x
💻 LocalNitro3.043s (-3.2%)3.675s (-5.4% 🟢)0.633s91.31x
Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro3.453s (-0.8%)4.011s (~)0.558s81.00x
🐘 PostgresExpress3.474s (~)4.010s (~)0.536s81.01x
🐘 PostgresNext.js (Turbopack)3.742s4.011s0.269s81.08x
💻 LocalExpress7.428s (-10.9% 🟢)8.021s (-11.1% 🟢)0.592s42.15x
💻 LocalNext.js (Turbopack)7.731s8.268s0.537s42.24x
💻 LocalNitro9.085s (+8.8% 🔺)10.024s (+11.1% 🔺)0.939s32.63x
Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)1.245s2.009s0.765s151.00x
🐘 PostgresExpress1.258s (~)2.008s (~)0.750s151.01x
🐘 PostgresNitro1.268s (+0.9%)2.008s (~)0.739s151.02x
💻 LocalNext.js (Turbopack)1.483s2.006s0.523s151.19x
💻 LocalExpress1.559s (-17.7% 🟢)2.072s (-12.3% 🟢)0.513s151.25x
💻 LocalNitro1.896s (+1.6%)2.391s (+2.2%)0.495s131.52x
Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro2.312s (-1.2%)3.009s (~)0.698s101.00x
🐘 PostgresExpress2.366s (+1.1%)3.010s (~)0.643s101.02x
🐘 PostgresNext.js (Turbopack)2.450s3.010s0.560s101.06x
💻 LocalNext.js (Turbopack)2.840s3.564s0.724s91.23x
💻 LocalExpress2.857s (-8.8% 🟢)3.107s (-17.4% 🟢)0.250s101.24x
💻 LocalNitro3.120s (+1.8%)4.012s (+3.2%)0.892s81.35x
Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro3.464s (~)4.010s (~)0.546s81.00x
🐘 PostgresExpress3.545s (+1.3%)4.011s (~)0.467s81.02x
🐘 PostgresNext.js (Turbopack)3.703s4.012s0.309s81.07x
💻 LocalNext.js (Turbopack)8.102s8.769s0.667s42.34x
💻 LocalExpress8.290s (-5.8% 🟢)8.770s (-5.4% 🟢)0.480s42.39x
💻 LocalNitro9.097s (-0.5%)9.773s (-2.5%)0.677s42.63x
workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.815s (-0.7%)1.023s (+1.6%)0.208s591.00x
🐘 PostgresExpress0.819s (-2.4%)1.006s (-1.7%)0.187s601.01x
🐘 PostgresNext.js (Turbopack)0.826s1.007s0.181s601.01x
💻 LocalNext.js (Turbopack)0.838s1.004s0.166s601.03x
💻 LocalNitro1.004s (+2.3%)1.458s (+33.3% 🔺)0.454s421.23x
💻 LocalExpress1.029s (+4.5%)1.770s (+64.5% 🔺)0.742s341.26x
workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.919s (~)2.123s (+1.1%)0.205s431.00x
🐘 PostgresExpress1.940s (-1.8%)2.184s (-3.3%)0.244s421.01x
🐘 PostgresNext.js (Turbopack)2.043s2.767s0.724s331.06x
💻 LocalNext.js (Turbopack)2.674s3.008s0.334s301.39x
💻 LocalNitro3.031s (~)3.801s (+1.1%)0.770s241.58x
💻 LocalExpress3.040s (+0.8%)3.884s (+8.3% 🔺)0.844s241.58x
workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.938s (-1.3%)4.296s (-1.7%)0.357s281.00x
🐘 PostgresNext.js (Turbopack)4.180s5.013s0.833s241.06x
🐘 PostgresNitro4.361s (+6.3% 🔺)4.852s (+5.4% 🔺)0.491s251.11x
💻 LocalNext.js (Turbopack)8.643s9.017s0.375s142.19x
💻 LocalExpress8.923s (-3.1%)9.325s (-6.9% 🟢)0.402s132.27x
💻 LocalNitro9.214s (-0.9%)9.787s (-2.3%)0.573s132.34x
workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)0.262s1.007s0.746s601.00x
🐘 PostgresExpress0.276s (-2.1%)1.007s (~)0.730s601.06x
🐘 PostgresNitro0.316s (+11.6% 🔺)1.009s (~)0.693s601.21x
💻 LocalExpress0.545s (-2.7%)1.004s (~)0.459s602.08x
💻 LocalNext.js (Turbopack)0.590s1.039s0.450s582.25x
💻 LocalNitro0.608s (+0.5%)1.022s (~)0.414s592.32x
workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.495s (-2.9%)1.007s (~)0.512s901.00x
🐘 PostgresNitro0.521s (+4.9%)1.008s (~)0.487s901.05x
🐘 PostgresNext.js (Turbopack)0.521s1.007s0.486s901.05x
💻 LocalExpress2.333s (-7.2% 🟢)3.009s (~)0.676s304.71x
💻 LocalNext.js (Turbopack)2.499s3.009s0.510s305.05x
💻 LocalNitro2.546s (~)3.009s (~)0.462s305.14x
workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.788s (-3.7%)1.008s (-0.9%)0.219s1201.00x
🐘 PostgresNitro0.863s (+9.1% 🔺)1.055s (+4.7%)0.192s1141.09x
🐘 PostgresNext.js (Turbopack)0.912s1.111s0.199s1081.16x
💻 LocalExpress10.240s (-8.5% 🟢)10.936s (-8.4% 🟢)0.696s1112.99x
💻 LocalNext.js (Turbopack)10.374s11.028s0.654s1113.16x
💻 LocalNitro11.279s (+0.8%)12.029s (+3.1%)0.750s1014.30x
Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)0.169s1.003s0.012s1.018s0.849s101.00x
🐘 PostgresNext.js (Turbopack)0.206s1.000s0.002s1.012s0.806s101.22x
💻 LocalNitro0.206s (-3.5%)1.004s (~)0.012s (-1.6%)1.019s (~)0.812s101.22x
🐘 PostgresExpress0.213s (+4.0%)0.999s (~)0.001s (-12.5% 🟢)1.010s (~)0.797s101.26x
💻 LocalExpress0.217s (+9.0% 🔺)1.004s (~)0.010s (-16.5% 🟢)1.016s (~)0.799s101.29x
🐘 PostgresNitro0.225s (+9.6% 🔺)0.995s (~)0.001s (-40.0% 🟢)1.009s (~)0.784s101.33x
stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.611s (-3.0%)1.022s (+1.5%)0.004s (+2.6%)1.039s (+1.6%)0.428s581.00x
💻 LocalNext.js (Turbopack)0.647s1.012s0.010s1.024s0.377s591.06x
🐘 PostgresNitro0.652s (+4.5%)1.004s (~)0.004s (-10.2% 🟢)1.022s (~)0.370s591.07x
🐘 PostgresNext.js (Turbopack)0.671s1.009s0.007s1.029s0.359s591.10x
💻 LocalExpress0.754s (~)1.013s (-1.6%)0.009s (-6.7% 🟢)1.023s (-1.6%)0.269s591.23x
💻 LocalNitro0.756s (-9.9% 🟢)1.012s (~)0.010s (+5.8% 🔺)1.023s (-8.3% 🟢)0.268s591.24x
10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.894s (-7.7% 🟢)1.108s (-11.2% 🟢)0.000s (-100.0% 🟢)1.119s (-11.0% 🟢)0.225s541.00x
🐘 PostgresExpress0.964s (~)1.240s (-3.0%)0.000s (-52.1% 🟢)1.259s (-3.6%)0.296s481.08x
🐘 PostgresNext.js (Turbopack)0.972s1.272s0.000s1.280s0.309s481.09x
💻 LocalExpress1.191s (-2.7%)2.020s (~)0.000s (+20.0% 🔺)2.022s (~)0.831s301.33x
💻 LocalNext.js (Turbopack)1.245s2.020s0.000s2.023s0.779s301.39x
💻 LocalNitro1.427s (+16.7% 🔺)2.022s (~)0.000s (+257.1% 🔺)2.203s (+9.0% 🔺)0.776s281.60x
fan-out fan-in 10 streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.740s (-2.9%)2.175s (+1.6%)0.000s (-100.0% 🟢)2.187s (+0.6%)0.448s281.00x
🐘 PostgresExpress1.811s (+2.2%)2.175s (~)0.000s (+Infinity% 🔺)2.205s (~)0.393s281.04x
🐘 PostgresNext.js (Turbopack)1.973s2.262s0.000s2.270s0.297s271.13x
💻 LocalExpress3.318s (-4.3%)4.034s (~)0.000s (-58.3% 🟢)4.038s (~)0.720s151.91x
💻 LocalNext.js (Turbopack)3.441s4.035s0.000s4.039s0.597s151.98x
💻 LocalNitro3.531s (+4.2%)4.100s (+1.7%)0.000s (-12.5% 🟢)4.102s (+1.6%)0.572s152.03x

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)12/21
🐘 PostgresNitro11/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express🐘 Postgres19/21
Next.js (Turbopack)🐘 Postgres15/21
Nitro🐘 Postgres18/21
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)

📋 View full workflow run


⚠️Community world benchmarks failed (non-blocking):

  • Community Worlds: failure

Check the workflow run for details.

@socket-security

socket-securityBot commented Apr 28, 2026

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

DiffPackageSupply Chain
Security
VulnerabilityQualityMaintenanceLicense
Addednpm/​@​types/​node@​22.19.171001008195100

View full report

CopilotAI left a comment

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.

Pull request overview

Refactors the internal wait-for-vercel-project GitHub Action to discover and poll Vercel deployments via the GitHub Deployments API (rather than Vercel’s API), simplifying secrets management and reducing the action bundle/deps.

Changes:

  • Reworked the action implementation to list GitHub Deployments by (sha, environment) and poll deployment statuses + probe the environment URL.
  • Updated CI workflows to pass project-slug / bypass-secret instead of Vercel team/project IDs and Vercel API tokens.
  • Removed @vercel/sdk from the action package dependencies and updated the lockfile accordingly.

Reviewed changes

Copilot reviewed 7 out of 9 changed files in this pull request and generated 4 comments.

Show a summary per file
FileDescription
.github/workflows/tests.ymlUpdates action invocation to use project-slug and bypass secret.
.github/workflows/benchmarks.ymlUpdates action invocation to use project-slug and bypass secret.
.github/workflows/docs-checks.ymlUpdates action invocation and removes forwarding of the unused docs Vercel token env var.
.github/workflows/dispatch-front-workflow-release-pr.ymlUpdates docs deployment wait step to use the new action inputs.
.github/actions/wait-for-vercel-project/src/wait-for-deployment.tsImplements GitHub Deployments API polling, readiness probing, and deployment-id resolution from commit statuses.
.github/actions/wait-for-vercel-project/action.ymlUpdates inputs/outputs documentation for the new mechanism and parameters.
.github/actions/wait-for-vercel-project/package.jsonDrops @vercel/sdk, updates description, adds @types/node.
.github/actions/wait-for-vercel-project/pnpm-lock.yamlReflects dependency removals/additions for the action package.
Files not reviewed (1)
  • .github/actions/wait-for-vercel-project/pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread.github/actions/wait-for-vercel-project/action.yml
Comment thread.github/actions/wait-for-vercel-project/src/wait-for-deployment.ts Outdated
Comment thread.github/workflows/dispatch-front-workflow-release-pr.yml
Comment thread.github/actions/wait-for-vercel-project/action.yml Outdated
The GitHub Deployment status transitions to `success` only after the
Vercel app finishes building and routing is live, so an extra HTTP
liveness probe of the deployment URL was redundant. Removing it lets
us also drop the bypass-secret input \u2014 protected deployments don't
need a workaround anymore because we never make the request.
Reduces the action surface area and eliminates a runtime fetch.
- Fail loudly when the dpl_xxx deployment ID can't be resolved instead
of returning an empty string. Consumers wire this into
VERCEL_DEPLOYMENT_ID, which world-target uses to pick between the
vercel and local worlds (packages/utils/src/world-target.ts), so an
empty value would silently flip execution mode.
- Pass the GitHub App token to wait-for-vercel-project in the dispatch
release workflow. The job sets `permissions: contents: read`, which
blocks the default GITHUB_TOKEN from reading the Deployments API.
The App token (already generated for workflow,front) has the
necessary scopes.
@TooTallNate
TooTallNate enabled auto-merge (squash) April 28, 2026 20:10
@TooTallNate
TooTallNate merged commit 3a08eaa into mainApr 28, 2026
154 of 165 checks passed
@TooTallNate
TooTallNate deleted the ci/wait-for-vercel-via-github-api branch April 28, 2026 20:20
ijjk pushed a commit that referenced this pull request Apr 28, 2026
…1861)
* ci: refactor wait-for-vercel-project to use GitHub Deployments API
Replaces the Vercel SDK / Vercel API token-based implementation with one
that resolves the deployment URL via the GitHub Deployments API:
- Find the GitHub Deployment for (target SHA, environment) where
environment matches the Vercel-app-created "Preview \u2013 <slug>" or
"Production \u2013 <slug>" naming pattern.
- Wait for the latest deployment status to be `success` (or `inactive`
when Vercel skips a duplicate build, in which case its environment_url
still points at the live deployment).
- Probe the URL to confirm the edge can route to it (any non-5xx
response counts as live, including 401/403 from Deployment Protection
and 404/405 from the app). Manual redirect handling treats redirects
to vercel.com as "still building".
- Resolve the dpl_xxx deployment ID from the matching commit status
(Vercel posts `Vercel \u2013 <slug>` statuses where target_url's last
path segment is the inspector ID == deployment ID without the prefix).
Inputs change: project-slug + bypass-secret + github-token (with
GITHUB_TOKEN default) replace team-id + project-id + vercel-token.
Removes the @vercel/sdk dependency, shrinking the bundled dist from
5.4MB to 829KB. The VERCEL_DOCS_TOKEN secret is no longer referenced
anywhere in the repo and can be deleted from GH after this lands.
* ci(wait-for-vercel-project): drop URL probe and bypass-secret input
The GitHub Deployment status transitions to `success` only after the
Vercel app finishes building and routing is live, so an extra HTTP
liveness probe of the deployment URL was redundant. Removing it lets
us also drop the bypass-secret input \u2014 protected deployments don't
need a workaround anymore because we never make the request.
Reduces the action surface area and eliminates a runtime fetch.
* ci(wait-for-vercel-project): address PR review
- Fail loudly when the dpl_xxx deployment ID can't be resolved instead
of returning an empty string. Consumers wire this into
VERCEL_DEPLOYMENT_ID, which world-target uses to pick between the
vercel and local worlds (packages/utils/src/world-target.ts), so an
empty value would silently flip execution mode.
- Pass the GitHub App token to wait-for-vercel-project in the dispatch
release workflow. The job sets `permissions: contents: read`, which
blocks the default GITHUB_TOKEN from reading the Deployments API.
The App token (already generated for workflow,front) has the
necessary scopes.
Sign up for freeto 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.

3 participants

@TooTallNate@ijjk
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Remove or un-stick sticky/fixed headers that block content\n(function() {\n function unstick() {\n document.querySelectorAll('header, nav, [role=\"banner\"], .header, .navbar, .sticky, .fixed-top, [style*=\"position: fixed\"], [style*=\"position:sticky\"]').forEach(function(el) {\n if (el.style.position === 'fixed' || el.style.position === 'sticky' || \n getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') {\n el.style.position = 'static';\n el.style.top = 'auto';\n el.style.zIndex = 'auto';\n }\n });\n }\n \n unstick();\n \n var observer = new MutationObserver(unstick);\n observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] });\n})();", "Kill Sticky Headers"); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

ci: refactor wait-for-vercel-project to use GitHub Deployments API - #1861

Merged
TooTallNate merged 4 commits into
mainfrom
ci/wait-for-vercel-via-github-api
Apr 28, 2026
Merged

ci: refactor wait-for-vercel-project to use GitHub Deployments API#1861
TooTallNate merged 4 commits into
mainfrom
ci/wait-for-vercel-via-github-api

Conversation

@TooTallNate

@TooTallNateTooTallNate commented Apr 28, 2026

Copy link
Copy Markdown
Member

Summary

Refactors the wait-for-vercel-project composite action to discover the deployment via the GitHub Deployments API instead of the Vercel REST API. This drops the per-team Vercel API token requirement (VERCEL_DOCS_TOKEN is now unreferenced anywhere in the repo) and shrinks the action's bundled dist/index.js from 5.4MB → 828KB (90K LOC removed) by dropping @vercel/sdk.

How it works

  1. Resolve the target SHA from the GitHub event payload (same as before).
  2. Find the GitHub Deployment for (sha, environment) where environment matches the Vercel-app-created naming pattern: Preview – <project-slug> or Production – <project-slug> (em-dash).
  3. Poll its latest deployment status. success and inactive are both terminal-OK — Vercel emits inactive immediately for skipped duplicate builds, and the environment_url in that case still points at the live previously-deployed URL.
  4. Resolve the dpl_xxx deployment ID from the matching commit status. Vercel posts a Vercel – <project-slug> commit status whose target_url's last path segment is the inspector ID — which equals the deployment ID without the dpl_ prefix. Action throws if the ID can't be resolved (consumers wire it into VERCEL_DEPLOYMENT_ID, which world-target uses to pick between the vercel and local worlds — an empty value would silently flip execution mode).

The action never makes a request to the deployment URL itself. By the time GitHub's deployment status reaches success, the Vercel app has already verified the deployment is live and routing is primed. This means there's no readiness probe and no need for a Deployment Protection bypass token in the action.

Inputs

BeforeAfter
team-id (required)removed
project-id (required, prj_xxx)removed
vercel-token (required)removed
project-slug (required)
github-token (optional, defaults to ${{ github.token }})
timeout, check-interval, environmentunchanged

Outputs (deployment-url, deployment-id) are unchanged.

Testing

Manually verified all three scenarios against real recent commits in this repo:

  • Workbench preview (example-nextjs-workflow-webpack) — resolves URL + dpl_xxx ID
  • Workbench production — resolves URL + dpl_xxx ID
  • Docs preview with inactive (skipped duplicate build) — resolves URL of the still-live previous deployment

Call site changes

All four invocations updated:

  • .github/workflows/tests.yml — workbench e2e jobs
  • .github/workflows/benchmarks.yml — benchmark jobs
  • .github/workflows/docs-checks.yml — docs smoke checks (also dropped the unused VERCEL_DOCS_TOKEN env var that was being forwarded into check-docs-smoke.mjs despite never being read)
  • .github/workflows/dispatch-front-workflow-release-pr.yml — front release PR dispatch. This workflow has a top-level permissions: contents: read block that would prevent the default GITHUB_TOKEN from reading the Deployments / Statuses APIs, so it explicitly passes the GitHub App token (already generated for workflow,front) via the new github-token input.

VERCEL_LABS_TOKEN is still used to set WORKFLOW_VERCEL_AUTH_TOKEN for the e2e test runtime, so it stays. VERCEL_DOCS_TOKEN is now unreferenced anywhere in the repo and can be deleted from GH after this PR merges.

Notes

  • CI-only change; no changeset needed (pnpm changeset status confirms).
  • The action's package.json now depends on @types/node@^22.19.0 directly instead of the workspace catalog: entry — pnpm install against this package uses --ignore-workspace since it's outside the workspace root.

Replaces the Vercel SDK / Vercel API token-based implementation with one
that resolves the deployment URL via the GitHub Deployments API:
- Find the GitHub Deployment for (target SHA, environment) where
environment matches the Vercel-app-created "Preview \u2013 <slug>" or
"Production \u2013 <slug>" naming pattern.
- Wait for the latest deployment status to be `success` (or `inactive`
when Vercel skips a duplicate build, in which case its environment_url
still points at the live deployment).
- Probe the URL to confirm the edge can route to it (any non-5xx
response counts as live, including 401/403 from Deployment Protection
and 404/405 from the app). Manual redirect handling treats redirects
to vercel.com as "still building".
- Resolve the dpl_xxx deployment ID from the matching commit status
(Vercel posts `Vercel \u2013 <slug>` statuses where target_url's last
path segment is the inspector ID == deployment ID without the prefix).
Inputs change: project-slug + bypass-secret + github-token (with
GITHUB_TOKEN default) replace team-id + project-id + vercel-token.
Removes the @vercel/sdk dependency, shrinking the bundled dist from
5.4MB to 829KB. The VERCEL_DOCS_TOKEN secret is no longer referenced
anywhere in the repo and can be deleted from GH after this lands.
CopilotAI review requested due to automatic review settings April 28, 2026 17:27
@vercel

vercelBot commented Apr 28, 2026

Copy link
Copy Markdown
Contributor

@changeset-bot

changeset-botBot commented Apr 28, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 24aa506

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions

github-actionsBot commented Apr 28, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

All tests passed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production9780671045
✅ 💻 Local Development10540861140
✅ 📦 Local Production10540861140
✅ 🐘 Local Postgres10540861140
✅ 🪟 Windows950095
✅ 📋 Other267018285
Total450203434845

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro8807
✅ example8807
✅ express8807
✅ fastify8807
✅ hono8807
✅ nextjs-turbopack9302
✅ nextjs-webpack9302
✅ nitro8807
✅ nuxt8807
✅ sveltekit8807
✅ vite8807
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable8906
✅ express-stable8906
✅ fastify-stable8906
✅ hono-stable8906
✅ nextjs-turbopack-canary76019
✅ nextjs-turbopack-stable9500
✅ nextjs-webpack-canary76019
✅ nextjs-webpack-stable9500
✅ nitro-stable8906
✅ nuxt-stable8906
✅ sveltekit-stable8906
✅ vite-stable8906
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable8906
✅ express-stable8906
✅ fastify-stable8906
✅ hono-stable8906
✅ nextjs-turbopack-canary76019
✅ nextjs-turbopack-stable9500
✅ nextjs-webpack-canary76019
✅ nextjs-webpack-stable9500
✅ nitro-stable8906
✅ nuxt-stable8906
✅ sveltekit-stable8906
✅ vite-stable8906
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable8906
✅ express-stable8906
✅ fastify-stable8906
✅ hono-stable8906
✅ nextjs-turbopack-canary76019
✅ nextjs-turbopack-stable9500
✅ nextjs-webpack-canary76019
✅ nextjs-webpack-stable9500
✅ nitro-stable8906
✅ nuxt-stable8906
✅ sveltekit-stable8906
✅ vite-stable8906
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack9500
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable8906
✅ e2e-local-postgres-nest-stable8906
✅ e2e-local-prod-nest-stable8906

📋 View full workflow run

@github-actions

github-actionsBot commented Apr 28, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro0.042s (-3.0%)1.005s (~)0.964s101.00x
💻 LocalExpress0.044s (-1.4%)1.005s (~)0.961s101.05x
💻 LocalNext.js (Turbopack)0.046s1.005s0.959s101.10x
🐘 PostgresExpress0.060s (+3.8%)1.010s (~)0.950s101.44x
🐘 PostgresNitro0.061s (-36.1% 🟢)1.010s (-3.2%)0.949s101.45x
🐘 PostgresNext.js (Turbopack)0.067s1.013s0.946s101.60x
workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)1.114s2.005s0.892s101.00x
💻 LocalNitro1.126s (~)2.006s (~)0.880s101.01x
💻 LocalExpress1.131s (+0.5%)2.005s (~)0.874s101.02x
🐘 PostgresNitro1.145s (~)2.009s (~)0.864s101.03x
🐘 PostgresNext.js (Turbopack)1.146s2.011s0.866s101.03x
🐘 PostgresExpress1.148s (~)2.011s (~)0.863s101.03x
workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)10.786s11.024s0.238s31.00x
🐘 PostgresNitro10.877s (~)11.021s (~)0.144s31.01x
🐘 PostgresNext.js (Turbopack)10.903s11.024s0.120s31.01x
🐘 PostgresExpress10.911s (~)11.022s (~)0.111s31.01x
💻 LocalNitro10.944s (~)11.022s (~)0.078s31.01x
💻 LocalExpress10.958s (~)11.024s (~)0.066s31.02x
workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro14.537s (~)15.023s (~)0.486s41.00x
🐘 PostgresExpress14.540s (~)15.021s (~)0.481s41.00x
💻 LocalNext.js (Turbopack)14.593s15.028s0.435s41.00x
🐘 PostgresNext.js (Turbopack)14.639s15.026s0.387s41.01x
💻 LocalExpress15.000s (~)15.280s (+1.7%)0.279s41.03x
💻 LocalNitro15.029s (~)15.531s (-3.1%)0.502s41.03x
workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro13.990s (~)14.308s (~)0.318s71.00x
🐘 PostgresExpress14.008s (~)14.445s (-1.0%)0.437s71.00x
🐘 PostgresNext.js (Turbopack)14.181s14.886s0.706s71.01x
💻 LocalNext.js (Turbopack)15.999s16.363s0.364s61.14x
💻 LocalExpress16.472s (-0.8%)17.032s (~)0.560s61.18x
💻 LocalNitro16.820s (~)17.032s (~)0.212s61.20x
Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)1.251s2.010s0.759s151.00x
🐘 PostgresNitro1.272s (~)2.010s (~)0.738s151.02x
🐘 PostgresExpress1.276s (+1.2%)2.009s (~)0.734s151.02x
💻 LocalNitro1.512s (-7.3% 🟢)2.005s (-3.3%)0.493s151.21x
💻 LocalExpress1.523s (+2.3%)2.006s (~)0.483s151.22x
💻 LocalNext.js (Turbopack)1.559s2.073s0.513s151.25x
Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.319s (-1.8%)3.010s (~)0.691s101.00x
🐘 PostgresNitro2.330s (-0.9%)3.009s (~)0.679s101.00x
🐘 PostgresNext.js (Turbopack)2.473s3.010s0.537s101.07x
💻 LocalExpress2.802s (-5.1% 🟢)3.009s (-12.9% 🟢)0.207s101.21x
💻 LocalNext.js (Turbopack)2.910s3.453s0.543s91.26x
💻 LocalNitro3.043s (-3.2%)3.675s (-5.4% 🟢)0.633s91.31x
Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro3.453s (-0.8%)4.011s (~)0.558s81.00x
🐘 PostgresExpress3.474s (~)4.010s (~)0.536s81.01x
🐘 PostgresNext.js (Turbopack)3.742s4.011s0.269s81.08x
💻 LocalExpress7.428s (-10.9% 🟢)8.021s (-11.1% 🟢)0.592s42.15x
💻 LocalNext.js (Turbopack)7.731s8.268s0.537s42.24x
💻 LocalNitro9.085s (+8.8% 🔺)10.024s (+11.1% 🔺)0.939s32.63x
Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)1.245s2.009s0.765s151.00x
🐘 PostgresExpress1.258s (~)2.008s (~)0.750s151.01x
🐘 PostgresNitro1.268s (+0.9%)2.008s (~)0.739s151.02x
💻 LocalNext.js (Turbopack)1.483s2.006s0.523s151.19x
💻 LocalExpress1.559s (-17.7% 🟢)2.072s (-12.3% 🟢)0.513s151.25x
💻 LocalNitro1.896s (+1.6%)2.391s (+2.2%)0.495s131.52x
Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro2.312s (-1.2%)3.009s (~)0.698s101.00x
🐘 PostgresExpress2.366s (+1.1%)3.010s (~)0.643s101.02x
🐘 PostgresNext.js (Turbopack)2.450s3.010s0.560s101.06x
💻 LocalNext.js (Turbopack)2.840s3.564s0.724s91.23x
💻 LocalExpress2.857s (-8.8% 🟢)3.107s (-17.4% 🟢)0.250s101.24x
💻 LocalNitro3.120s (+1.8%)4.012s (+3.2%)0.892s81.35x
Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro3.464s (~)4.010s (~)0.546s81.00x
🐘 PostgresExpress3.545s (+1.3%)4.011s (~)0.467s81.02x
🐘 PostgresNext.js (Turbopack)3.703s4.012s0.309s81.07x
💻 LocalNext.js (Turbopack)8.102s8.769s0.667s42.34x
💻 LocalExpress8.290s (-5.8% 🟢)8.770s (-5.4% 🟢)0.480s42.39x
💻 LocalNitro9.097s (-0.5%)9.773s (-2.5%)0.677s42.63x
workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.815s (-0.7%)1.023s (+1.6%)0.208s591.00x
🐘 PostgresExpress0.819s (-2.4%)1.006s (-1.7%)0.187s601.01x
🐘 PostgresNext.js (Turbopack)0.826s1.007s0.181s601.01x
💻 LocalNext.js (Turbopack)0.838s1.004s0.166s601.03x
💻 LocalNitro1.004s (+2.3%)1.458s (+33.3% 🔺)0.454s421.23x
💻 LocalExpress1.029s (+4.5%)1.770s (+64.5% 🔺)0.742s341.26x
workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.919s (~)2.123s (+1.1%)0.205s431.00x
🐘 PostgresExpress1.940s (-1.8%)2.184s (-3.3%)0.244s421.01x
🐘 PostgresNext.js (Turbopack)2.043s2.767s0.724s331.06x
💻 LocalNext.js (Turbopack)2.674s3.008s0.334s301.39x
💻 LocalNitro3.031s (~)3.801s (+1.1%)0.770s241.58x
💻 LocalExpress3.040s (+0.8%)3.884s (+8.3% 🔺)0.844s241.58x
workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.938s (-1.3%)4.296s (-1.7%)0.357s281.00x
🐘 PostgresNext.js (Turbopack)4.180s5.013s0.833s241.06x
🐘 PostgresNitro4.361s (+6.3% 🔺)4.852s (+5.4% 🔺)0.491s251.11x
💻 LocalNext.js (Turbopack)8.643s9.017s0.375s142.19x
💻 LocalExpress8.923s (-3.1%)9.325s (-6.9% 🟢)0.402s132.27x
💻 LocalNitro9.214s (-0.9%)9.787s (-2.3%)0.573s132.34x
workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)0.262s1.007s0.746s601.00x
🐘 PostgresExpress0.276s (-2.1%)1.007s (~)0.730s601.06x
🐘 PostgresNitro0.316s (+11.6% 🔺)1.009s (~)0.693s601.21x
💻 LocalExpress0.545s (-2.7%)1.004s (~)0.459s602.08x
💻 LocalNext.js (Turbopack)0.590s1.039s0.450s582.25x
💻 LocalNitro0.608s (+0.5%)1.022s (~)0.414s592.32x
workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.495s (-2.9%)1.007s (~)0.512s901.00x
🐘 PostgresNitro0.521s (+4.9%)1.008s (~)0.487s901.05x
🐘 PostgresNext.js (Turbopack)0.521s1.007s0.486s901.05x
💻 LocalExpress2.333s (-7.2% 🟢)3.009s (~)0.676s304.71x
💻 LocalNext.js (Turbopack)2.499s3.009s0.510s305.05x
💻 LocalNitro2.546s (~)3.009s (~)0.462s305.14x
workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.788s (-3.7%)1.008s (-0.9%)0.219s1201.00x
🐘 PostgresNitro0.863s (+9.1% 🔺)1.055s (+4.7%)0.192s1141.09x
🐘 PostgresNext.js (Turbopack)0.912s1.111s0.199s1081.16x
💻 LocalExpress10.240s (-8.5% 🟢)10.936s (-8.4% 🟢)0.696s1112.99x
💻 LocalNext.js (Turbopack)10.374s11.028s0.654s1113.16x
💻 LocalNitro11.279s (+0.8%)12.029s (+3.1%)0.750s1014.30x
Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)0.169s1.003s0.012s1.018s0.849s101.00x
🐘 PostgresNext.js (Turbopack)0.206s1.000s0.002s1.012s0.806s101.22x
💻 LocalNitro0.206s (-3.5%)1.004s (~)0.012s (-1.6%)1.019s (~)0.812s101.22x
🐘 PostgresExpress0.213s (+4.0%)0.999s (~)0.001s (-12.5% 🟢)1.010s (~)0.797s101.26x
💻 LocalExpress0.217s (+9.0% 🔺)1.004s (~)0.010s (-16.5% 🟢)1.016s (~)0.799s101.29x
🐘 PostgresNitro0.225s (+9.6% 🔺)0.995s (~)0.001s (-40.0% 🟢)1.009s (~)0.784s101.33x
stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.611s (-3.0%)1.022s (+1.5%)0.004s (+2.6%)1.039s (+1.6%)0.428s581.00x
💻 LocalNext.js (Turbopack)0.647s1.012s0.010s1.024s0.377s591.06x
🐘 PostgresNitro0.652s (+4.5%)1.004s (~)0.004s (-10.2% 🟢)1.022s (~)0.370s591.07x
🐘 PostgresNext.js (Turbopack)0.671s1.009s0.007s1.029s0.359s591.10x
💻 LocalExpress0.754s (~)1.013s (-1.6%)0.009s (-6.7% 🟢)1.023s (-1.6%)0.269s591.23x
💻 LocalNitro0.756s (-9.9% 🟢)1.012s (~)0.010s (+5.8% 🔺)1.023s (-8.3% 🟢)0.268s591.24x
10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.894s (-7.7% 🟢)1.108s (-11.2% 🟢)0.000s (-100.0% 🟢)1.119s (-11.0% 🟢)0.225s541.00x
🐘 PostgresExpress0.964s (~)1.240s (-3.0%)0.000s (-52.1% 🟢)1.259s (-3.6%)0.296s481.08x
🐘 PostgresNext.js (Turbopack)0.972s1.272s0.000s1.280s0.309s481.09x
💻 LocalExpress1.191s (-2.7%)2.020s (~)0.000s (+20.0% 🔺)2.022s (~)0.831s301.33x
💻 LocalNext.js (Turbopack)1.245s2.020s0.000s2.023s0.779s301.39x
💻 LocalNitro1.427s (+16.7% 🔺)2.022s (~)0.000s (+257.1% 🔺)2.203s (+9.0% 🔺)0.776s281.60x
fan-out fan-in 10 streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.740s (-2.9%)2.175s (+1.6%)0.000s (-100.0% 🟢)2.187s (+0.6%)0.448s281.00x
🐘 PostgresExpress1.811s (+2.2%)2.175s (~)0.000s (+Infinity% 🔺)2.205s (~)0.393s281.04x
🐘 PostgresNext.js (Turbopack)1.973s2.262s0.000s2.270s0.297s271.13x
💻 LocalExpress3.318s (-4.3%)4.034s (~)0.000s (-58.3% 🟢)4.038s (~)0.720s151.91x
💻 LocalNext.js (Turbopack)3.441s4.035s0.000s4.039s0.597s151.98x
💻 LocalNitro3.531s (+4.2%)4.100s (+1.7%)0.000s (-12.5% 🟢)4.102s (+1.6%)0.572s152.03x

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)12/21
🐘 PostgresNitro11/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express🐘 Postgres19/21
Next.js (Turbopack)🐘 Postgres15/21
Nitro🐘 Postgres18/21
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)

📋 View full workflow run


⚠️Community world benchmarks failed (non-blocking):

  • Community Worlds: failure

Check the workflow run for details.

@socket-security

socket-securityBot commented Apr 28, 2026

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

DiffPackageSupply Chain
Security
VulnerabilityQualityMaintenanceLicense
Addednpm/​@​types/​node@​22.19.171001008195100

View full report

CopilotAI left a comment

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.

Pull request overview

Refactors the internal wait-for-vercel-project GitHub Action to discover and poll Vercel deployments via the GitHub Deployments API (rather than Vercel’s API), simplifying secrets management and reducing the action bundle/deps.

Changes:

  • Reworked the action implementation to list GitHub Deployments by (sha, environment) and poll deployment statuses + probe the environment URL.
  • Updated CI workflows to pass project-slug / bypass-secret instead of Vercel team/project IDs and Vercel API tokens.
  • Removed @vercel/sdk from the action package dependencies and updated the lockfile accordingly.

Reviewed changes

Copilot reviewed 7 out of 9 changed files in this pull request and generated 4 comments.

Show a summary per file
FileDescription
.github/workflows/tests.ymlUpdates action invocation to use project-slug and bypass secret.
.github/workflows/benchmarks.ymlUpdates action invocation to use project-slug and bypass secret.
.github/workflows/docs-checks.ymlUpdates action invocation and removes forwarding of the unused docs Vercel token env var.
.github/workflows/dispatch-front-workflow-release-pr.ymlUpdates docs deployment wait step to use the new action inputs.
.github/actions/wait-for-vercel-project/src/wait-for-deployment.tsImplements GitHub Deployments API polling, readiness probing, and deployment-id resolution from commit statuses.
.github/actions/wait-for-vercel-project/action.ymlUpdates inputs/outputs documentation for the new mechanism and parameters.
.github/actions/wait-for-vercel-project/package.jsonDrops @vercel/sdk, updates description, adds @types/node.
.github/actions/wait-for-vercel-project/pnpm-lock.yamlReflects dependency removals/additions for the action package.
Files not reviewed (1)
  • .github/actions/wait-for-vercel-project/pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread.github/actions/wait-for-vercel-project/action.yml
Comment thread.github/actions/wait-for-vercel-project/src/wait-for-deployment.ts Outdated
Comment thread.github/workflows/dispatch-front-workflow-release-pr.yml
Comment thread.github/actions/wait-for-vercel-project/action.yml Outdated
The GitHub Deployment status transitions to `success` only after the
Vercel app finishes building and routing is live, so an extra HTTP
liveness probe of the deployment URL was redundant. Removing it lets
us also drop the bypass-secret input \u2014 protected deployments don't
need a workaround anymore because we never make the request.
Reduces the action surface area and eliminates a runtime fetch.
- Fail loudly when the dpl_xxx deployment ID can't be resolved instead
of returning an empty string. Consumers wire this into
VERCEL_DEPLOYMENT_ID, which world-target uses to pick between the
vercel and local worlds (packages/utils/src/world-target.ts), so an
empty value would silently flip execution mode.
- Pass the GitHub App token to wait-for-vercel-project in the dispatch
release workflow. The job sets `permissions: contents: read`, which
blocks the default GITHUB_TOKEN from reading the Deployments API.
The App token (already generated for workflow,front) has the
necessary scopes.
@TooTallNate
TooTallNate enabled auto-merge (squash) April 28, 2026 20:10
@TooTallNate
TooTallNate merged commit 3a08eaa into mainApr 28, 2026
154 of 165 checks passed
@TooTallNate
TooTallNate deleted the ci/wait-for-vercel-via-github-api branch April 28, 2026 20:20
ijjk pushed a commit that referenced this pull request Apr 28, 2026
…1861)
* ci: refactor wait-for-vercel-project to use GitHub Deployments API
Replaces the Vercel SDK / Vercel API token-based implementation with one
that resolves the deployment URL via the GitHub Deployments API:
- Find the GitHub Deployment for (target SHA, environment) where
environment matches the Vercel-app-created "Preview \u2013 <slug>" or
"Production \u2013 <slug>" naming pattern.
- Wait for the latest deployment status to be `success` (or `inactive`
when Vercel skips a duplicate build, in which case its environment_url
still points at the live deployment).
- Probe the URL to confirm the edge can route to it (any non-5xx
response counts as live, including 401/403 from Deployment Protection
and 404/405 from the app). Manual redirect handling treats redirects
to vercel.com as "still building".
- Resolve the dpl_xxx deployment ID from the matching commit status
(Vercel posts `Vercel \u2013 <slug>` statuses where target_url's last
path segment is the inspector ID == deployment ID without the prefix).
Inputs change: project-slug + bypass-secret + github-token (with
GITHUB_TOKEN default) replace team-id + project-id + vercel-token.
Removes the @vercel/sdk dependency, shrinking the bundled dist from
5.4MB to 829KB. The VERCEL_DOCS_TOKEN secret is no longer referenced
anywhere in the repo and can be deleted from GH after this lands.
* ci(wait-for-vercel-project): drop URL probe and bypass-secret input
The GitHub Deployment status transitions to `success` only after the
Vercel app finishes building and routing is live, so an extra HTTP
liveness probe of the deployment URL was redundant. Removing it lets
us also drop the bypass-secret input \u2014 protected deployments don't
need a workaround anymore because we never make the request.
Reduces the action surface area and eliminates a runtime fetch.
* ci(wait-for-vercel-project): address PR review
- Fail loudly when the dpl_xxx deployment ID can't be resolved instead
of returning an empty string. Consumers wire this into
VERCEL_DEPLOYMENT_ID, which world-target uses to pick between the
vercel and local worlds (packages/utils/src/world-target.ts), so an
empty value would silently flip execution mode.
- Pass the GitHub App token to wait-for-vercel-project in the dispatch
release workflow. The job sets `permissions: contents: read`, which
blocks the default GITHUB_TOKEN from reading the Deployments API.
The App token (already generated for workflow,front) has the
necessary scopes.
Sign up for freeto 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.

3 participants

@TooTallNate@ijjk
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Universal Dark Mode - works on any site\n(function() {\n var enabled = true;\n \n function applyDarkMode() {\n if (!enabled) return;\n \n // Create style element if it doesn't exist\n var style = document.getElementById('universal-dark-mode-style');\n if (!style) {\n style = document.createElement('style');\n style.id = 'universal-dark-mode-style';\n document.head.appendChild(style);\n }\n \n // Dark mode CSS - inverts colors but preserves images/video\n style.textContent = '\n /* Invert everything except media */\n html {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #1a1a2e !important;\n }\n \n /* Restore images, videos, iframes, canvas */\n img, video, iframe, canvas, svg, picture, [style*=\"background-image\"] {\n filter: invert(1) hue-rotate(180deg) !important;\n }\n \n /* Preserve specific elements that should not be inverted */\n .no-dark-mode, .no-dark-mode *,\n [data-theme=\"light\"], [data-theme=\"light\"],\n .ace_editor, .ace_editor *,\n .CodeMirror, .CodeMirror *,\n .monaco-editor, .monaco-editor *,\n .markdown-body pre, .markdown-body pre *,\n .highlight, .highlight *,\n pre code, pre code * {\n filter: none !important;\n }\n \n /* Fix common UI elements */\n .modal, .popup, .dropdown-menu, .tooltip, .popover {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #2d2d44 !important;\n border-color: #444 !important;\n }\n \n /* Scrollbars */\n ::-webkit-scrollbar { background: #1a1a2e !important; }\n ::-webkit-scrollbar-thumb { background: #444 !important; }\n ::-webkit-scrollbar-thumb:hover { background: #555 !important; }\n \n /* Selection */\n ::selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ::-moz-selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ';\n }\n \n function removeDarkMode() {\n var style = document.getElementById('universal-dark-mode-style');\n if (style) style.remove();\n }\n \n // Toggle with Alt+Shift+D\n document.addEventListener('keydown', function(e) {\n if (e.altKey && e.shiftKey && e.key === 'D') {\n e.preventDefault();\n enabled = !enabled;\n if (enabled) {\n applyDarkMode();\n console.log('[Universal Dark Mode] Enabled');\n } else {\n removeDarkMode();\n console.log('[Universal Dark Mode] Disabled');\n }\n }\n });\n \n // Apply on load\n applyDarkMode();\n \n // Re-apply on dynamic content\n var observer = new MutationObserver(function(mutations) {\n if (enabled && !document.getElementById('universal-dark-mode-style')) {\n applyDarkMode();\n }\n });\n observer.observe(document.head, { childList: true });\n \n console.log('[Universal Dark Mode] Loaded - Press Alt+Shift+D to toggle');\n})();", "Universal Dark Mode"); } } catch(__e) { console.warn('[Userscript:Universal Dark Mode]', __e); } })(); })();
Skip to content

ci: refactor wait-for-vercel-project to use GitHub Deployments API - #1861

Merged
TooTallNate merged 4 commits into
mainfrom
ci/wait-for-vercel-via-github-api
Apr 28, 2026
Merged

ci: refactor wait-for-vercel-project to use GitHub Deployments API#1861
TooTallNate merged 4 commits into
mainfrom
ci/wait-for-vercel-via-github-api

Conversation

@TooTallNate

@TooTallNateTooTallNate commented Apr 28, 2026

Copy link
Copy Markdown
Member

Summary

Refactors the wait-for-vercel-project composite action to discover the deployment via the GitHub Deployments API instead of the Vercel REST API. This drops the per-team Vercel API token requirement (VERCEL_DOCS_TOKEN is now unreferenced anywhere in the repo) and shrinks the action's bundled dist/index.js from 5.4MB → 828KB (90K LOC removed) by dropping @vercel/sdk.

How it works

  1. Resolve the target SHA from the GitHub event payload (same as before).
  2. Find the GitHub Deployment for (sha, environment) where environment matches the Vercel-app-created naming pattern: Preview – <project-slug> or Production – <project-slug> (em-dash).
  3. Poll its latest deployment status. success and inactive are both terminal-OK — Vercel emits inactive immediately for skipped duplicate builds, and the environment_url in that case still points at the live previously-deployed URL.
  4. Resolve the dpl_xxx deployment ID from the matching commit status. Vercel posts a Vercel – <project-slug> commit status whose target_url's last path segment is the inspector ID — which equals the deployment ID without the dpl_ prefix. Action throws if the ID can't be resolved (consumers wire it into VERCEL_DEPLOYMENT_ID, which world-target uses to pick between the vercel and local worlds — an empty value would silently flip execution mode).

The action never makes a request to the deployment URL itself. By the time GitHub's deployment status reaches success, the Vercel app has already verified the deployment is live and routing is primed. This means there's no readiness probe and no need for a Deployment Protection bypass token in the action.

Inputs

BeforeAfter
team-id (required)removed
project-id (required, prj_xxx)removed
vercel-token (required)removed
project-slug (required)
github-token (optional, defaults to ${{ github.token }})
timeout, check-interval, environmentunchanged

Outputs (deployment-url, deployment-id) are unchanged.

Testing

Manually verified all three scenarios against real recent commits in this repo:

  • Workbench preview (example-nextjs-workflow-webpack) — resolves URL + dpl_xxx ID
  • Workbench production — resolves URL + dpl_xxx ID
  • Docs preview with inactive (skipped duplicate build) — resolves URL of the still-live previous deployment

Call site changes

All four invocations updated:

  • .github/workflows/tests.yml — workbench e2e jobs
  • .github/workflows/benchmarks.yml — benchmark jobs
  • .github/workflows/docs-checks.yml — docs smoke checks (also dropped the unused VERCEL_DOCS_TOKEN env var that was being forwarded into check-docs-smoke.mjs despite never being read)
  • .github/workflows/dispatch-front-workflow-release-pr.yml — front release PR dispatch. This workflow has a top-level permissions: contents: read block that would prevent the default GITHUB_TOKEN from reading the Deployments / Statuses APIs, so it explicitly passes the GitHub App token (already generated for workflow,front) via the new github-token input.

VERCEL_LABS_TOKEN is still used to set WORKFLOW_VERCEL_AUTH_TOKEN for the e2e test runtime, so it stays. VERCEL_DOCS_TOKEN is now unreferenced anywhere in the repo and can be deleted from GH after this PR merges.

Notes

  • CI-only change; no changeset needed (pnpm changeset status confirms).
  • The action's package.json now depends on @types/node@^22.19.0 directly instead of the workspace catalog: entry — pnpm install against this package uses --ignore-workspace since it's outside the workspace root.

Replaces the Vercel SDK / Vercel API token-based implementation with one
that resolves the deployment URL via the GitHub Deployments API:
- Find the GitHub Deployment for (target SHA, environment) where
environment matches the Vercel-app-created "Preview \u2013 <slug>" or
"Production \u2013 <slug>" naming pattern.
- Wait for the latest deployment status to be `success` (or `inactive`
when Vercel skips a duplicate build, in which case its environment_url
still points at the live deployment).
- Probe the URL to confirm the edge can route to it (any non-5xx
response counts as live, including 401/403 from Deployment Protection
and 404/405 from the app). Manual redirect handling treats redirects
to vercel.com as "still building".
- Resolve the dpl_xxx deployment ID from the matching commit status
(Vercel posts `Vercel \u2013 <slug>` statuses where target_url's last
path segment is the inspector ID == deployment ID without the prefix).
Inputs change: project-slug + bypass-secret + github-token (with
GITHUB_TOKEN default) replace team-id + project-id + vercel-token.
Removes the @vercel/sdk dependency, shrinking the bundled dist from
5.4MB to 829KB. The VERCEL_DOCS_TOKEN secret is no longer referenced
anywhere in the repo and can be deleted from GH after this lands.
CopilotAI review requested due to automatic review settings April 28, 2026 17:27
@vercel

vercelBot commented Apr 28, 2026

Copy link
Copy Markdown
Contributor

@changeset-bot

changeset-botBot commented Apr 28, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 24aa506

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions

github-actionsBot commented Apr 28, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

All tests passed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production9780671045
✅ 💻 Local Development10540861140
✅ 📦 Local Production10540861140
✅ 🐘 Local Postgres10540861140
✅ 🪟 Windows950095
✅ 📋 Other267018285
Total450203434845

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro8807
✅ example8807
✅ express8807
✅ fastify8807
✅ hono8807
✅ nextjs-turbopack9302
✅ nextjs-webpack9302
✅ nitro8807
✅ nuxt8807
✅ sveltekit8807
✅ vite8807
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable8906
✅ express-stable8906
✅ fastify-stable8906
✅ hono-stable8906
✅ nextjs-turbopack-canary76019
✅ nextjs-turbopack-stable9500
✅ nextjs-webpack-canary76019
✅ nextjs-webpack-stable9500
✅ nitro-stable8906
✅ nuxt-stable8906
✅ sveltekit-stable8906
✅ vite-stable8906
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable8906
✅ express-stable8906
✅ fastify-stable8906
✅ hono-stable8906
✅ nextjs-turbopack-canary76019
✅ nextjs-turbopack-stable9500
✅ nextjs-webpack-canary76019
✅ nextjs-webpack-stable9500
✅ nitro-stable8906
✅ nuxt-stable8906
✅ sveltekit-stable8906
✅ vite-stable8906
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable8906
✅ express-stable8906
✅ fastify-stable8906
✅ hono-stable8906
✅ nextjs-turbopack-canary76019
✅ nextjs-turbopack-stable9500
✅ nextjs-webpack-canary76019
✅ nextjs-webpack-stable9500
✅ nitro-stable8906
✅ nuxt-stable8906
✅ sveltekit-stable8906
✅ vite-stable8906
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack9500
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable8906
✅ e2e-local-postgres-nest-stable8906
✅ e2e-local-prod-nest-stable8906

📋 View full workflow run

@github-actions

github-actionsBot commented Apr 28, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro0.042s (-3.0%)1.005s (~)0.964s101.00x
💻 LocalExpress0.044s (-1.4%)1.005s (~)0.961s101.05x
💻 LocalNext.js (Turbopack)0.046s1.005s0.959s101.10x
🐘 PostgresExpress0.060s (+3.8%)1.010s (~)0.950s101.44x
🐘 PostgresNitro0.061s (-36.1% 🟢)1.010s (-3.2%)0.949s101.45x
🐘 PostgresNext.js (Turbopack)0.067s1.013s0.946s101.60x
workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)1.114s2.005s0.892s101.00x
💻 LocalNitro1.126s (~)2.006s (~)0.880s101.01x
💻 LocalExpress1.131s (+0.5%)2.005s (~)0.874s101.02x
🐘 PostgresNitro1.145s (~)2.009s (~)0.864s101.03x
🐘 PostgresNext.js (Turbopack)1.146s2.011s0.866s101.03x
🐘 PostgresExpress1.148s (~)2.011s (~)0.863s101.03x
workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)10.786s11.024s0.238s31.00x
🐘 PostgresNitro10.877s (~)11.021s (~)0.144s31.01x
🐘 PostgresNext.js (Turbopack)10.903s11.024s0.120s31.01x
🐘 PostgresExpress10.911s (~)11.022s (~)0.111s31.01x
💻 LocalNitro10.944s (~)11.022s (~)0.078s31.01x
💻 LocalExpress10.958s (~)11.024s (~)0.066s31.02x
workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro14.537s (~)15.023s (~)0.486s41.00x
🐘 PostgresExpress14.540s (~)15.021s (~)0.481s41.00x
💻 LocalNext.js (Turbopack)14.593s15.028s0.435s41.00x
🐘 PostgresNext.js (Turbopack)14.639s15.026s0.387s41.01x
💻 LocalExpress15.000s (~)15.280s (+1.7%)0.279s41.03x
💻 LocalNitro15.029s (~)15.531s (-3.1%)0.502s41.03x
workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro13.990s (~)14.308s (~)0.318s71.00x
🐘 PostgresExpress14.008s (~)14.445s (-1.0%)0.437s71.00x
🐘 PostgresNext.js (Turbopack)14.181s14.886s0.706s71.01x
💻 LocalNext.js (Turbopack)15.999s16.363s0.364s61.14x
💻 LocalExpress16.472s (-0.8%)17.032s (~)0.560s61.18x
💻 LocalNitro16.820s (~)17.032s (~)0.212s61.20x
Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)1.251s2.010s0.759s151.00x
🐘 PostgresNitro1.272s (~)2.010s (~)0.738s151.02x
🐘 PostgresExpress1.276s (+1.2%)2.009s (~)0.734s151.02x
💻 LocalNitro1.512s (-7.3% 🟢)2.005s (-3.3%)0.493s151.21x
💻 LocalExpress1.523s (+2.3%)2.006s (~)0.483s151.22x
💻 LocalNext.js (Turbopack)1.559s2.073s0.513s151.25x
Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.319s (-1.8%)3.010s (~)0.691s101.00x
🐘 PostgresNitro2.330s (-0.9%)3.009s (~)0.679s101.00x
🐘 PostgresNext.js (Turbopack)2.473s3.010s0.537s101.07x
💻 LocalExpress2.802s (-5.1% 🟢)3.009s (-12.9% 🟢)0.207s101.21x
💻 LocalNext.js (Turbopack)2.910s3.453s0.543s91.26x
💻 LocalNitro3.043s (-3.2%)3.675s (-5.4% 🟢)0.633s91.31x
Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro3.453s (-0.8%)4.011s (~)0.558s81.00x
🐘 PostgresExpress3.474s (~)4.010s (~)0.536s81.01x
🐘 PostgresNext.js (Turbopack)3.742s4.011s0.269s81.08x
💻 LocalExpress7.428s (-10.9% 🟢)8.021s (-11.1% 🟢)0.592s42.15x
💻 LocalNext.js (Turbopack)7.731s8.268s0.537s42.24x
💻 LocalNitro9.085s (+8.8% 🔺)10.024s (+11.1% 🔺)0.939s32.63x
Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)1.245s2.009s0.765s151.00x
🐘 PostgresExpress1.258s (~)2.008s (~)0.750s151.01x
🐘 PostgresNitro1.268s (+0.9%)2.008s (~)0.739s151.02x
💻 LocalNext.js (Turbopack)1.483s2.006s0.523s151.19x
💻 LocalExpress1.559s (-17.7% 🟢)2.072s (-12.3% 🟢)0.513s151.25x
💻 LocalNitro1.896s (+1.6%)2.391s (+2.2%)0.495s131.52x
Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro2.312s (-1.2%)3.009s (~)0.698s101.00x
🐘 PostgresExpress2.366s (+1.1%)3.010s (~)0.643s101.02x
🐘 PostgresNext.js (Turbopack)2.450s3.010s0.560s101.06x
💻 LocalNext.js (Turbopack)2.840s3.564s0.724s91.23x
💻 LocalExpress2.857s (-8.8% 🟢)3.107s (-17.4% 🟢)0.250s101.24x
💻 LocalNitro3.120s (+1.8%)4.012s (+3.2%)0.892s81.35x
Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro3.464s (~)4.010s (~)0.546s81.00x
🐘 PostgresExpress3.545s (+1.3%)4.011s (~)0.467s81.02x
🐘 PostgresNext.js (Turbopack)3.703s4.012s0.309s81.07x
💻 LocalNext.js (Turbopack)8.102s8.769s0.667s42.34x
💻 LocalExpress8.290s (-5.8% 🟢)8.770s (-5.4% 🟢)0.480s42.39x
💻 LocalNitro9.097s (-0.5%)9.773s (-2.5%)0.677s42.63x
workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.815s (-0.7%)1.023s (+1.6%)0.208s591.00x
🐘 PostgresExpress0.819s (-2.4%)1.006s (-1.7%)0.187s601.01x
🐘 PostgresNext.js (Turbopack)0.826s1.007s0.181s601.01x
💻 LocalNext.js (Turbopack)0.838s1.004s0.166s601.03x
💻 LocalNitro1.004s (+2.3%)1.458s (+33.3% 🔺)0.454s421.23x
💻 LocalExpress1.029s (+4.5%)1.770s (+64.5% 🔺)0.742s341.26x
workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.919s (~)2.123s (+1.1%)0.205s431.00x
🐘 PostgresExpress1.940s (-1.8%)2.184s (-3.3%)0.244s421.01x
🐘 PostgresNext.js (Turbopack)2.043s2.767s0.724s331.06x
💻 LocalNext.js (Turbopack)2.674s3.008s0.334s301.39x
💻 LocalNitro3.031s (~)3.801s (+1.1%)0.770s241.58x
💻 LocalExpress3.040s (+0.8%)3.884s (+8.3% 🔺)0.844s241.58x
workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.938s (-1.3%)4.296s (-1.7%)0.357s281.00x
🐘 PostgresNext.js (Turbopack)4.180s5.013s0.833s241.06x
🐘 PostgresNitro4.361s (+6.3% 🔺)4.852s (+5.4% 🔺)0.491s251.11x
💻 LocalNext.js (Turbopack)8.643s9.017s0.375s142.19x
💻 LocalExpress8.923s (-3.1%)9.325s (-6.9% 🟢)0.402s132.27x
💻 LocalNitro9.214s (-0.9%)9.787s (-2.3%)0.573s132.34x
workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)0.262s1.007s0.746s601.00x
🐘 PostgresExpress0.276s (-2.1%)1.007s (~)0.730s601.06x
🐘 PostgresNitro0.316s (+11.6% 🔺)1.009s (~)0.693s601.21x
💻 LocalExpress0.545s (-2.7%)1.004s (~)0.459s602.08x
💻 LocalNext.js (Turbopack)0.590s1.039s0.450s582.25x
💻 LocalNitro0.608s (+0.5%)1.022s (~)0.414s592.32x
workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.495s (-2.9%)1.007s (~)0.512s901.00x
🐘 PostgresNitro0.521s (+4.9%)1.008s (~)0.487s901.05x
🐘 PostgresNext.js (Turbopack)0.521s1.007s0.486s901.05x
💻 LocalExpress2.333s (-7.2% 🟢)3.009s (~)0.676s304.71x
💻 LocalNext.js (Turbopack)2.499s3.009s0.510s305.05x
💻 LocalNitro2.546s (~)3.009s (~)0.462s305.14x
workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.788s (-3.7%)1.008s (-0.9%)0.219s1201.00x
🐘 PostgresNitro0.863s (+9.1% 🔺)1.055s (+4.7%)0.192s1141.09x
🐘 PostgresNext.js (Turbopack)0.912s1.111s0.199s1081.16x
💻 LocalExpress10.240s (-8.5% 🟢)10.936s (-8.4% 🟢)0.696s1112.99x
💻 LocalNext.js (Turbopack)10.374s11.028s0.654s1113.16x
💻 LocalNitro11.279s (+0.8%)12.029s (+3.1%)0.750s1014.30x
Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)0.169s1.003s0.012s1.018s0.849s101.00x
🐘 PostgresNext.js (Turbopack)0.206s1.000s0.002s1.012s0.806s101.22x
💻 LocalNitro0.206s (-3.5%)1.004s (~)0.012s (-1.6%)1.019s (~)0.812s101.22x
🐘 PostgresExpress0.213s (+4.0%)0.999s (~)0.001s (-12.5% 🟢)1.010s (~)0.797s101.26x
💻 LocalExpress0.217s (+9.0% 🔺)1.004s (~)0.010s (-16.5% 🟢)1.016s (~)0.799s101.29x
🐘 PostgresNitro0.225s (+9.6% 🔺)0.995s (~)0.001s (-40.0% 🟢)1.009s (~)0.784s101.33x
stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.611s (-3.0%)1.022s (+1.5%)0.004s (+2.6%)1.039s (+1.6%)0.428s581.00x
💻 LocalNext.js (Turbopack)0.647s1.012s0.010s1.024s0.377s591.06x
🐘 PostgresNitro0.652s (+4.5%)1.004s (~)0.004s (-10.2% 🟢)1.022s (~)0.370s591.07x
🐘 PostgresNext.js (Turbopack)0.671s1.009s0.007s1.029s0.359s591.10x
💻 LocalExpress0.754s (~)1.013s (-1.6%)0.009s (-6.7% 🟢)1.023s (-1.6%)0.269s591.23x
💻 LocalNitro0.756s (-9.9% 🟢)1.012s (~)0.010s (+5.8% 🔺)1.023s (-8.3% 🟢)0.268s591.24x
10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.894s (-7.7% 🟢)1.108s (-11.2% 🟢)0.000s (-100.0% 🟢)1.119s (-11.0% 🟢)0.225s541.00x
🐘 PostgresExpress0.964s (~)1.240s (-3.0%)0.000s (-52.1% 🟢)1.259s (-3.6%)0.296s481.08x
🐘 PostgresNext.js (Turbopack)0.972s1.272s0.000s1.280s0.309s481.09x
💻 LocalExpress1.191s (-2.7%)2.020s (~)0.000s (+20.0% 🔺)2.022s (~)0.831s301.33x
💻 LocalNext.js (Turbopack)1.245s2.020s0.000s2.023s0.779s301.39x
💻 LocalNitro1.427s (+16.7% 🔺)2.022s (~)0.000s (+257.1% 🔺)2.203s (+9.0% 🔺)0.776s281.60x
fan-out fan-in 10 streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.740s (-2.9%)2.175s (+1.6%)0.000s (-100.0% 🟢)2.187s (+0.6%)0.448s281.00x
🐘 PostgresExpress1.811s (+2.2%)2.175s (~)0.000s (+Infinity% 🔺)2.205s (~)0.393s281.04x
🐘 PostgresNext.js (Turbopack)1.973s2.262s0.000s2.270s0.297s271.13x
💻 LocalExpress3.318s (-4.3%)4.034s (~)0.000s (-58.3% 🟢)4.038s (~)0.720s151.91x
💻 LocalNext.js (Turbopack)3.441s4.035s0.000s4.039s0.597s151.98x
💻 LocalNitro3.531s (+4.2%)4.100s (+1.7%)0.000s (-12.5% 🟢)4.102s (+1.6%)0.572s152.03x

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)12/21
🐘 PostgresNitro11/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express🐘 Postgres19/21
Next.js (Turbopack)🐘 Postgres15/21
Nitro🐘 Postgres18/21
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)

📋 View full workflow run


⚠️Community world benchmarks failed (non-blocking):

  • Community Worlds: failure

Check the workflow run for details.

@socket-security

socket-securityBot commented Apr 28, 2026

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

DiffPackageSupply Chain
Security
VulnerabilityQualityMaintenanceLicense
Addednpm/​@​types/​node@​22.19.171001008195100

View full report

CopilotAI left a comment

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.

Pull request overview

Refactors the internal wait-for-vercel-project GitHub Action to discover and poll Vercel deployments via the GitHub Deployments API (rather than Vercel’s API), simplifying secrets management and reducing the action bundle/deps.

Changes:

  • Reworked the action implementation to list GitHub Deployments by (sha, environment) and poll deployment statuses + probe the environment URL.
  • Updated CI workflows to pass project-slug / bypass-secret instead of Vercel team/project IDs and Vercel API tokens.
  • Removed @vercel/sdk from the action package dependencies and updated the lockfile accordingly.

Reviewed changes

Copilot reviewed 7 out of 9 changed files in this pull request and generated 4 comments.

Show a summary per file
FileDescription
.github/workflows/tests.ymlUpdates action invocation to use project-slug and bypass secret.
.github/workflows/benchmarks.ymlUpdates action invocation to use project-slug and bypass secret.
.github/workflows/docs-checks.ymlUpdates action invocation and removes forwarding of the unused docs Vercel token env var.
.github/workflows/dispatch-front-workflow-release-pr.ymlUpdates docs deployment wait step to use the new action inputs.
.github/actions/wait-for-vercel-project/src/wait-for-deployment.tsImplements GitHub Deployments API polling, readiness probing, and deployment-id resolution from commit statuses.
.github/actions/wait-for-vercel-project/action.ymlUpdates inputs/outputs documentation for the new mechanism and parameters.
.github/actions/wait-for-vercel-project/package.jsonDrops @vercel/sdk, updates description, adds @types/node.
.github/actions/wait-for-vercel-project/pnpm-lock.yamlReflects dependency removals/additions for the action package.
Files not reviewed (1)
  • .github/actions/wait-for-vercel-project/pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread.github/actions/wait-for-vercel-project/action.yml
Comment thread.github/actions/wait-for-vercel-project/src/wait-for-deployment.ts Outdated
Comment thread.github/workflows/dispatch-front-workflow-release-pr.yml
Comment thread.github/actions/wait-for-vercel-project/action.yml Outdated
The GitHub Deployment status transitions to `success` only after the
Vercel app finishes building and routing is live, so an extra HTTP
liveness probe of the deployment URL was redundant. Removing it lets
us also drop the bypass-secret input \u2014 protected deployments don't
need a workaround anymore because we never make the request.
Reduces the action surface area and eliminates a runtime fetch.
- Fail loudly when the dpl_xxx deployment ID can't be resolved instead
of returning an empty string. Consumers wire this into
VERCEL_DEPLOYMENT_ID, which world-target uses to pick between the
vercel and local worlds (packages/utils/src/world-target.ts), so an
empty value would silently flip execution mode.
- Pass the GitHub App token to wait-for-vercel-project in the dispatch
release workflow. The job sets `permissions: contents: read`, which
blocks the default GITHUB_TOKEN from reading the Deployments API.
The App token (already generated for workflow,front) has the
necessary scopes.
@TooTallNate
TooTallNate enabled auto-merge (squash) April 28, 2026 20:10
@TooTallNate
TooTallNate merged commit 3a08eaa into mainApr 28, 2026
154 of 165 checks passed
@TooTallNate
TooTallNate deleted the ci/wait-for-vercel-via-github-api branch April 28, 2026 20:20
ijjk pushed a commit that referenced this pull request Apr 28, 2026
…1861)
* ci: refactor wait-for-vercel-project to use GitHub Deployments API
Replaces the Vercel SDK / Vercel API token-based implementation with one
that resolves the deployment URL via the GitHub Deployments API:
- Find the GitHub Deployment for (target SHA, environment) where
environment matches the Vercel-app-created "Preview \u2013 <slug>" or
"Production \u2013 <slug>" naming pattern.
- Wait for the latest deployment status to be `success` (or `inactive`
when Vercel skips a duplicate build, in which case its environment_url
still points at the live deployment).
- Probe the URL to confirm the edge can route to it (any non-5xx
response counts as live, including 401/403 from Deployment Protection
and 404/405 from the app). Manual redirect handling treats redirects
to vercel.com as "still building".
- Resolve the dpl_xxx deployment ID from the matching commit status
(Vercel posts `Vercel \u2013 <slug>` statuses where target_url's last
path segment is the inspector ID == deployment ID without the prefix).
Inputs change: project-slug + bypass-secret + github-token (with
GITHUB_TOKEN default) replace team-id + project-id + vercel-token.
Removes the @vercel/sdk dependency, shrinking the bundled dist from
5.4MB to 829KB. The VERCEL_DOCS_TOKEN secret is no longer referenced
anywhere in the repo and can be deleted from GH after this lands.
* ci(wait-for-vercel-project): drop URL probe and bypass-secret input
The GitHub Deployment status transitions to `success` only after the
Vercel app finishes building and routing is live, so an extra HTTP
liveness probe of the deployment URL was redundant. Removing it lets
us also drop the bypass-secret input \u2014 protected deployments don't
need a workaround anymore because we never make the request.
Reduces the action surface area and eliminates a runtime fetch.
* ci(wait-for-vercel-project): address PR review
- Fail loudly when the dpl_xxx deployment ID can't be resolved instead
of returning an empty string. Consumers wire this into
VERCEL_DEPLOYMENT_ID, which world-target uses to pick between the
vercel and local worlds (packages/utils/src/world-target.ts), so an
empty value would silently flip execution mode.
- Pass the GitHub App token to wait-for-vercel-project in the dispatch
release workflow. The job sets `permissions: contents: read`, which
blocks the default GITHUB_TOKEN from reading the Deployments API.
The App token (already generated for workflow,front) has the
necessary scopes.
Sign up for freeto 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.

3 participants

@TooTallNate@ijjk