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

add step fail hook #3384

Merged
merged 2 commits into from
Dec 1, 2021
Merged

add step fail hook #3384

merged 2 commits into from
Dec 1, 2021

Conversation

HarrisChu
Copy link
Contributor

@HarrisChu HarrisChu commented Dec 1, 2021

https://discuss.nebula-graph.com.cn/t/topic/6707/2

What type of PR is this?

  • bug
  • feature
  • enhancement

What does this PR do?

currently, we just display error information in cmp_dataset function, if there's any error not in the function, we cannot find more details.
so add step error hook, and display space if using a random space.

image

@HarrisChu HarrisChu added the ready-for-testing PR: ready for the CI test label Dec 1, 2021
Copy link
Contributor

@SuperYoko SuperYoko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice

@codecov-commenter
Copy link

Codecov Report

Merging #3384 (b42d103) into master (fe68b0e) will decrease coverage by 0.03%.
The diff coverage is 76.92%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3384      +/-   ##
==========================================
- Coverage   85.27%   85.23%   -0.04%     
==========================================
  Files        1276     1276              
  Lines      118999   119002       +3     
==========================================
- Hits       101475   101437      -38     
- Misses      17524    17565      +41     
Impacted Files Coverage Δ
src/common/expression/ContainerExpression.cpp 90.00% <66.66%> (-2.13%) ⬇️
src/clients/meta/MetaClient.cpp 75.99% <100.00%> (-0.05%) ⬇️
src/graph/validator/test/YieldValidatorTest.cpp 91.78% <100.00%> (ø)
src/parser/test/ParserTest.cpp 100.00% <100.00%> (ø)
src/meta/processors/parts/GetSpaceProcessor.cpp 60.60% <0.00%> (-18.19%) ⬇️
src/meta/processors/BaseProcessor.h 75.67% <0.00%> (-16.22%) ⬇️
src/common/thrift/ThriftClientManager-inl.h 82.97% <0.00%> (-6.39%) ⬇️
src/kvstore/wal/WalFileIterator.cpp 71.00% <0.00%> (-5.00%) ⬇️
...eta/processors/session/SessionManagerProcessor.cpp 74.19% <0.00%> (-4.52%) ⬇️
src/graph/executor/StorageAccessExecutor.h 66.66% <0.00%> (-2.57%) ⬇️
... and 27 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d29a5a4...b42d103. Read the comment docs.

@@ -64,6 +65,16 @@ def pytest_addoption(parser):
help="Nebula Graph workspace")


def pytest_bdd_step_error(request, feature, scenario, step, step_func, step_func_args):
Copy link
Contributor

@darionyaphet darionyaphet Dec 1, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pytest_bdd_step_error not by called? Or how to register the hook?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it registered by pytest automatically.

  1. pytest scan conftest
  2. match the same definition with hook in pytest-bdd.

https://github.com/pytest-dev/pytest-bdd/blob/master/pytest_bdd/plugin.py

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Contributor

@darionyaphet darionyaphet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@yixinglu yixinglu merged commit c499116 into vesoft-inc:master Dec 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-testing PR: ready for the CI test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants