vesoft-inc / nebula

A distributed, fast open-source graph database featuring horizontal scalability and high availability
https://nebula-graph.io
Apache License 2.0
10.83k stars 1.2k forks source link

test_multi_path_patterns_1 fails #4426

Closed xtcyclist closed 2 years ago

xtcyclist commented 2 years ago

Please check the FAQ documentation before raising an issue

Describe the bug (required)

____________________________________________________________________________________________________________________________ test_multi_path_patterns_1 _____________________________________________________________________________________________________________________________
[gw2] linux -- Python 3.8.10 /usr/bin/python3
../../../.local/lib/python3.8/site-packages/pytest_bdd/scenario.py:177: in scenario_wrapper
    _execute_scenario(feature, scenario, request, encoding)
../../../.local/lib/python3.8/site-packages/pytest_bdd/scenario.py:143: in _execute_scenario
    _execute_step_function(request, scenario, step, step_func)
../../../.local/lib/python3.8/site-packages/pytest_bdd/scenario.py:113: in _execute_step_function
    return_value = step_func(**kwargs)
tck/conftest.py:785: in check_plan
    assert differ.diff(), differ.err_msg()
E   AssertionError: Invalid descriptions, expect: {"vertexProps": [{"tagId": 9, "props": ["name"]}], "edgeProps": [{"type": -5, "props": ["_dst", "_rank", "_type", "_src"]}, {"type": 5, "props": ["_dst", "_rank", "_type", "_src"]}, {"props": ["_dst", "_rank", "_type", "_src"], "type": -3}, {"props": ["_dst", "_rank", "_type", "_src"], "type": 3}, {"type": -4, "props": ["_dst", "_rank", "_type", "_src"]}, {"props": ["_dst", "_rank", "_type", "_src"], "type": 4}]} vs. resp: {"inputVar": "__Argument_7", "space": "2", "dedup": "true", "limit": "-1", "filter": "", "orderBy": "[]", "src": "id($-.n)", "edgeTypes": "[]", "edgeDirection": "BOTH", "vertexProps": "[{\"props\":[\"name\"],\"tagId\":9}]", "edgeProps": "[{\"props\":[\"_dst\",\"_rank\",\"_type\",\"_src\"],\"type\":-5},{\"props\":[\"_dst\",\"_rank\",\"_type\",\"_src\"],\"type\":5},{\"props\":[\"_dst\",\"_rank\",\"_type\",\"_src\"],\"type\":-4},{\"props\":[\"_dst\",\"_rank\",\"_type\",\"_src\"],\"type\":4},{\"props\":[\"_dst\",\"_rank\",\"_type\",\"_src\"],\"type\":-3},{\"props\":[\"_dst\",\"_rank\",\"_type\",\"_src\"],\"type\":3}]", "statProps": "", "exprs": "", "random": "false", "steps": "", "vertex filter": "", "edge filter": "", "if_track_previous_path": "false", "first step filter": ""}
E   assert False
E    +  where False = <bound method PlanDiffer.diff of <tests.common.plan_differ.PlanDiffer object at 0x7fb4b6ac15b0>>()
E    +    where <bound method PlanDiffer.diff of <tests.common.plan_differ.PlanDiffer object at 0x7fb4b6ac15b0>> = <tests.common.plan_differ.PlanDiffer object at 0x7fb4b6ac15b0>.diff
------------------------------------------------------------------------------------------------------------------------------- Captured stdout call --------------------------------------------------------------------------------------------------------------------------------
{'inputVar': '__Traverse_4', 'space': 2, 'dedup': True, 'limit': -1, 'filter': '', 'orderBy': [], 'src': 'none_direct_dst($-.__VAR_0)', 'props': [{'props': ['name'], 'tagId': 9}], 'exprs': '', 'vertex_filter': '', 'if_track_previous_path': True}
{'props': [{'props': ['name'], 'tagId': 9}]}
{'inputVar': '__Traverse_4', 'space': 2, 'dedup': True, 'limit': -1, 'filter': '', 'orderBy': [], 'src': 'none_direct_dst($-.__VAR_0)', 'props': [{'props': ['name'], 'tagId': 9}], 'exprs': '', 'vertex_filter': '', 'if_track_previous_path': True}
{}
{'inputVar': '__Dedup_2', 'space': 2, 'dedup': True, 'limit': -1, 'filter': '', 'orderBy': [], 'src': '$-._vid', 'edgeTypes': [], 'edgeDirection': 'BOTH', 'vertexProps': [{'props': ['name'], 'tagId': 9}], 'edgeProps': [{'props': ['_dst', '_rank', '_type', '_src'], 'type': -5}, {'props': ['_dst', '_rank', '_type', '_src'], 'type': 5}, {'props': ['_dst', '_rank', '_type', '_src'], 'type': -4}, {'props': ['_dst', '_rank', '_type', '_src'], 'type': 4}, {'props': ['_dst', '_rank', '_type', '_src'], 'type': -3}, {'props': ['_dst', '_rank', '_type', '_src'], 'type': 3}], 'statProps': '', 'exprs': '', 'random': False, 'steps': '', 'vertex filter': '', 'edge filter': '', 'if_track_previous_path': False, 'first step filter': ''}
{'vertexProps': [{'props': ['name'], 'tagId': 9}]}
{'inputVar': '__Dedup_2', 'space': 2, 'dedup': True, 'limit': -1, 'filter': '', 'orderBy': [], 'src': '$-._vid', 'edgeTypes': [], 'edgeDirection': 'BOTH', 'vertexProps': [{'props': ['name'], 'tagId': 9}], 'edgeProps': [{'props': ['_dst', '_rank', '_type', '_src'], 'type': -5}, {'props': ['_dst', '_rank', '_type', '_src'], 'type': 5}, {'props': ['_dst', '_rank', '_type', '_src'], 'type': -4}, {'props': ['_dst', '_rank', '_type', '_src'], 'type': 4}, {'props': ['_dst', '_rank', '_type', '_src'], 'type': -3}, {'props': ['_dst', '_rank', '_type', '_src'], 'type': 3}], 'statProps': '', 'exprs': '', 'random': False, 'steps': '', 'vertex filter': '', 'edge filter': '', 'if_track_previous_path': False, 'first step filter': ''}
{}
{'inputVar': '__Traverse_9', 'space': 2, 'dedup': True, 'limit': -1, 'filter': '', 'orderBy': [], 'src': 'none_direct_dst($-.__VAR_1)', 'props': [{'props': ['name'], 'tagId': 9}, {'props': ['name'], 'tagId': 10}], 'exprs': '', 'vertex_filter': '', 'if_track_previous_path': True}
{'props': [{'tagId': 9, 'props': ['name']}, {'tagId': 10, 'props': ['name']}]}
{'inputVar': '__Traverse_9', 'space': 2, 'dedup': True, 'limit': -1, 'filter': '', 'orderBy': [], 'src': 'none_direct_dst($-.__VAR_1)', 'props': [{'tagId': 9, 'props': ['name']}, {'tagId': 10, 'props': ['name']}], 'exprs': '', 'vertex_filter': '', 'if_track_previous_path': True}
{}
{'inputVar': '__Argument_7', 'space': 2, 'dedup': True, 'limit': -1, 'filter': '', 'orderBy': [], 'src': 'id($-.n)', 'edgeTypes': [], 'edgeDirection': 'BOTH', 'vertexProps': [{'props': ['name'], 'tagId': 9}], 'edgeProps': [{'props': ['_dst', '_rank', '_type', '_src'], 'type': -5}, {'props': ['_dst', '_rank', '_type', '_src'], 'type': 5}, {'props': ['_dst', '_rank', '_type', '_src'], 'type': -4}, {'props': ['_dst', '_rank', '_type', '_src'], 'type': 4}, {'props': ['_dst', '_rank', '_type', '_src'], 'type': -3}, {'props': ['_dst', '_rank', '_type', '_src'], 'type': 3}], 'statProps': '', 'exprs': '', 'random': False, 'steps': '', 'vertex filter': '', 'edge filter': '', 'if_track_previous_path': False, 'first step filter': ''}
{'vertexProps': [{'tagId': 9, 'props': ['name']}], 'edgeProps': [{'type': -5, 'props': ['_dst', '_rank', '_type', '_src']}, {'type': 5, 'props': ['_dst', '_rank', '_type', '_src']}, {'props': ['_dst', '_rank', '_type', '_src'], 'type': -3}, {'props': ['_dst', '_rank', '_type', '_src'], 'type': 3}, {'type': -4, 'props': ['_dst', '_rank', '_type', '_src']}, {'props': ['_dst', '_rank', '_type', '_src'], 'type': 4}]}
{'inputVar': '__Argument_7', 'space': 2, 'dedup': True, 'limit': -1, 'filter': '', 'orderBy': [], 'src': 'id($-.n)', 'edgeTypes': [], 'edgeDirection': 'BOTH', 'vertexProps': [{'tagId': 9, 'props': ['name']}], 'edgeProps': [{'type': -5, 'props': ['_dst', '_rank', '_type', '_src']}, {'type': 5, 'props': ['_dst', '_rank', '_type', '_src']}, {'props': ['_dst', '_rank', '_type', '_src'], 'type': -3}, {'props': ['_dst', '_rank', '_type', '_src'], 'type': 3}, {'type': -4, 'props': ['_dst', '_rank', '_type', '_src']}, {'props': ['_dst', '_rank', '_type', '_src'], 'type': 4}], 'statProps': '', 'exprs': '', 'random': False, 'steps': '', 'vertex filter': '', 'edge filter': '', 'if_track_previous_path': False, 'first step filter': ''}
{'values_changed': {"root['edgeProps'][2]['type']": {'new_value': -3, 'old_value': -4}, "root['edgeProps'][3]['type']": {'new_value': 3, 'old_value': 4}, "root['edgeProps'][4]['type']": {'new_value': -4, 'old_value': -3}, "root['edgeProps'][5]['type']": {'new_value': 4, 'old_value': 3}}}

Your Environments (required)

How To Reproduce(required)

Steps to reproduce the behavior:

  1. Step 1
  2. Step 2
  3. Step 3

Expected behavior

Additional context

xtcyclist commented 2 years ago

No real bug. Same reason with the previous #4425. Different string representations of the same plan description.