Skip to content

chore(seer): add seer scanner rate limit #93652

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 8 commits into from
Jun 16, 2025
Merged

Conversation

roaga
Copy link
Member

@roaga roaga commented Jun 16, 2025

Adds a rate limit for starting seer scanner tasks (default 1000 per hour per project) to prevent surprise bills.

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Jun 16, 2025
Copy link

codecov bot commented Jun 16, 2025

Codecov Report

Attention: Patch coverage is 87.50000% with 9 lines in your changes missing coverage. Please review.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
...try/integrations/utils/issue_summary_for_alerts.py 50.00% 3 Missing ⚠️
src/sentry/seer/issue_summary.py 57.14% 3 Missing ⚠️
src/sentry/tasks/post_process.py 50.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #93652      +/-   ##
==========================================
- Coverage   88.05%   88.01%   -0.04%     
==========================================
  Files       10328    10328              
  Lines      597122   595732    -1390     
  Branches    23141    23141              
==========================================
- Hits       525778   524323    -1455     
- Misses      70851    70916      +65     
  Partials      493      493              

@roaga roaga marked this pull request as ready for review June 16, 2025 21:16
@roaga roaga requested review from a team as code owners June 16, 2025 21:16
@roaga roaga merged commit fee4002 into master Jun 16, 2025
63 checks passed
@roaga roaga deleted the seer/scanner-rate-limit branch June 16, 2025 22:01
Copy link

sentry-io bot commented Jun 17, 2025

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

  • ‼️ OperationalError: connection to server at "127.0.0.1", port 6432 failed: FATAL: no more connections allowed (max_client_conn) digests:sentry.tasks.digests.deliver_digest View Issue
  • ‼️ OperationalError: connection to server at "127.0.0.1", port 6432 failed: FATAL: no more connections allowed (max_client_conn) digests:sentry.tasks.digests.deliver_digest View Issue

Did you find this useful? React with a 👍 or 👎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants