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

fix: remove warning jina version missing from manifest #1619

Merged
merged 1 commit into from
Jan 8, 2021

Conversation

JoanFM
Copy link
Member

@JoanFM JoanFM commented Jan 7, 2021

No description provided.

@JoanFM JoanFM requested a review from a team as a code owner January 7, 2021 07:38
@jina-bot jina-bot added size/XS area/core This issue/PR affects the core codebase component/docker labels Jan 7, 2021
@github-actions
Copy link

github-actions bot commented Jan 7, 2021

Latency summary

Current PR yields:

  • 😶 index QPS at 1757, delta to last 3 avg.: -2%
  • 😶 query QPS at 33, delta to last 3 avg.: -2%

Breakdown

Version Index QPS Query QPS
current 1757 33
0.9.2 1811 34
0.9.1 1787 33
0.8.22 1806 34

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

@@ -31,7 +31,7 @@

_allowed = {'name', 'description', 'author', 'url',
'documentation', 'version', 'vendor', 'license', 'avatar',
'jina_version', 'platform', 'update', 'keywords'}
'platform', 'update', 'keywords'}
Copy link
Contributor

Choose a reason for hiding this comment

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

If it's not there will it be allowed to be added?

Copy link
Member Author

Choose a reason for hiding this comment

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

Well, we did accept to remove this right? I just want to remove the warning because it seems missleading

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok. Then maybe _allowed is the wrong name for this variable. It should be _expected or something like that

Copy link
Member Author

Choose a reason for hiding this comment

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

I think we do not need all of them

Copy link
Contributor

Choose a reason for hiding this comment

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

But then it's not about being allowed, it's about being required, perhaps

Copy link
Member Author

Choose a reason for hiding this comment

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

I do not know what's the best logic or if there are required fields @deepankarm ?

Copy link
Contributor

Choose a reason for hiding this comment

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

We have a list of required & a list of _allowed. ValueError is raised if something is missing from required & a warning is given if something is missing from _allowed.
https://github.com/jina-ai/jina/blob/master/jina/docker/hubio.py#L590

@codecov
Copy link

codecov bot commented Jan 7, 2021

Codecov Report

Merging #1619 (a28a64f) into master (0685b1d) will increase coverage by 0.87%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1619      +/-   ##
==========================================
+ Coverage   84.14%   85.01%   +0.87%     
==========================================
  Files         127      127              
  Lines        6642     6701      +59     
==========================================
+ Hits         5589     5697     +108     
+ Misses       1053     1004      -49     
Impacted Files Coverage Δ
jina/docker/hubio.py 73.10% <ø> (+9.77%) ⬆️
jina/logging/sse.py 92.85% <0.00%> (-2.46%) ⬇️
jina/logging/profile.py 69.84% <0.00%> (-0.56%) ⬇️
jina/flow/base.py 86.58% <0.00%> (-0.41%) ⬇️
jina/drivers/craft.py 100.00% <0.00%> (ø)
jina/types/ndarray/generic.py 100.00% <0.00%> (ø)
jina/drivers/encode.py 94.91% <0.00%> (+0.08%) ⬆️
jina/enums.py 96.59% <0.00%> (+0.09%) ⬆️
jina/jaml/__init__.py 95.93% <0.00%> (+0.09%) ⬆️
jina/clients/helper.py 94.00% <0.00%> (+0.12%) ⬆️
... and 14 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 0685b1d...7d7e2bc. Read the comment docs.

Copy link
Member

@nan-wang nan-wang left a comment

Choose a reason for hiding this comment

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

LGTM👍

@nan-wang nan-wang merged commit 5edbce9 into master Jan 8, 2021
@nan-wang nan-wang deleted the rm-jina-version-manifest branch January 8, 2021 03:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/core This issue/PR affects the core codebase component/docker size/XS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants