Skip to content

[build-utils] Extract main deserialize-build-output file#16048

Merged
healeycodes merged 3 commits into
mainfrom
break-up-deserialize-2
Apr 20, 2026
Merged

[build-utils] Extract main deserialize-build-output file#16048
healeycodes merged 3 commits into
mainfrom
break-up-deserialize-2

Conversation

@healeycodes

Copy link
Copy Markdown
Member

Building on previous PRs:

We are extracting the core deserialize-build-output.ts file here. This is following refactor efforts in the existing caller codebases to make this extraction simpler.

After shipping this extraction, we'll delete the duplicated code and import deserializeBuildOutput from this PR. Doing this should introduce zero semantic changes for those callers.

Note: callers must inject their own groupLambdas strategy.

Note2: some existing TODO comments have been left in-place as code documentation.

@healeycodes healeycodes requested a review from ofhouse April 20, 2026 10:45
@healeycodes healeycodes requested a review from a team as a code owner April 20, 2026 10:45
@changeset-bot

changeset-bot Bot commented Apr 20, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: d8913d4

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 16 packages
Name Type
@vercel/build-utils Patch
@vercel/backends Patch
vercel Patch
@vercel/client Patch
@vercel/elysia Patch
@vercel/express Patch
@vercel/fastify Patch
@vercel/fs-detectors Patch
@vercel/gatsby-plugin-vercel-builder Patch
@vercel/h3 Patch
@vercel/hono Patch
@vercel/koa Patch
@vercel/nestjs Patch
@vercel/node Patch
@vercel/static-build Patch
@vercel/cervel Patch

Not sure what this means? Click here to learn what changesets are.

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

@github-actions

github-actions Bot commented Apr 20, 2026

Copy link
Copy Markdown
Contributor

📦 CLI Tarball Ready

The Vercel CLI tarball for this PR is now available!

Quick Test

You can test this PR's CLI directly by running:

npx https://vercel-grzl2j33g.vercel.sh/tarballs/vercel.tgz --help

Use in vercel.json

To use this CLI version in your project builds, add to your vercel.json:

{
  "build": {
    "env": {
      "VERCEL_CLI_VERSION": "vercel@https://vercel-grzl2j33g.vercel.sh/tarballs/vercel.tgz"
    }
  }
}

Python Runtime Wheel

A vercel-runtime wheel was also built for this PR.
To use in your Python project builds, also set this environment variable:

VERCEL_RUNTIME_PYTHON="vercel-runtime @ https://vercel-grzl2j33g.vercel.sh/tarballs/vercel_runtime-0.14.0.dev1776688009+d8913d4-py3-none-any.whl"

Python Workers Wheel

A vercel-workers wheel was also built for this PR.
To use in your Python project builds, also set this environment variable:

VERCEL_WORKERS_PYTHON="vercel-workers @ https://vercel-grzl2j33g.vercel.sh/tarballs/vercel_workers-0.1.0.dev1776688009+d8913d4-py3-none-any.whl"

@github-actions

github-actions Bot commented Apr 20, 2026

Copy link
Copy Markdown
Contributor

📦 CLI Tarball Ready (v2)

The Vercel CLI tarball for this PR is now available!

Quick Test

You can test this PR's CLI directly by running:

npx https://vercel-grzl2j33g.vercel.sh/tarballs/vercel.tgz --help

Use in vercel.json

To use this CLI version in your project builds, add to your vercel.json:

{
  "build": {
    "env": {
      "VERCEL_CLI_VERSION": "vercel@https://vercel-grzl2j33g.vercel.sh/tarballs/vercel.tgz"
    }
  }
}

Python Runtime Wheel

A vercel-runtime wheel was also built for this PR.
To use in your Python project builds, also set this environment variable:

VERCEL_RUNTIME_PYTHON="vercel-runtime @ https://vercel-grzl2j33g.vercel.sh/tarballs/vercel_runtime-0.14.0.dev1776688009+d8913d4-py3-none-any.whl"

Python Workers Wheel

A vercel-workers wheel was also built for this PR.
To use in your Python project builds, also set this environment variable:

VERCEL_WORKERS_PYTHON="vercel-workers @ https://vercel-grzl2j33g.vercel.sh/tarballs/vercel_workers-0.1.0.dev1776688009+d8913d4-py3-none-any.whl"

This comment is from the v2 workflow (repository_dispatch)

@vercel

