Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace websocket with tungstenite for turbo-trace-server #8099

Merged

Conversation

timneutkens
Copy link
Member

@timneutkens timneutkens commented May 7, 2024

Description

websocket can't be compiled to some system targets for Windows and Linux. Based on the readme of the project they recommend using tungstenite instead, this PR implements tungstenite for turbo-trace-server.

While investigating some borrowing issue with @arlyon we found that one of the threads spawned to send messages every 500ms isn't really being used, so I've removed that in favor of the sending on ack that is already used.

Testing Instructions

@timneutkens timneutkens requested a review from a team as a code owner May 7, 2024 11:07
Copy link

vercel bot commented May 7, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
examples-nonmonorepo ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 7, 2024 1:49pm
examples-vite-web 🔄 Building (Inspect) Visit Preview 💬 Add feedback May 7, 2024 1:49pm
rust-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 7, 2024 1:49pm
7 Ignored Deployments
Name Status Preview Comments Updated (UTC)
examples-basic-web ⬜️ Ignored (Inspect) Visit Preview May 7, 2024 1:49pm
examples-designsystem-docs ⬜️ Ignored (Inspect) Visit Preview May 7, 2024 1:49pm
examples-gatsby-web ⬜️ Ignored (Inspect) Visit Preview May 7, 2024 1:49pm
examples-kitchensink-blog ⬜️ Ignored (Inspect) Visit Preview May 7, 2024 1:49pm
examples-native-web ⬜️ Ignored (Inspect) Visit Preview May 7, 2024 1:49pm
examples-svelte-web ⬜️ Ignored (Inspect) Visit Preview May 7, 2024 1:49pm
examples-tailwind-web ⬜️ Ignored (Inspect) Visit Preview May 7, 2024 1:49pm

@turbo-orchestrator turbo-orchestrator bot added needs: triage New issues get this label. Remove it after triage owned-by: turbopack labels May 7, 2024
Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @timneutkens and the rest of your teammates on Graphite Graphite

Copy link
Contributor

github-actions bot commented May 7, 2024

🟢 Turbopack Benchmark CI successful 🟢

Thanks

Copy link
Contributor

github-actions bot commented May 7, 2024

✅ This change can build next-swc

Copy link
Contributor

github-actions bot commented May 7, 2024

⚠️ CI failed ⚠️

The following steps have failed in CI:

  • Turbopack Rust tests (mac/win, non-blocking)

See workflow summary for details

@sokra sokra merged commit 0188585 into main May 8, 2024
48 of 50 checks passed
@sokra sokra deleted the 05-07-Replace_websocket_with_tungstenite_for_turbo-trace-server branch May 8, 2024 07:11
sokra added a commit to vercel/next.js that referenced this pull request May 8, 2024
* vercel/turborepo#8073 <!-- OJ Kwon -
feat(webpack-loaders): support dummy span interface -->
* vercel/turborepo#8083 <!-- OJ Kwon - fix(webpack):
print resource, project path when relative calc fails -->
* vercel/turborepo#8094 <!-- Tim Neutkens -
Implement bindings for Turbopack trace server -->
* vercel/turborepo#8061 <!-- Tobias Koppers - reduce
memory usage in analyser -->
* vercel/turborepo#8077 <!-- Alexander Lyon - Remove
async-trait from a few crates -->
* vercel/turborepo#8102 <!-- Tobias Koppers - fix
memory counting without custom allocator -->
* vercel/turborepo#8096 <!-- Benjamin Woodruff -
turbo-tasks: Expand `<T as TaskOutput>::Return` values in macros -->
* vercel/turborepo#8105 <!-- Benjamin Woodruff -
turbopack-node: Use path.join for postcss loader -->
* vercel/turborepo#8099 <!-- Tim Neutkens - Replace
websocket with tungstenite for turbo-trace-server -->
* vercel/turborepo#8060 <!-- Donny/강동윤 - feat: Add
lint for `grid-template-areas` -->
* vercel/turborepo#8110 <!-- Tobias Koppers - fix
lockfile -->
Neosoulink pushed a commit to Neosoulink/turbo that referenced this pull request Jun 14, 2024
### Description

`websocket` can't be compiled to some system targets for Windows and
Linux. Based on the readme of the project they recommend using
`tungstenite` instead, this PR implements `tungstenite` for
turbo-trace-server.

