8000 test: add tests for issue 2295 by JoanFM · Pull Request #2306 · jina-ai/serve · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

test: add tests for issue 2295 #2306

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

Merged
merged 2 commits into from
Apr 16, 2021
Merged

test: add tests for issue 2295 #2306

merged 2 commits into from
Apr 16, 2021

Conversation

JoanFM
Copy link
Contributor
@JoanFM JoanFM commented Apr 13, 2021

No description provided.

@JoanFM JoanFM requested a review from a team as a code owner April 13, 2021 08:34
@JoanFM JoanFM requested review from CatStark and deepankarm April 13, 2021 08:34
@jina-bot jina-bot added size/S area/testing This issue/PR affects testing labels Apr 13, 2021
@codecov
Copy link
codecov bot commented Apr 13, 2021

Codecov Report

Merging #2306 (b90b314) into master (82d12e1) will increase coverage by 0.03%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2306      +/-   ##
==========================================
+ Coverage   90.83%   90.86%   +0.03%     
==========================================
  Files         222      222              
  Lines       11740    11740              
==========================================
+ Hits        10664    10668       +4     
+ Misses       1076     1072       -4     
Flag Coverage Δ
daemon 51.22% <ø> (ø)
jina 91.03% <ø> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
jina/types/document/__init__.py 96.35% <0.00%> (+0.22%) ⬆️
jina/jaml/parsers/flow/legacy.py 50.00% <0.00%> (+6.81%) ⬆️

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 82d12e1...b90b314. Read the comment docs.

@JoanFM
Copy link
Contributor Author
JoanFM commented Apr 13, 2021

Test with proposed quick fix for #2295

@github-actions
Copy link
github-actions bot commented Apr 13, 2021

Latency summary

Current PR yields:

  • 😶 index QPS at 994, delta to last 3 avg.: +0%
  • 😶 query QPS at 14, delta to last 3 avg.: -4%

Breakdown

Version Index QPS Query QPS
current 994 14
1.1.5 984 15
1.1.4 996 14

Backed by latency-tracking. Further commits will update this comment.

@cristianmtr
Copy link
Contributor

Closes #2295 ?

@JoanFM
Copy link
Contributor Author
JoanFM commented Apr 13, 2021

Closes #2295 ?

it proposes a workaround for 2295, but the underlying problem is in #2299



class SearchDocIndexer(BinaryPbIndexer):
def query(self, jina_id: str = None, mongo_ids: List[str] = None):
Copy link
Contributor

Choose a reason for hiding this comment

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

Why only 1 jina_id but multiple mongo_ids?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is provided by the client, is just an example


def post_init(self):
super().post_init()
self.name = 'doc_idx_file'
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe make a comment for this to explain why it was necessary and link to the issue that describes the underlying problem

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good point, done

@JoanFM JoanFM merged commit cad4030 into master Apr 16, 2021
@JoanFM JoanFM deleted the issue_2295 branch April 16, 2021 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/testing This issue/PR affects testing size/S
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0