8000 test(logging): add profiling test by Yongxuanzhang · Pull Request #2000 · jina-ai/serve · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

test(logging): add profiling test #2000

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
Feb 22, 2021
Merged

Conversation

Yongxuanzhang
Copy link
Contributor

No description provided.

@jina-bot jina-bot added size/S area/testing This issue/PR affects testing labels Feb 20, 2021
@codecov
Copy link
codecov bot commented Feb 20, 2021

Codecov Report

Merging #2000 (0a4a714) into master (5797167) will decrease coverage by 18.35%.
The diff coverage is 86.56%.

Impacted file tree graph

@@             Coverage Diff             @@
##           master    #2000       +/-   ##
===========================================
- Coverage   86.53%   68.17%   -18.36%     
===========================================
  Files         148      151        +3     
  Lines        7084     7146       +62     
===========================================
- Hits         6130     4872     -1258     
- Misses        954     2274     +1320     
Flag Coverage Δ
jina 68.17% <86.56%> (?)

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

Impacted Files Coverage Δ
jina/executors/clients.py 33.33% <ø> (ø)
jina/executors/compound.py 77.86% <ø> (-11.46%) ⬇️
jina/executors/crafters/__init__.py 100.00% <ø> (ø)
jina/executors/devices.py 56.86% <ø> (ø)
jina/executors/encoders/numeric/__init__.py 42.42% <ø> (ø)
jina/executors/encoders/tfserving.py 63.15% <ø> (ø)
jina/executors/evaluators/running_stats.py 84.00% <ø> (-12.00%) ⬇️
jina/executors/indexers/keyvalue.py 98.70% <ø> (ø)
jina/executors/indexers/vector.py 87.87% <ø> (-6.57%) ⬇️
jina/executors/rankers/__init__.py 62.79% <ø> (-30.24%) ⬇️
... and 82 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 4a2623c...f09578b. Read the comment docs.

@github-actions
Copy link

Latency summary

Current PR yields:

  • 😶 index QPS at 1081, delta to last 3 avg.: -1%
  • 😶 query QPS at 18, delta to last 3 avg.: +0%

Breakdown

Version Index QPS Query QPS
current 1081 18
1.0.2 1086 17
1.0.1 1110 18

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

@Yongxuanzhang Yongxuanzhang marked this pull request as ready for review February 20, 2021 23:29
@Yongxuanzhang Yongxuanzhang requested a review from a team as a code owner February 20, 2021 23:29
@Yongxuanzhang Yongxuanzhang requested review from CatStark, BastinJafari, JoanFM and maximilianwerk and removed request for BastinJafari February 20, 2021 23:29
def foo():
print(1)
foo()
assert "memory" in caplog.text
Copy link
Contributor

Choose a reason for hiding this comment

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

please use single quote

def test_logging_profile_profiling(caplog, default_logger_propagate):
@profiling
def foo():
print(1)
Copy link
Contributor

Choose a reason for hiding this comment

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

we could allocate some memory here or sleep for some time to showcase how it is used and how the memory and some time is returned.

Tests tend to be good way to clarify behavior

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure! I add some changes. Not sure if this is ok

@Yongxuanzhang Yongxuanzhang requested a review from JoanFM February 22, 2021 01:20
@hanxiao hanxiao merged commit 1198268 into master Feb 22, 2021
@hanxiao hanxiao deleted the test-logging-profile-profiling branch February 22, 2021 02:02
@hanxiao
Copy link
Member
hanxiao commented Feb 22, 2021

for some reason, merging this PR breaks the test_logging ci, reverting now

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