Open myxie opened 2 weeks ago
This pull request implements changes to the DALiuGE translator, primarily focusing on updating the graph structure representation. The main change is replacing the use of 'key' with 'id' for node identification, and 'group' with 'parentId' for hierarchical relationships. This change affects multiple files across the project, including core functionality, tests, and JSON representations of graphs.
Change | Details | Files |
---|---|---|
Replace 'key' with 'id' for node identification |
|
daliuge-translator/dlg/dropmake/dm_utils.py daliuge-translator/test/dropmake/test_pg_gen.py daliuge-translator/dlg/dropmake/lg_node.py |
Replace 'group' with 'parentId' for hierarchical relationships |
|
daliuge-translator/dlg/dropmake/dm_utils.py daliuge-translator/test/dropmake/test_pg_gen.py daliuge-translator/dlg/dropmake/lg_node.py |
Update JSON representations of graphs |
|
daliuge-translator/test/dropmake/pg_spec/cont_img_mvp.json daliuge-translator/test/dropmake/pg_spec/eagle_gather_simple_update.json daliuge-translator/test/dropmake/pg_spec/eagle_gather_update.json daliuge-translator/test/dropmake/pg_spec/eagle_gather_empty_update.json daliuge-translator/test/dropmake/pg_spec/chiles_simple.json daliuge-translator/test/dropmake/pg_spec/test_grpby_gather.json daliuge-translator/test/dropmake/pg_spec/testLoop.json daliuge-translator/test/dropmake/pg_spec/SharedMemoryTest_update.json daliuge-translator/test/dropmake/pg_spec/Plasma_test.json daliuge-translator/test/dropmake/pg_spec/HelloWorld_simple.json |
Refactor test cases to accommodate new graph structure |
|
daliuge-translator/test/dropmake/test_pg_gen.py daliuge-translator/test/dropmake/test_dm_utils.py daliuge-translator/test/reproducibility/test_scatter_blockdag.py |
Update graph manipulation and traversal logic |
|
daliuge-translator/dlg/dropmake/dm_utils.py daliuge-translator/dlg/dropmake/pgt.py daliuge-common/dlg/common/reproducibility/reproducibility.py |
Issue
This address LIU-404, which is triggered by EAGLE-1269 and removes the "keys" and "groups" from the translator.
Solution
Rather than fixing a specific problem, I have just changed the references from "key" to "id" and "group" to "parentId".
The other main changes have been updating all of the
dropmake
test files, and also modifying thetest_pg_gen.py
tests to more effectively test the graph structure, which should improve our regression testing capabilities moving forward.Summary by Sourcery
Standardize node identification by replacing 'key' with 'id' and 'group' with 'parentId' across the translator. Update test files and modify tests to improve regression testing capabilities and ensure consistency in graph structures. Enhance the PGT class to track links and verify the correct number of nodes and edges in logical graphs and PGT DAGs.
Enhancements:
Tests: