8000 test: added a test for docmatrix in the tail pea by maximilianwerk · Pull Request #2537 · jina-ai/serve · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

test: added a test for docmatrix in the tail pea #2537

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 6 commits into from
Jun 2, 2021

Conversation

maximilianwerk
Copy link
Member

This is a test showcasing, how a MatchMerger in a TailPea could look like. Beware, that replica/sharding for (1,2) and (2,1) are broken. That needs to be fixed before 2.0 release.

@maximilianwerk maximilianwerk requested a review from a team as a code owner June 1, 2021 11:59
@jina-bot jina-bot added size/S area/testing This issue/PR affects testing labels Jun 1, 2021
@maximilianwerk maximilianwerk mentioned this pull request Jun 1, 2021
36 tasks
@codecov
Copy link
codecov bot commented Jun 1, 2021

Codecov Report

Merging #2537 (bd6a723) into master (7d6c8ff) will increase coverage by 0.61%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2537      +/-   ##
==========================================
+ Coverage   85.67%   86.29%   +0.61%     
==========================================
  Files         152      152              
  Lines        9462     9503      +41     
==========================================
+ Hits         8107     8201      +94     
+ Misses       1355     1302      -53     
Flag Coverage Δ
daemon 46.66% <ø> (-0.16%) ⬇️
jina 86.30% <ø> (+0.66%) ⬆️

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

Impacted Files Coverage Δ
jina/types/arrays/document.py 83.88% <0.00%> (+0.27%) ⬆️
jina/types/document/__init__.py 96.30% <0.00%> (+0.29%) ⬆️
jina/flow/base.py 90.59% <0.00%> (+0.91%) ⬆️
jina/peapods/runtimes/zmq/zed.py 93.80% <0.00%> (+0.95%) ⬆️
jina/importer.py 80.40% <0.00%> (+1.00%) ⬆️
jina/types/document/generators.py 93.33% <0.00%> (+1.33%) ⬆️
jina/peapods/pods/__init__.py 90.03% <0.00%> (+4.53%) ⬆️
jina/peapods/pods/compound.py 89.47% <0.00%> (+21.80%) ⬆️

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 7d6c8ff...bd6a723. Read the comment docs.

cristianmtr
cristianmtr previously approved these changes Jun 1, 2021
@JoanFM
Copy link
Contributor
JoanFM commented Jun 1, 2021

(1, 2) should work now.

What I am not sure about with replicas. Right now the HeadPea or TailPea of a CompoundPod are not equipped with anything (which is an assumption of the polling types)

JoanFM
JoanFM previously requested changes Jun 1, 2021
@cristianmtr cristianmtr force-pushed the test-docs-matrix-tail-pea branch from 1a9f369 to 921306b Compare June 1, 2021 12:58
@pytest.mark.timeout(5)
@pytest.mark.parametrize('num_replicas, num_shards', [(1, 1), (2, 2)])
def test_sharding_tail_pea(num_replicas, num_shards):
"""TODO(Maximilian): Make (1, 2) and (2, 1) also workable"""
Copy link
Contributor

Choose a reason for hiding this comment

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

opened an issue for this #2547

@maximilianwerk maximilianwerk merged commit 3b32366 into master Jun 2, 2021
@maximilianwerk maximilianwerk deleted the test-docs-matrix-tail-pea branch June 2, 2021 09:27
JoanFM pushed a commit that referenced this pull request Jun 3, 2021
* test: added a test for docmatrix in the tail pea

* test: added also merge before in follow up pod

* test: added multimodal version of uses before

* test: fix parametrization and init param

* ci: ignore test file in black

* test: added black back to tests

Co-authored-by: cristian <cristianmtr@users.noreply.github.com>
Co-authored-by: cristian mtr <cristian.mitroi@jina.ai>
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.

4 participants
0