-
Notifications
You must be signed in to change notification settings - Fork 199
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
myjsonrpc: Go back to incremental parsing #1248
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The commit message could have a bit more details, e.g. what issue is fixed, why this needs to change, to which versions of which product it applies, link to a bug or a fate entry, the choices you made, etc. Please also describe in your git commit message in more details what is fixed without relying solely on the ticket.
The strategy to look for the next newline was too slow. The time for read_json() increased to about 4-5 times with the changes introduced in os-autoinst#1230 ec50b87 https://progress.opensuse.org/issues/58823 "os-autoinst is too slow pressing F2 causing ARM tests to fail in "boot_to_desktop" The write_json seemed to fail sometimes because the read took too long, resulting in test failures.
67bc782
to
6ceed99
Compare
Codecov Report
@@ Coverage Diff @@
## master #1248 +/- ##
==========================================
+ Coverage 38.39% 39.91% +1.51%
==========================================
Files 40 40
Lines 4956 4948 -8
Branches 846 844 -2
==========================================
+ Hits 1903 1975 +72
+ Misses 2712 2630 -82
- Partials 341 343 +2
Continue to review full report at Codecov.
|
I added info to the commit message. Not sure what I should add. Maybe @Martchus has suggestions? |
Thanks for the quick merge and the added details in the commit message |
The strategy to look for the next newline was too slow.
The time for
read_json()
increased to about 4-5 times with the changes introduced in #1230https://progress.opensuse.org/issues/58823 "os-autoinst is too slow pressing F2 causing ARM tests to fail in "boot_to_desktop"
The
write_json
seemed to fail sometimes because the read took too long, resulting in test failures.