Skip to content

[python] support VERCEL_IPC_PATH along VERCEL_IPC_FD#12800

Merged
TooTallNate merged 2 commits intomainfrom
python/support-ipc-path
Jan 2, 2025
Merged

[python] support VERCEL_IPC_PATH along VERCEL_IPC_FD#12800
TooTallNate merged 2 commits intomainfrom
python/support-ipc-path

Conversation

@QuiiBz
Copy link
Copy Markdown
Member

@QuiiBz QuiiBz commented Dec 23, 2024

To communicate between our runtime and language runtimes, we use a Unix Domain Socket for ICP. We currently open a Unix Domain Socket via a file descriptor VERCEL_IPC_FD, but not all runtimes that we want to support (e.g. Bun & Deno) support that.

To easily support any language runtime, we're moving to VERCEL_IPC_PATH to let the runtime directly connect to the given IPC socket, instead of opening it via a FD.

We need to support both ways right now:

  • merge this PR that still supports the old way
  • enable the new VERCEL_IPC_PATH behavior in our runtime
  • delete the old VERCEL_IPC_FD in the Python runtime

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Dec 23, 2024

🦋 Changeset detected

Latest commit: af35a11

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

@TooTallNate TooTallNate enabled auto-merge January 2, 2025 18:28
@TooTallNate TooTallNate added this pull request to the merge queue Jan 2, 2025
Merged via the queue into main with commit 99a2899 Jan 2, 2025
@TooTallNate TooTallNate deleted the python/support-ipc-path branch January 2, 2025 18:38
TooTallNate pushed a commit that referenced this pull request Jan 2, 2025
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/[email protected]

### Major Changes

