Skip to content

[python] Update error message for custom installCommand builds >250MB#15946

Merged
gscho merged 7 commits into
mainfrom
gscho/PY-209-custom-install-245mb-limit-error
Apr 16, 2026
Merged

[python] Update error message for custom installCommand builds >250MB#15946
gscho merged 7 commits into
mainfrom
gscho/PY-209-custom-install-245mb-limit-error

Conversation

@gscho

@gscho gscho commented Apr 14, 2026

Copy link
Copy Markdown
Contributor

Remove the cryptic 245MB error message for something more concrete when users provide a installCommand. Also make the error message use consistent language.

gscho added 2 commits April 14, 2026 13:31
Signed-off-by: gscho <greg.c.schofield@gmail.com>
Signed-off-by: gscho <greg.c.schofield@gmail.com>
@gscho gscho requested review from a team as code owners April 14, 2026 17:32
@changeset-bot

changeset-bot Bot commented Apr 14, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 08d9ae0

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

This PR includes changesets to release 2 packages
Name Type
@vercel/python Patch
vercel 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 14, 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-6eciusbdw.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-6eciusbdw.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-6eciusbdw.vercel.sh/tarballs/vercel_runtime-0.14.0.dev1776351111+08d9ae0-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-6eciusbdw.vercel.sh/tarballs/vercel_workers-0.1.0.dev1776351111+08d9ae0-py3-none-any.whl"

@vercel

vercel Bot commented Apr 14, 2026

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated (UTC)
vercel Ready Ready Preview, Comment Apr 14, 2026 5:33pm

Request Review

@vercel

vercel Bot commented Apr 14, 2026

Copy link
Copy Markdown
Contributor

Low Risk — Error message copy improvements + test coverage additions.

  • .changeset/lovely-experts-remain.md: added changeset for patch release
  • dependency-externalizer.ts: updated error message strings for consistency and clarity
  • dependency-externalizer.test.ts: added tests for custom install command error handling

Assessed at 08d9ae0.

@github-actions

github-actions Bot commented Apr 14, 2026

Copy link
Copy Markdown
Contributor

🧪 Unit Test Strategy

Comparing: 7b1db3508d9ae0 (view diff)

Strategy: Affected packages only

✅ Only testing packages that have been modified or depend on modified packages.

Affected packages - 2 (5%)
  1. @vercel/python
  2. vercel
Unaffected packages - 38 (95%)
  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-analysis
  30. @vercel/redwood
  31. @vercel/related-projects
  32. @vercel/remix-builder
  33. @vercel/routing-utils
  34. @vercel/ruby
  35. @vercel/rust
  36. @vercel/static-build
  37. @vercel/static-config
  38. examples

Results

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

This comment is automatically generated based on the affected testing strategy

@gscho gscho changed the title [pythn] Update error message for custom installCommand builds >250MB [python] Update error message for custom installCommand builds >250MB Apr 14, 2026
Signed-off-by: gscho <greg.c.schofield@gmail.com>
Comment thread packages/python/src/dependency-externalizer.ts
Signed-off-by: gscho <greg.c.schofield@gmail.com>
Comment thread packages/python/src/dependency-externalizer.ts Outdated
Signed-off-by: gscho <greg.c.schofield@gmail.com>
Comment thread packages/python/test/dependency-externalizer.test.ts Outdated
Co-authored-by: vercel[bot] <35613825+vercel[bot]@users.noreply.github.com>
@gscho gscho enabled auto-merge (squash) April 16, 2026 14:54
@gscho gscho merged commit adbe6f0 into main Apr 16, 2026
179 checks passed
@gscho gscho deleted the gscho/PY-209-custom-install-245mb-limit-error branch April 16, 2026 15:20
jeffsee55 pushed a commit that referenced this pull request Apr 16, 2026
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @vercel/backends@0.0.63

### Patch Changes

