Skip to content

feat(preprod): Add v0 of size issues#104953

Merged
chromy merged 1 commit intomasterfrom
chromy/2025-12-09-issues-v2-part05
Dec 15, 2025
Merged

feat(preprod): Add v0 of size issues#104953
chromy merged 1 commit intomasterfrom
chromy/2025-12-09-issues-v2-part05

Conversation

@chromy
Copy link
Copy Markdown
Contributor

@chromy chromy commented Dec 15, 2025

This adds V0 of preprod size issues to Sentry.
The logic is behind a feature flag (organizations:preprod-issues)
In this initial version:

  • The issue text/metadata is very minimal
  • The limit is hardcoded

@chromy chromy requested a review from a team as a code owner December 15, 2025 14:30
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Dec 15, 2025
@chromy chromy changed the title feat(preprod): Add issues feat(preprod): Add v0 of size issues Dec 15, 2025
@chromy chromy force-pushed the chromy/2025-12-09-issues-v2-part05 branch from 65ccf9d to 24968f9 Compare December 15, 2025 14:33

id = uuid4().hex
event_id = uuid4().hex
fingerprint = uuid4().hex

This comment was marked as outdated.

Copy link
Copy Markdown
Contributor

@runningcode runningcode left a comment

Choose a reason for hiding this comment

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

Looks good! just had two questions

event_data = {
"event_id": event_id,
"project_id": project_id,
"platform": "other",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

should platform be something like ios/android?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yeah I think so but I'm not 100% on what platform is for here - so I want to get Richard's opinion on it. Will leave for now and follow up.

occurrence=occurrence,
event_data=event_data,
)
issue_count += 1
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

so the install_delta and download delta being higher than the threshold are two separate issues? why is that? isn't the cause the same?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good point, I think the idea is one group per cause - so I think having two occurrences for regressions is fine - but might be that the fingerprint should be the same for both issues (so they get grouped together). I'll think the best way is to test it out and see what feels right.

@codecov
Copy link
Copy Markdown

codecov bot commented Dec 15, 2025

Codecov Report

❌ Patch coverage is 66.03774% with 18 lines in your changes missing coverage. Please review.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/sentry/preprod/size_analysis/tasks.py 48.38% 16 Missing ⚠️
src/sentry/preprod/size_analysis/issues.py 90.90% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           master   #104953      +/-   ##
===========================================
+ Coverage   79.38%    80.44%   +1.05%     
===========================================
  Files        9386      9390       +4     
  Lines      402943    403422     +479     
  Branches    25915     25915              
===========================================
+ Hits       319883    324537    +4654     
+ Misses      82612     78437    -4175     
  Partials      448       448              

@chromy chromy merged commit 43f79ce into master Dec 15, 2025
67 checks passed
@chromy chromy deleted the chromy/2025-12-09-issues-v2-part05 branch December 15, 2025 15:13
@github-actions github-actions bot locked and limited conversation to collaborators Dec 31, 2025
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants