Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Automated testing of mappings in RPC server registration and client arg conversion #10751
Comments
|
I agree. But I wonder if it's possible to just use the main RPC arg list rather than having two mapping lists? |
|
I thought about that, might lead to having much too many deps for -cli, but we could maybe go the other way - have a separate table for name -> arg mappings and use that.
…
|
fanquake
added RPC/REST/ZMQ Tests
labels
Jul 6, 2017
|
I actually have a script for this, just need to hook it in (and update it for the new "a|b" syntax).
The problem is indeed one of dependencies. There is no way the -cli can access the server implementation files ( An old idea is to remove all command-specific knowledge from the cli and instead request a JSON document from the server that describes the interface. This, in combination with smart caching to prevent extra roundtrips, could work. |
TheBlueMatt commentedJul 5, 2017
#10747 fixed an issue where out client-side args type conversions got de-synced from our server-side named arguments -> arg position mappings. It would be super nice to have some kind of automated tester for that as I'm afraid simple typos will go entirely unnoticed.