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

Ignore 0 failures and 0s latency in daily slack reports #3599

Merged
merged 6 commits into from
May 14, 2024

Conversation

taralika
Copy link
Contributor

@taralika taralika commented May 12, 2024

Title

Ignore metrics values that are 0
cc: @msabramo

Relevant issues

Should fix #3598

Type

🐛 Bug Fix

Changes

Testing

Notes

Pre-Submission Checklist (optional but appreciated):

  • I have included relevant documentation updates (stored in /docs/my-website)

OS Tests (optional but appreciated):

  • Tested on Windows
  • Tested on MacOS
  • Tested on Linux

Copy link

vercel bot commented May 12, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
litellm ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 14, 2024 5:43am

since it's not guaranteed to always be 5, it will be at most 5, but could be less than 5 (if some values are 0s now that we ignore 0s)
@krrishdholakia
Copy link
Contributor

Is this ready for review? @taralika

And can we have a simple unit test for this -

async def test_daily_reports_completion(slack_alerting):

@krrishdholakia
Copy link
Contributor

Thanks for adding the tests @taralika - if you can share a screenshot of it passing for you, this should be good to merge in

Also fixed the issue that MagicMock does not create asynchronous mocks by default.
@taralika
Copy link
Contributor Author

@krrishdholakia
image

@krrishdholakia krrishdholakia merged commit adaafd7 into BerriAI:main May 14, 2024
2 checks passed
@taralika taralika deleted the patch-1 branch May 14, 2024 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Do not send Slack daily report for 0 failed requests and 0s latency
2 participants