While investigating some borrowing issue with @arlyon we found that one
of the threads spawned to send messages every 500ms isn't really being
used, so I've removed that in favor of the sending on `ack` that is
already used.

<!--
  ✍️ Write a short summary of your work.
  If necessary, include relevant screenshots.
-->

### Testing Instructions

<!--
  Give a quick description of steps to test your changes.
-->
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Jul 25, 2024
…borepo#8099)

### Description

`websocket` can't be compiled to some system targets for Windows and
Linux. Based on the readme of the project they recommend using
`tungstenite` instead, this PR implements `tungstenite` for
turbo-trace-server.

While investigating some borrowing issue with @arlyon we found that one
of the threads spawned to send messages every 500ms isn't really being
used, so I've removed that in favor of the sending on `ack` that is
already used.

<!--
  ✍️ Write a short summary of your work.
  If necessary, include relevant screenshots.
-->

### Testing Instructions

<!--
  Give a quick description of steps to test your changes.
-->
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Jul 29, 2024
…borepo#8099)

### Description

`websocket` can't be compiled to some system targets for Windows and
Linux. Based on the readme of the project they recommend using
`tungstenite` instead, this PR implements `tungstenite` for
turbo-trace-server.

While investigating some borrowing issue with @arlyon we found that one
of the threads spawned to send messages every 500ms isn't really being
used, so I've removed that in favor of the sending on `ack` that is
already used.

<!--
  ✍️ Write a short summary of your work.
  If necessary, include relevant screenshots.
-->

### Testing Instructions

<!--
  Give a quick description of steps to test your changes.
-->
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Jul 29, 2024
…borepo#8099)

### Description

`websocket` can't be compiled to some system targets for Windows and
Linux. Based on the readme of the project they recommend using
`tungstenite` instead, this PR implements `tungstenite` for
turbo-trace-server.

While investigating some borrowing issue with @arlyon we found that one
of the threads spawned to send messages every 500ms isn't really being
used, so I've removed that in favor of the sending on `ack` that is
already used.

<!--
  ✍️ Write a short summary of your work.
  If necessary, include relevant screenshots.
-->

### Testing Instructions

<!--
  Give a quick description of steps to test your changes.
-->
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Aug 1, 2024
…borepo#8099)

### Description

`websocket` can't be compiled to some system targets for Windows and
Linux. Based on the readme of the project they recommend using
`tungstenite` instead, this PR implements `tungstenite` for
turbo-trace-server.

While investigating some borrowing issue with @arlyon we found that one
of the threads spawned to send messages every 500ms isn't really being
used, so I've removed that in favor of the sending on `ack` that is
already used.

<!--
  ✍️ Write a short summary of your work.
  If necessary, include relevant screenshots.
-->

### Testing Instructions

<!--
  Give a quick description of steps to test your changes.
-->
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Aug 16, 2024
* vercel/turborepo#8073 <!-- OJ Kwon -
feat(webpack-loaders): support dummy span interface -->
* vercel/turborepo#8083 <!-- OJ Kwon - fix(webpack):
print resource, project path when relative calc fails -->
* vercel/turborepo#8094 <!-- Tim Neutkens -
Implement bindings for Turbopack trace server -->
* vercel/turborepo#8061 <!-- Tobias Koppers - reduce
memory usage in analyser -->
* vercel/turborepo#8077 <!-- Alexander Lyon - Remove
async-trait from a few crates -->
* vercel/turborepo#8102 <!-- Tobias Koppers - fix
memory counting without custom allocator -->
* vercel/turborepo#8096 <!-- Benjamin Woodruff -
turbo-tasks: Expand `<T as TaskOutput>::Return` values in macros -->
* vercel/turborepo#8105 <!-- Benjamin Woodruff -
turbopack-node: Use path.join for postcss loader -->
* vercel/turborepo#8099 <!-- Tim Neutkens - Replace
websocket with tungstenite for turbo-trace-server -->
* vercel/turborepo#8060 <!-- Donny/강동윤 - feat: Add
lint for `grid-template-areas` -->
* vercel/turborepo#8110 <!-- Tobias Koppers - fix
lockfile -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs: triage New issues get this label. Remove it after triage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants