Skip to content

🤖 Reduce Query Chunk Size in update_user_reports.py #67259

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

Conversation

seer-by-sentry[bot]
Copy link
Contributor

👋 Hi there! This PR was automatically generated 🤖

Triggered by tillman.elser@sentry.io

Fixes SENTRY-2Z31

To address the 'QuerySizeExceeded' error, the chunk size for processing event IDs in the 'update_user_reports.py' script needs to be reduced. This will prevent the query from exceeding the database's maximum allowed size by processing fewer event IDs in each chunk.

The steps that were performed:

  1. Reduce MAX_EVENTS value

📣 Instructions for the reviewer which is you, yes you:

  • If these changes were incorrect, please close this PR and comment explaining why.
  • If these changes were incomplete, please continue working on this PR then merge it.
  • If you are feeling confident in my changes, please merge this PR.

This will greatly help us improve the autofix system. Thank you! 🙏

If there are any questions, please reach out to the AI/ML Team on #proj-autofix

🤓 Stats for the nerds:

Prompt tokens: 51166
Completion tokens: 533
Total tokens: 51699

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Mar 19, 2024
Copy link

codecov bot commented Mar 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.32%. Comparing base (7acf3a1) to head (f6ef404).
Report is 937 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #67259      +/-   ##
==========================================
- Coverage   84.33%   84.32%   -0.01%     
==========================================
  Files        5307     5307              
  Lines      237152   237152              
  Branches    41015    41015              
==========================================
- Hits       199992   199986       -6     
- Misses      36942    36948       +6     
  Partials      218      218              
Files Coverage Δ
src/sentry/tasks/update_user_reports.py 100.00% <100.00%> (ø)

... and 6 files with indirect coverage changes

@getsantry getsantry bot added the Stale label Apr 10, 2024
@getsantry
Copy link
Contributor

getsantry bot commented Apr 10, 2024

This pull request has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you add the label WIP, I will leave it alone unless WIP is removed ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

@getsantry getsantry bot closed this Apr 18, 2024
@github-actions github-actions bot locked and limited conversation to collaborators May 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Scope: Backend Automatically applied to PRs that change backend components Stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants