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

Run deinit() on CallbackJob regardless of result type #11379

Merged
merged 4 commits into from
May 27, 2024

Conversation

zawodskoj
Copy link
Contributor

@zawodskoj zawodskoj commented May 26, 2024

What does this PR do?

This PR removes matching of callback result for Promises and forces CallbackJob to deinit regardless

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

Fixes #11377
Fixes #9998

probably some more

How did you verify your code works?

The only thing I could verify is repro from #11377 - this now works correctly. No tests were added (I don't know how to write proper tests for this change), but existing test suite seems fine (except some failed tests because of Windows)

@Jarred-Sumner
Copy link
Collaborator

Thank you.

I think this is probably correct. I think we manually called .then on the Promise before because it predated Bun being able to catch unhandled promise rejections correctly

Copy link
Contributor

github-actions bot commented May 26, 2024

@Jarred-Sumner, your commit has failing tests :(

🐧💪 1 failing tests Linux AARCH64

  • test/js/bun/http/serve-body-leak.test.ts 1 failing

🐧🖥 1 failing tests Linux x64 baseline

  • test/js/node/child_process/child_process-node.test.js 1 failing

🐧🖥 1 failing tests Linux x64

  • test/js/bun/http/serve-body-leak.test.ts 1 failing

View logs

@Jarred-Sumner Jarred-Sumner merged commit ad5574b into oven-sh:main May 27, 2024
18 of 23 checks passed
@zawodskoj
Copy link
Contributor Author

Are these failing tests relevant to this PR?

@Jarred-Sumner
Copy link
Collaborator

Our CI isn't green right now but we are working on fixing that

@zawodskoj
Copy link
Contributor Author

Ok, just wanted to make sure, thanks for quick reply!

paperdave pushed a commit that referenced this pull request May 28, 2024
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
2 participants