-
Notifications
You must be signed in to change notification settings - Fork 183
combine json chunks from requests #4317
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
base: main
Are you sure you want to change the base?
combine json chunks from requests #4317
Conversation
Thanks for the fix @jiapingzeng! Wondering if you see any additional latency due to combining the chunks? |
I didn't notice additional latency from my side. There are some concerns of collectList() running out of memory when waiting for an infinite upstream: https://stackoverflow.com/a/72042404, but I don't think that applies here as agent execute requests are a few kBs at most. |
Don't think test failure is related to my change. Tried |
84ea119
to
8292d74
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4317 +/- ##
============================================
- Coverage 80.14% 80.12% -0.03%
+ Complexity 10172 10171 -1
============================================
Files 854 854
Lines 44219 44227 +8
Branches 5113 5114 +1
============================================
- Hits 35440 35437 -3
- Misses 6630 6641 +11
Partials 2149 2149
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
17f9415
to
0a7734d
Compare
Looks like CI is passing on Windows but still failing on Linux due to unrelated errors. I will add UTs and run sanity tests locally and then we can merge this. |
Signed-off-by: Jiaping Zeng <jpz@amazon.com>
0a7734d
to
76d0400
Compare
Signed-off-by: Jiaping Zeng <jpz@amazon.com>
2a767b6
to
8f6c270
Compare
Added UTs for combineChunks. Not possible to create UT for prepareRequest as chunk collection happens async. However, ran the below sanity tests:
|
Description
[Describe what this change achieves]
Related Issues
4314
Check List
--signoff
.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.