- Typecheck deployment TypeScript via the compiler API (entry + import
graph), deduplicate the cervel `typescript` module, and extend the
turborepo fixture with a chained `tsconfig` for monorepo path
resolution. ([#15980](#15980))

- Relax failures when we don't find an entrypoint for backends to
maximize backwards compatibility
([#15980](#15980))

- Updated dependencies
\[[`5219572d21a2ba4b49cc1c27d244c1ff5d76c591`](5219572)]:
    -   @vercel/build-utils@13.17.1

## @vercel/build-utils@13.17.1

### Patch Changes

- Align deserialize logic with existing callers.
([#16002](#16002))

## @vercel/cervel@0.0.50

### Patch Changes

- Updated dependencies
\[[`2babfa22946d80a92f1307a8d860a9039d695b09`](2babfa2),
[`2babfa22946d80a92f1307a8d860a9039d695b09`](2babfa2)]:
    -   @vercel/backends@0.0.63

## vercel@51.5.1

### Patch Changes

- Improve Claude Code Vercel plugin install and update prompts across
CLI commands. ([#15921](#15921))

- Updated dependencies
\[[`5219572d21a2ba4b49cc1c27d244c1ff5d76c591`](5219572),
[`2babfa22946d80a92f1307a8d860a9039d695b09`](2babfa2),
[`2babfa22946d80a92f1307a8d860a9039d695b09`](2babfa2),
[`adbe6f0a0152136aa26aa1277458f4578f62beeb`](adbe6f0)]:
    -   @vercel/build-utils@13.17.1
    -   @vercel/backends@0.0.63
    -   @vercel/python@6.33.2
    -   @vercel/elysia@0.1.66
    -   @vercel/express@0.1.76
    -   @vercel/fastify@0.1.69
    -   @vercel/go@3.5.0
    -   @vercel/h3@0.1.75
    -   @vercel/hono@0.2.69
    -   @vercel/hydrogen@1.3.6
    -   @vercel/koa@0.1.49
    -   @vercel/nestjs@0.2.70
    -   @vercel/next@4.16.8
    -   @vercel/node@5.7.8
    -   @vercel/redwood@2.4.12
    -   @vercel/remix-builder@5.7.2
    -   @vercel/ruby@2.3.2
    -   @vercel/rust@1.1.1
    -   @vercel/static-build@2.9.16

## @vercel/client@17.3.5

### Patch Changes

- Updated dependencies
\[[`5219572d21a2ba4b49cc1c27d244c1ff5d76c591`](5219572)]:
    -   @vercel/build-utils@13.17.1

## @vercel/elysia@0.1.66

### Patch Changes

-   Updated dependencies \[]:
    -   @vercel/node@5.7.8

## @vercel/express@0.1.76

### Patch Changes

-   Updated dependencies \[]:
    -   @vercel/node@5.7.8
    -   @vercel/cervel@0.0.50

## @vercel/fastify@0.1.69

### Patch Changes

-   Updated dependencies \[]:
    -   @vercel/node@5.7.8

## @vercel/fs-detectors@5.18.1

### Patch Changes

- Updated dependencies
\[[`5219572d21a2ba4b49cc1c27d244c1ff5d76c591`](5219572)]:
    -   @vercel/build-utils@13.17.1

## @vercel/gatsby-plugin-vercel-builder@2.1.16

### Patch Changes

- Updated dependencies
\[[`5219572d21a2ba4b49cc1c27d244c1ff5d76c591`](5219572)]:
    -   @vercel/build-utils@13.17.1

## @vercel/h3@0.1.75

### Patch Changes

-   Updated dependencies \[]:
    -   @vercel/node@5.7.8

## @vercel/hono@0.2.69

### Patch Changes

-   Updated dependencies \[]:
    -   @vercel/node@5.7.8

## @vercel/koa@0.1.49

### Patch Changes

-   Updated dependencies \[]:
    -   @vercel/node@5.7.8

## @vercel/nestjs@0.2.70

### Patch Changes

-   Updated dependencies \[]:
    -   @vercel/node@5.7.8

## @vercel/node@5.7.8

### Patch Changes

- Updated dependencies
\[[`5219572d21a2ba4b49cc1c27d244c1ff5d76c591`](5219572)]:
    -   @vercel/build-utils@13.17.1

## @vercel/python@6.33.2

### Patch Changes

- Update the error for custom installCommand builds >250MB.
([#15946](#15946))

## @vercel/static-build@2.9.16

### Patch Changes

-   Updated dependencies \[]:
    -   @vercel/gatsby-plugin-vercel-builder@2.1.16

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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