vercel Bot commented Apr 20, 2026

Copy link
Copy Markdown
Contributor

Low Risk — Shared package code extraction with new exports + comprehensive tests — no behavioral changes to existing callers.

  • deserialize-build-output.ts: new file extracting build output deserialization logic from existing callers
  • deserialize-build-output-types.ts: new TypeScript types for deserialization options and results
  • index.ts: exports new functions and types from build-utils package

Assessed at d8913d4.

@github-actions

github-actions Bot commented Apr 20, 2026

Copy link
Copy Markdown
Contributor

🧪 Unit Test Strategy

Comparing: be0c33cd8913d4 (view diff)

Strategy: Code changed outside of a package - running all unit tests

⚠️ All unit tests will run because global code changes could impact all packages.

Affected packages - 40 (100%)
  1. @vercel-internals/get-package-json
  2. @vercel/backends
  3. @vercel/build-utils
  4. @vercel/cervel
  5. @vercel/cli-auth
  6. @vercel/client
  7. @vercel/config
  8. @vercel/detect-agent
  9. @vercel/edge
  10. @vercel/elysia
  11. @vercel/error-utils
  12. @vercel/express
  13. @vercel/fastify
  14. @vercel/firewall
  15. @vercel/frameworks
  16. @vercel/fs-detectors
  17. @vercel/functions
  18. @vercel/gatsby-plugin-vercel-builder
  19. @vercel/go
  20. @vercel/h3
  21. @vercel/hono
  22. @vercel/hydrogen
  23. @vercel/koa
  24. @vercel/nestjs
  25. @vercel/next
  26. @vercel/node
  27. @vercel/oidc
  28. @vercel/oidc-aws-credentials-provider
  29. @vercel/python
  30. @vercel/python-analysis
  31. @vercel/redwood
  32. @vercel/related-projects
  33. @vercel/remix-builder
  34. @vercel/routing-utils
  35. @vercel/ruby
  36. @vercel/rust
  37. @vercel/static-build
  38. @vercel/static-config
  39. examples
  40. vercel

Results

  • Unit tests: All affected packages will run unit tests
  • E2E tests: Running in parallel via E2E Tests workflow
  • Type checks: All affected packages will run type checks

This comment is automatically generated based on the affected testing strategy

@github-actions

github-actions Bot commented Apr 20, 2026

Copy link
Copy Markdown
Contributor

🧪 Unit Test Strategy (v2)

Comparing: be0c33cd8913d4 (view diff)

Strategy: Code changed outside of a package - running all unit tests

⚠️ All unit tests will run because global code changes could impact all packages.

Affected packages - 40 (100%)
  1. @vercel-internals/get-package-json
  2. @vercel/backends
  3. @vercel/build-utils
  4. @vercel/cervel
  5. @vercel/cli-auth
  6. @vercel/client
  7. @vercel/config
  8. @vercel/detect-agent
  9. @vercel/edge
  10. @vercel/elysia
  11. @vercel/error-utils
  12. @vercel/express
  13. @vercel/fastify
  14. @vercel/firewall
  15. @vercel/frameworks
  16. @vercel/fs-detectors
  17. @vercel/functions
  18. @vercel/gatsby-plugin-vercel-builder
  19. @vercel/go
  20. @vercel/h3
  21. @vercel/hono
  22. @vercel/hydrogen
  23. @vercel/koa
  24. @vercel/nestjs
  25. @vercel/next
  26. @vercel/node
  27. @vercel/oidc
  28. @vercel/oidc-aws-credentials-provider
  29. @vercel/python
  30. @vercel/python-analysis
  31. @vercel/redwood
  32. @vercel/related-projects
  33. @vercel/remix-builder
  34. @vercel/routing-utils
  35. @vercel/ruby
  36. @vercel/rust
  37. @vercel/static-build
  38. @vercel/static-config
  39. examples
  40. vercel

Results

  • Unit tests: All affected packages will run unit tests
  • E2E tests: Running in parallel via E2E Tests workflow
  • Type checks: All affected packages will run type checks

This comment is automatically generated by the v2 workflow (repository_dispatch)

@healeycodes healeycodes enabled auto-merge (squash) April 20, 2026 12:26
@healeycodes healeycodes merged commit ee720e1 into main Apr 20, 2026
202 checks passed
@healeycodes healeycodes deleted the break-up-deserialize-2 branch April 20, 2026 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants