-
Notifications
You must be signed in to change notification settings - Fork 78
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 sphinx conf to auto generate python api doc #286
Conversation
This is a great milestone. We could then:
|
8e95514
to
9c18729
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GREAT JOB!
Seems def test_2_reconnect(self):
try:
session = self.pool.get_session('root', 'nebula')
time.sleep(2)
# wait for the session space info to be updated to meta service
session.execute(
'CREATE SPACE IF NOT EXISTS test_session(vid_type=FIXED_STRING(8)); USE test_session;'
)
time.sleep(10)
for i in range(0, 5):
if i == 3:
os.system('docker stop tests_graphd0_1')
os.system('docker stop tests_graphd1_1')
time.sleep(3)
resp = session.execute('SHOW SESSIONS')
assert resp.is_succeeded(), resp.error_msg()
assert resp.space_name() == 'test_session' #<---------------------
time.sleep(2)
session.release()
new_session = self.pool.get_session('root', 'nebula')
new_session.execute('SHOW SPACES')
except Exception as e:
> assert False, e
E AssertionError: AssertionError("assert '' == 'test_session' #-----------
E - test_session")
E assert False If that's the case, let's remove this assert from UT. |
there's a test for multi-thread, it uses 50 threads to create space, causing the space is not enough for storaged. just fixed it. thanks @HarrisChu |
Codecov ReportPatch and project coverage have no change.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #286 +/- ##
=======================================
Coverage 77.51% 77.51%
=======================================
Files 18 18
Lines 2411 2411
=======================================
Hits 1869 1869
Misses 542 542 ☔ View full report in Codecov by Sentry. |
run docs/build.sh to auto generate the nebula-python api doc.
the doc looks like: