Preparation for prserv upgrade to json-based asyncrpc
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest6 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | hashserv: Use generic ConnectionErrorlib/ lib/ lib/ | +12 | 0 replies | |
| 2/6 | asyncrpc: Common implementation of RPC using json & asynciolib/ lib/ lib/ | +394 | 0 replies | |
| 3/6 | hashserv: Refactor to use asyncrpclib/ lib/ | +41 | 0 replies | |
| 4/6 | prserv: Drop obsolete python version checklib/ | +0 | 0 replies | |
| 5/6 | prserv: Drop unused dump_db methodlib/ | +0 | 0 replies | |
| 6/6 | prserv: Add connect functionlib/ | +3 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/6] Preparation for prserv upgrade to json-based asyncrpc
These patches put the groundwork in place for the planned upgrades of the prservice (which will include moving to the new json-based asyncrpc system used by hashserv and using the Python multiprocessing module where possible in the service startup/shutdown code).
The common code which will be shared by both hashserv and prserv is moved to a new asyncrpc module.
Obsolete and unused code in prserv is dropped.
A new connect() method is added to the prserv module to abstract away the details of how the connection is started. This can then be used by the prservice module in oe-core. As this patch series doesn't yet remove the PRServerConnection class the change in oe-core doesn't have to be made immediately. I'll submit the required patch for oe-core after this series is merged to bitbake.
These changes have been tested by running a few local builds with and without hashserv enabled, running the full bitbake-selftest and oe-selftest suites. A couple of failures were seen in oe-selftest but these are related to my host system configuration (socat not installed, firewall blocking ports, etc) so I'm fairly confident they aren't caused by this patch series.
Paul Barker (6):
hashserv: Use generic ConnectionError
asyncrpc: Common implementation of RPC using json & asyncio
hashserv: Refactor to use asyncrpc
prserv: Drop obsolete python version check
prserv: Drop unused dump_db method
prserv: Add connect function
lib/bb/asyncrpc/__init__.py | 31 +++++ lib/bb/asyncrpc/client.py | 145 ++++++++++++++++++++++++ lib/bb/asyncrpc/serv.py | 218 ++++++++++++++++++++++++++++++++++++ lib/bb/siggen.py | 6 +- lib/hashserv/client.py | 147 ++++-------------------- lib/hashserv/server.py | 210 +++++----------------------------- lib/hashserv/tests.py | 3 +- lib/prserv/serv.py | 31 +---- 8 files changed, 445 insertions(+), 346 deletions(-) create mode 100644 lib/bb/asyncrpc/__init__.py create mode 100644 lib/bb/asyncrpc/client.py create mode 100644 lib/bb/asyncrpc/serv.py
Signature · 1 line
2.26.2