- Change getPathOverrideForPackageManager() to use detectedLockfile
argument ([#12749](#12749))

### Patch Changes

- Refactor build-util usage to reuse detected lockfile
([#12749](#12749))

- add support for `images.qualities`
([#12792](#12792))

## @vercel/[email protected]

### Minor Changes

- moved methods to @vercel/functions
([#12758](#12758))

## @vercel/[email protected]

### Minor Changes

- Update default ignored folders from the zip output:
([#12807](#12807))

    -   nested `node_modules`
    -   nested `.next` & `.nuxt`
    -   `.git` & `.vercel`

### Patch Changes

- Support VERCEL_IPC_PATH along with VERCEL_IPC_FD
([#12800](#12800))

## [email protected]

### Patch Changes

- Added root params support for pages powered by partial prerendering
([#12764](#12764))

- Update `@vercel/fun` to v1.1.2
([#12791](#12791))

- Update "follow-redirects" to v1.15.9 to avoid security vulnerability
report ([#12771](#12771))

- [deploy] make deploy --target case sensitive
([#12747](#12747))

- add support for `images.qualities`
([#12792](#12792))

- Updated dependencies
\[[`79a7374cdd8e734f01ee1b9ad6662182b9090bc0`](79a7374),
[`6150fbe18ef7fb4a6591a87a40c4452b2c9923ce`](6150fbe),
[`7adf5367054bdd86e7ecb9791290fffeb756fcfb`](7adf536),
[`7adf5367054bdd86e7ecb9791290fffeb756fcfb`](7adf536),
[`c11c3553f30bf00501f7136cfb5fda9f9c4b4fb1`](c11c355),
[`99a2899b9f3e1868752690f75bd1ca587f53ffdd`](99a2899),
[`c31d0813fc9668859c81ec0002e502aa200eec95`](c31d081)]:
    -   @vercel/[email protected]
    -   @vercel/[email protected]
    -   @vercel/[email protected]
    -   @vercel/[email protected]
    -   @vercel/[email protected]
    -   @vercel/[email protected]
    -   @vercel/[email protected]
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

- Updated dependencies
\[[`7adf5367054bdd86e7ecb9791290fffeb756fcfb`](7adf536),
[`7adf5367054bdd86e7ecb9791290fffeb756fcfb`](7adf536),
[`c31d0813fc9668859c81ec0002e502aa200eec95`](c31d081)]:
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

- remove "next" in firewall to resolve vulnerability report
([#12688](#12688))

## @vercel/[email protected]

### Patch Changes

- Refactor build-util usage to reuse detected lockfile
([#12749](#12749))

## @vercel/[email protected]

### Patch Changes

- Updated dependencies
\[[`7adf5367054bdd86e7ecb9791290fffeb756fcfb`](7adf536),
[`7adf5367054bdd86e7ecb9791290fffeb756fcfb`](7adf536),
[`c31d0813fc9668859c81ec0002e502aa200eec95`](c31d081)]:
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

- Refactor build-util usage to reuse detected lockfile
([#12749](#12749))

## @vercel/[email protected]

### Patch Changes

- Added root params support for pages powered by partial prerendering
([#12764](#12764))

- Fix next data route replacing
([#12782](#12782))

- Refactor build-util usage to reuse detected lockfile
([#12749](#12749))

- add support for `images.qualities`
([#12792](#12792))

## @vercel/[email protected]

### Patch Changes

- Updated dependencies
\[[`7adf5367054bdd86e7ecb9791290fffeb756fcfb`](7adf536),
[`7adf5367054bdd86e7ecb9791290fffeb756fcfb`](7adf536),
[`c31d0813fc9668859c81ec0002e502aa200eec95`](c31d081)]:
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

- Refactor build-util usage to reuse detected lockfile
([#12749](#12749))

## @vercel/[email protected]

### Patch Changes

- Refactor build-util usage to reuse detected lockfile
([#12749](#12749))

## @vercel/[email protected]

### Patch Changes

- Refactor build-util usage to reuse detected lockfile
([#12749](#12749))

-   Updated dependencies \[]:
    -   @vercel/[email protected]

## @vercel-internals/[email protected]

### Patch Changes

- Updated dependencies
\[[`7adf5367054bdd86e7ecb9791290fffeb756fcfb`](7adf536),
[`7adf5367054bdd86e7ecb9791290fffeb756fcfb`](7adf536),
[`c31d0813fc9668859c81ec0002e502aa200eec95`](c31d081)]:
    -   @vercel/[email protected]
github-merge-queue bot pushed a commit that referenced this pull request Jan 24, 2025
In #12800, we added support for
both `VERCEL_IPC_FD` and `VERCEL_IPC_PATH` while migrating from the
former to the latter. The migration has now been completed, so we can
remove the old `VERCEL_IPC_FD` logic to always use `VERCEL_IPC_PATH`.
QuietCraftsmanship pushed a commit to QuietCraftsmanship/Vercel that referenced this pull request Jul 6, 2025
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/[email protected]

### Major Changes

- Change getPathOverrideForPackageManager() to use detectedLockfile
argument ([#12749](vercel/vercel#12749))

### Patch Changes

- Refactor build-util usage to reuse detected lockfile
([#12749](vercel/vercel#12749))

- add support for `images.qualities`
([#12792](vercel/vercel#12792))

## @vercel/[email protected]

### Minor Changes

- moved methods to @vercel/functions
([#12758](vercel/vercel#12758))

## @vercel/[email protected]

### Minor Changes

- Update default ignored folders from the zip output:
([#12807](vercel/vercel#12807))

    -   nested `node_modules`
    -   nested `.next` & `.nuxt`
    -   `.git` & `.vercel`

### Patch Changes

- Support VERCEL_IPC_PATH along with VERCEL_IPC_FD
([#12800](vercel/vercel#12800))

## [email protected]

### Patch Changes

- Added root params support for pages powered by partial prerendering
([#12764](vercel/vercel#12764))

- Update `@vercel/fun` to v1.1.2
([#12791](vercel/vercel#12791))

- Update "follow-redirects" to v1.15.9 to avoid security vulnerability
report ([#12771](vercel/vercel#12771))

- [deploy] make deploy --target case sensitive
([#12747](vercel/vercel#12747))

- add support for `images.qualities`
([#12792](vercel/vercel#12792))

- Updated dependencies
\[[`34d76cd266658c88a0726ae58ed06ccc97cf68c9`](vercel/vercel@34d76cd),
[`0d49e1e7ec14ad189aca39c625f9e020193b35b5`](vercel/vercel@0d49e1e),
[`f50f256535f8f7742cadee3c992a24aaeb2280c4`](vercel/vercel@f50f256),
[`f50f256535f8f7742cadee3c992a24aaeb2280c4`](vercel/vercel@f50f256),
[`9e11876f3c946324eaaa939f004b1b44bb142bc2`](vercel/vercel@9e11876),
[`9f98b21e6fc9551f03e55d6c6f8b033da3a67a73`](vercel/vercel@9f98b21),
[`181dc4b21d7f94eb074d52d7c3d06cdbedb98d13`](vercel/vercel@181dc4b)]:
    -   @vercel/[email protected]
    -   @vercel/[email protected]
    -   @vercel/[email protected]
    -   @vercel/[email protected]
    -   @vercel/[email protected]
    -   @vercel/[email protected]
    -   @vercel/[email protected]
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

- Updated dependencies
\[[`f50f256535f8f7742cadee3c992a24aaeb2280c4`](vercel/vercel@f50f256),
[`f50f256535f8f7742cadee3c992a24aaeb2280c4`](vercel/vercel@f50f256),
[`181dc4b21d7f94eb074d52d7c3d06cdbedb98d13`](vercel/vercel@181dc4b)]:
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

- remove "next" in firewall to resolve vulnerability report
([#12688](vercel/vercel#12688))

## @vercel/[email protected]

### Patch Changes

- Refactor build-util usage to reuse detected lockfile
([#12749](vercel/vercel#12749))

## @vercel/[email protected]

### Patch Changes

- Updated dependencies
\[[`f50f256535f8f7742cadee3c992a24aaeb2280c4`](vercel/vercel@f50f256),
[`f50f256535f8f7742cadee3c992a24aaeb2280c4`](vercel/vercel@f50f256),
[`181dc4b21d7f94eb074d52d7c3d06cdbedb98d13`](vercel/vercel@181dc4b)]:
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

- Refactor build-util usage to reuse detected lockfile
([#12749](vercel/vercel#12749))

## @vercel/[email protected]

### Patch Changes

- Added root params support for pages powered by partial prerendering
([#12764](vercel/vercel#12764))

- Fix next data route replacing
([#12782](vercel/vercel#12782))

- Refactor build-util usage to reuse detected lockfile
([#12749](vercel/vercel#12749))

- add support for `images.qualities`
([#12792](vercel/vercel#12792))

## @vercel/[email protected]

### Patch Changes

- Updated dependencies
\[[`f50f256535f8f7742cadee3c992a24aaeb2280c4`](vercel/vercel@f50f256),
[`f50f256535f8f7742cadee3c992a24aaeb2280c4`](vercel/vercel@f50f256),
[`181dc4b21d7f94eb074d52d7c3d06cdbedb98d13`](vercel/vercel@181dc4b)]:
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

- Refactor build-util usage to reuse detected lockfile
([#12749](vercel/vercel#12749))

## @vercel/[email protected]

### Patch Changes

- Refactor build-util usage to reuse detected lockfile
([#12749](vercel/vercel#12749))

## @vercel/[email protected]

### Patch Changes

- Refactor build-util usage to reuse detected lockfile
([#12749](vercel/vercel#12749))

-   Updated dependencies \[]:
    -   @vercel/[email protected]

## @vercel-internals/[email protected]

### Patch Changes

- Updated dependencies
\[[`f50f256535f8f7742cadee3c992a24aaeb2280c4`](vercel/vercel@f50f256),
[`f50f256535f8f7742cadee3c992a24aaeb2280c4`](vercel/vercel@f50f256),
[`181dc4b21d7f94eb074d52d7c3d06cdbedb98d13`](vercel/vercel@181dc4b)]:
    -   @vercel/[email protected]
QuietCraftsmanship pushed a commit to QuietCraftsmanship/Vercel that referenced this pull request Jul 6, 2025
In vercel/vercel#12800, we added support for
both `VERCEL_IPC_FD` and `VERCEL_IPC_PATH` while migrating from the
former to the latter. The migration has now been completed, so we can
remove the old `VERCEL_IPC_FD` logic to always use `VERCEL_IPC_PATH`.
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