-
Notifications
You must be signed in to change notification settings - Fork 2.2k
feat(hubble): executor push/pull user integration #4770
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
Conversation
75c3366
to
9171fde
Compare
Latency summaryCurrent PR yields:
Breakdown
Backed by latency-tracking. Further commits will update this comment. |
Codecov Report
@@ Coverage Diff @@
## master #4770 +/- ##
==========================================
- Coverage 87.67% 87.65% -0.02%
==========================================
Files 119 119
Lines 8809 8832 +23
==========================================
+ Hits 7723 7742 +19
- Misses 1086 1090 +4
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
9171fde
to
6b9dfbc
Compare
tests/unit/hubble/test_hubio.py
Outdated
@@ -212,6 +223,41 @@ def _mock_post(url, data, headers=None, stream=True): | |||
) | |||
|
|||
|
|||
def test_push_with_authorization(mocker, monkeypatch, tmpdir): | |||
clear_function_caches() | |||
os.environ['JINA_HUB_ROOT'] = str(tmpdir) |
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.
u should use a fixture to make sure that this env variable is properly set and unset at the beginning and at the end of the test regardless of the success of failure of it
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.
I created auth_token
fixture. Please check it out.
Ref https://github.com/jina-ai/hubble/issues/355