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

fix(Bun.serve) fix buffering edge case #5152

Merged
merged 5 commits into from
Sep 14, 2023
Merged

Conversation

cirospaciari
Copy link
Member

What does this PR do?

Fix: #4966

  • Documentation or TypeScript types (it's okay to leave the rest blank in this case)
  • Code changes

How did you verify your code works?

I wrote automated tests

@github-actions
Copy link
Contributor

github-actions bot commented Sep 12, 2023

@cirospaciari 5 files with test failures on bun-darwin-aarch64:

  • test/bundler/bundler_naming.test.ts
  • test/js/bun/spawn/spawn.test.ts
  • test/js/bun/test/test-test.test.ts
  • test/js/node/watch/fs.watch.test.ts
  • test/js/web/worker.test.ts

View test output

#f76c50dbdcc7ab6434be0dd817d28522a22f5543

@github-actions
Copy link
Contributor

github-actions bot commented Sep 12, 2023

✅ test failures on linux-x64-baseline have been resolved.

#0aa6492dc6c0b56ab1f2a9427606e0df6e298659

@github-actions
Copy link
Contributor

github-actions bot commented Sep 12, 2023

✅ test failures on linux-x64 have been resolved.

#0aa6492dc6c0b56ab1f2a9427606e0df6e298659

@github-actions
Copy link
Contributor

github-actions bot commented Sep 12, 2023

@Jarred-Sumner 5 files with test failures on bun-darwin-x64-baseline:

  • test/js/bun/sqlite/sqlite.test.js
  • test/js/node/fs/fs.test.ts
  • test/js/third_party/webpack/webpack.test.ts
  • test/js/web/timers/setInterval.test.js
  • test/js/web/timers/setTimeout.test.js

View test output

#0aa6492dc6c0b56ab1f2a9427606e0df6e298659

@Jarred-Sumner
Copy link
Collaborator

bun-server tests are failing

@@ -1673,7 +1673,7 @@ pub const VirtualMachine = struct {
printed,
),
};
res.* = ErrorableString.err(error.NameTooLong, ResolveMessage.create(global, VirtualMachine.get().allocator, msg, source.utf8()).asVoid());
res.* = ErrorableString.err(error.NameTooLong, ResolveMessage.create(global, VirtualMachine.get().allocator, msg, source_utf8.slice()).asVoid());
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this also solves an issue on linux when running test/js/bun/resolve/resolve.test.ts. I am not sure if this is the right approach

@Jarred-Sumner Jarred-Sumner merged commit fa2ef09 into main Sep 14, 2023
17 of 20 checks passed
@Jarred-Sumner Jarred-Sumner deleted the ciro/fix-server-buffering branch September 14, 2023 04:48
paperdave pushed a commit to SuperAuguste/bun that referenced this pull request Sep 18, 2023
* fix buffering clean

* fix resolveMaybeNeedsTrailingSlash and try to fix ci/cd error

* fix resolveMaybeNeedsTrailingSlash and try to fix ci/cd error

* oops

---------

Co-authored-by: Jarred Sumner <jarred@jarredsumner.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.

Segmentation Fault when using await req.formData()
2 participants