Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automated command registration (#3371)
* remove binary commandMap by including binary-payload field in MsgTuple. Fix misleading indentation in serverDaemon. Remove repeated error-handling code from ServerDaemon. Signed-off-by: Jeremiah Corrado <[email protected]> * remove commandMapArray by adding payload field to MessageArgs Signed-off-by: Jeremiah Corrado <[email protected]> * fix messageArgs serialization bug Signed-off-by: Jeremiah Corrado <[email protected]> * remove unecessary string.doFormat, replacing with string.format Signed-off-by: Jeremiah Corrado <[email protected]> * remove symbols duplicated across IOCompat versions Signed-off-by: Jeremiah Corrado <[email protected]> * start refactor of ParameterObj. Simplified argument parsing API to include 'toScalar', 'toScalarTuple', 'toScalarList', 'toScalarArray'. Other methods were removed or "deprecated". Added 'this()' indexing to msgArgs Signed-off-by: Jeremiah Corrado <[email protected]> * remove objType enum from Message.chpl (and message.py) - resolves #2522. Only 'efunc2Msg' was using this functionality, so put a temporary fix in place until it can be refactored Signed-off-by: Jeremiah Corrado <[email protected]> * add this() accessor to SymbolTable, adjust ManipulationMsg to use it. Fold error handling into 'executeCommand' Signed-off-by: Jeremiah Corrado <[email protected]> * fix dep modules wrt IOCompat changes Signed-off-by: Jeremiah Corrado <[email protected]> * fix build errors originating in server deamon error message metrics Signed-off-by: Jeremiah Corrado <[email protected]> * fold symbol creation response code into the symbol table. Update ManipulationMsg to use the new API Signed-off-by: Jeremiah Corrado <[email protected]> * remove objType from message.py tests Signed-off-by: Jeremiah Corrado <[email protected]> * fix typo in merge-conflict resolution Signed-off-by: Jeremiah Corrado <[email protected]> * fix build failures and warnings for older versions of Chapel Signed-off-by: Jeremiah Corrado <[email protected]> * fix merge conflict resolution errors: Signed-off-by: Jeremiah Corrado <[email protected]> * add script to support registerCommand and registerAndInstantiate annotations for fully and partially automated command registration Signed-off-by: Jeremiah Corrado <[email protected]> * fix frontend parsing of multi-array responses generated from 'MsgTuple.fromResponses' Signed-off-by: Jeremiah Corrado <[email protected]> * add register-commnds to makefile for calling register_commands.py script. Rename server-config.json to registration-config.json (update old parseServerConfig script accordingly). Make some minor qol improvements to the new register_commands script Signed-off-by: Jeremiah Corrado <[email protected]> * finish converting ManipulationMsg to use new registration script Signed-off-by: Jeremiah Corrado <[email protected]> * update 'test_client_get_server_commands' to not include 'array' (this command no longer requires special handling in the serverDaemon) Signed-off-by: Jeremiah Corrado <[email protected]> * adjust array_api/manipulation_functions to use new commands. Move type checking into frontend for concat and stack (implement type promotion that was missing) Signed-off-by: Jeremiah Corrado <[email protected]> * fix type annotation Signed-off-by: Jeremiah Corrado <[email protected]> * fix type annotation Signed-off-by: Jeremiah Corrado <[email protected]> * start translating statsMsg to use new registration framework Signed-off-by: Jeremiah Corrado <[email protected]> * finish switching statsMsg to new registration framework Signed-off-by: Jeremiah Corrado <[email protected]> * generate code with spaces instead of tabs in register_commands.py Signed-off-by: Jeremiah Corrado <[email protected]> * fix aryUtilCompat modules Signed-off-by: Jeremiah Corrado <[email protected]> * fix compilation errors in stats Signed-off-by: Jeremiah Corrado <[email protected]> * fix compilation errors for older versions of chapel and for multidimensional builds Signed-off-by: Jeremiah Corrado <[email protected]> * use python dtype names in MsgTuple.fromScalar (instead of Chapel type names) Signed-off-by: Jeremiah Corrado <[email protected]> * fix corr and cov computations Signed-off-by: Jeremiah Corrado <[email protected]> * fix some array-api test failures Signed-off-by: Jeremiah Corrado <[email protected]> * don't include modules in Commands.chpl if they don't contain any annotated procedures Signed-off-by: Jeremiah Corrado <[email protected]> * apply black formatting to array api modules Signed-off-by: Jeremiah Corrado <[email protected]> * fix failing array api tests Signed-off-by: Jeremiah Corrado <[email protected]> * remove duplicate line from ServerDaemon Signed-off-by: Jeremiah Corrado <[email protected]> --------- Signed-off-by: Jeremiah Corrado <[email protected]>
- Loading branch information