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

Fixup the streaming tail worker implementation #3539

Merged
merged 3 commits into from
Feb 26, 2025

Conversation

jasnell
Copy link
Member

@jasnell jasnell commented Feb 13, 2025

  • Fixes UAF in server.c++ handling
  • Simplifies trace-stream implementation
  • Ensures that the outcome event is sent in fetch request traces
  • Still needs to ensure that outcome is sent in all other types of invocations
  • Still needs tests, tests, and more tests.
    • Tests to verify that throwing an error in the tail worker handler works as expected
    • Tests to verify that all of the various ways a worker invocation can complete will appropriately trigger an outcome event
    • Tests to verify that all internal state is cleaned up and not leaked

@fhanau .... opening this as a draft and handing it over to you for next steps..

@jasnell jasnell marked this pull request as ready for review February 20, 2025 15:09
@jasnell jasnell requested review from a team as code owners February 20, 2025 15:09
@jasnell
Copy link
Member Author

jasnell commented Feb 20, 2025

@fhanau ... once this passes internal CI, I'll do a final review on the parts you added/modified.

@fhanau fhanau force-pushed the jasnell/moar-streaming-tail-worker branch from 61cdeeb to aaf7cc4 Compare February 25, 2025 17:32
@jasnell
Copy link
Member Author

jasnell commented Feb 25, 2025

@fhanau ... I cannot sign off on my own PR but your updates LGTM.

jasnell and others added 2 commits February 26, 2025 03:10
* Fixes UAF in server.c++ handling
* Simplifies trace-stream implementation
* Ensures that the outcome event is sent in fetch request traces
* Still needs to ensure that outcome is sent in all other types of invocations
* Still needs tests, tests, and more tests.
  * Tests to verify that throwing an error in the tail worker handler works as expected
  * Tests to verify that all of the various ways a worker invocation can complete will appropriately trigger an outcome event
  * Tests to verify that all internal state is cleaned up and not leaked
@fhanau fhanau force-pushed the jasnell/moar-streaming-tail-worker branch from aaf7cc4 to 2f42300 Compare February 26, 2025 03:25
@fhanau fhanau merged commit 2709d76 into main Feb 26, 2025
16 of 17 checks passed
@fhanau fhanau deleted the jasnell/moar-streaming-tail-worker branch February 26, 2025 18:31
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