Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_single_match fails #4425

Closed
xtcyclist opened this issue Jul 14, 2022 · 1 comment
Closed

test_single_match fails #4425

xtcyclist opened this issue Jul 14, 2022 · 1 comment
Labels
severity/minor Severity of bug type/bug Type: something is unexpected
Milestone

Comments

@xtcyclist
Copy link
Contributor

Please check the FAQ documentation before raising an issue

Describe the bug (required)

_________________________________________________________________________________________________________________________________ test_single_match _________________________________________________________________________________________________________________________________
[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: {"props": [{"tagId": 9, "props": ["name", "age", "_tag"]}, {"props": ["name", "speciality", "_tag"], "tagId": 8}, {"tagId": 10, "props": ["name", "_tag"]}]} vs. resp: {"inputVar": "__Traverse_3", "space": "2", "dedup": "true", "limit": "-1", "filter": "", "orderBy": "[]", "src": "none_direct_dst($-.e)", "props": "[{\"props\":[\"name\",\"speciality\",\"_tag\"],\"tagId\":8},{\"props\":[\"name\",\"age\",\"_tag\"],\"tagId\":9},{\"props\":[\"name\",\"_tag\"],\"tagId\":10}]", "exprs": "", "vertex_filter": "", "if_track_previous_path": "true"}
E   assert False
E    +  where False = <bound method PlanDiffer.diff of <tests.common.plan_differ.PlanDiffer object at 0x7fb4b6aba280>>()
E    +    where <bound method PlanDiffer.diff of <tests.common.plan_differ.PlanDiffer object at 0x7fb4b6aba280>> = <tests.common.plan_differ.PlanDiffer object at 0x7fb4b6aba280>.diff
------------------------------------------------------------------------------------------------------------------------------- Captured stdout call --------------------------------------------------------------------------------------------------------------------------------
{'inputVar': '__Traverse_3', 'space': 2, 'dedup': True, 'limit': -1, 'filter': '', 'orderBy': [], 'src': 'none_direct_dst($-.e)', 'props': [{'props': ['age'], 'tagId': 9}], 'exprs': '', 'vertex_filter': '', 'if_track_previous_path': True}
{'props': [{'props': ['age'], 'tagId': 9}]}
{'inputVar': '__Traverse_3', 'space': 2, 'dedup': True, 'limit': -1, 'filter': '', 'orderBy': [], 'src': 'none_direct_dst($-.e)', 'props': [{'props': ['age'], 'tagId': 9}], 'exprs': '', 'vertex_filter': '', 'if_track_previous_path': True}
{}
{'inputVar': '__IndexScan_1', 'space': 2, 'dedup': True, 'limit': -1, 'filter': '', 'orderBy': [], 'src': '$_vid', 'edgeTypes': [], 'edgeDirection': 'OUT_EDGE', 'vertexProps': '', 'edgeProps': [{'props': ['_dst', '_rank', '_type', '_src'], 'type': 3}], 'statProps': '', 'exprs': '', 'random': False, 'steps': '', 'vertex filter': '', 'edge filter': '', 'if_track_previous_path': False, 'first step filter': '(player.name=="Tony Parker")'}
{'vertexProps': '', 'edgeProps': [{'props': ['_dst', '_rank', '_type', '_src'], 'type': 3}]}
{'inputVar': '__IndexScan_1', 'space': 2, 'dedup': True, 'limit': -1, 'filter': '', 'orderBy': [], 'src': '$_vid', 'edgeTypes': [], 'edgeDirection': 'OUT_EDGE', 'vertexProps': '', 'edgeProps': [{'props': ['_dst', '_rank', '_type', '_src'], 'type': 3}], 'statProps': '', 'exprs': '', 'random': False, 'steps': '', 'vertex filter': '', 'edge filter': '', 'if_track_previous_path': False, 'first step filter': '(player.name=="Tony Parker")'}
{}
{'inputVar': '__Traverse_3', 'space': 2, 'dedup': True, 'limit': -1, 'filter': '', 'orderBy': [], 'src': 'none_direct_dst($-.e)', 'props': [{'props': ['name', 'speciality', '_tag'], 'tagId': 8}, {'props': ['name', 'age', '_tag'], 'tagId': 9}, {'props': ['name', '_tag'], 'tagId': 10}], 'exprs': '', 'vertex_filter': '', 'if_track_previous_path': True}
{'props': [{'tagId': 9, 'props': ['name', 'age', '_tag']}, {'props': ['name', 'speciality', '_tag'], 'tagId': 8}, {'tagId': 10, 'props': ['name', '_tag']}]}
{'inputVar': '__Traverse_3', 'space': 2, 'dedup': True, 'limit': -1, 'filter': '', 'orderBy': [], 'src': 'none_direct_dst($-.e)', 'props': [{'tagId': 9, 'props': ['name', 'age', '_tag']}, {'props': ['name', 'speciality', '_tag'], 'tagId': 8}, {'tagId': 10, 'props': ['name', '_tag']}], 'exprs': '', 'vertex_filter': '', 'if_track_previous_path': True}
{'values_changed': {"root['props'][0]['tagId']": {'new_value': 9, 'old_value': 8}, "root['props'][0]['props'][1]": {'new_value': 'age', 'old_value': 'speciality'}, "root['props'][1]['props'][1]": {'new_value': 'speciality', 'old_value': 'age'}, "root['props'][1]['tagId']": {'new_value': 8, 'old_value': 9}}}

Your Environments (required)

  • OS: uname -a
  • Compiler: clang-10
  • CPU: lscpu
  • Commit id: 7981108

How To Reproduce(required)

Steps to reproduce the behavior:

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

Expected behavior

Additional context

@xtcyclist xtcyclist added the type/bug Type: something is unexpected label Jul 14, 2022
@Sophie-Xie Sophie-Xie added this to the v3.3.0 milestone Jul 18, 2022
@xtcyclist
Copy link
Contributor Author

There is no real bug. It's just that tagId shall be listed from the smallest in the ascending order in the .feature file.

xtcyclist added a commit to xtcyclist/nebula that referenced this issue Jul 18, 2022
xtcyclist added a commit to xtcyclist/nebula that referenced this issue Jul 18, 2022
… reorder properties in test case to pass the test. no bug found.
xtcyclist added a commit to xtcyclist/nebula that referenced this issue Jul 18, 2022
… reorder properties in test case to pass the test. no bug found.
@jinyingsunny jinyingsunny added the severity/minor Severity of bug label Nov 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity/minor Severity of bug type/bug Type: something is unexpected
Projects
None yet
Development

No branches or pull requests

3 participants