Skip to content

feat(preprod): skip renames from showing in diff#104306

Merged
trevor-e merged 9 commits intomasterfrom
telkins/skip-renames
Dec 8, 2025
Merged

feat(preprod): skip renames from showing in diff#104306
trevor-e merged 9 commits intomasterfrom
telkins/skip-renames

Conversation

@trevor-e
Copy link
Copy Markdown
Member

@trevor-e trevor-e commented Dec 3, 2025

This skips renames (same file hash, different path) from showing up in the comparison results. A recent Xcode26 change made this way more prominent since every compilation changes a generated UUID in app icon image paths.

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Dec 3, 2025
@codecov
Copy link
Copy Markdown

codecov bot commented Dec 3, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@             Coverage Diff             @@
##           master   #104306      +/-   ##
===========================================
+ Coverage   80.53%    80.61%   +0.07%     
===========================================
  Files        9350      9332      -18     
  Lines      400071    399195     -876     
  Branches    25658     25474     -184     
===========================================
- Hits       322203    321808     -395     
+ Misses      77400     76937     -463     
+ Partials      468       450      -18     

# Conflicts:
#	src/sentry/preprod/size_analysis/models.py

When a file with the same hash exists at different paths in head vs base,
we consider it a rename. However, if there are more paths on one side
(e.g., file was renamed AND duplicated), we only mark min(head, base)
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This rename + duplication case I could see happening in real iOS apps with how folks duplicate frameworks across plugins so felt was worth handling.

@trevor-e trevor-e marked this pull request as ready for review December 5, 2025 23:39
@trevor-e trevor-e requested a review from a team as a code owner December 5, 2025 23:39

###
# Size analysis results (non-comparison)
# Keep in sync with https://github.com/getsentry/launchpad/blob/main/src/launchpad/size/models/common.py#L92
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Love some "strict" type safety 😂

@trevor-e trevor-e merged commit 9e72a7d into master Dec 8, 2025
68 checks passed
@trevor-e trevor-e deleted the telkins/skip-renames branch December 8, 2025 21:59
ryan953 pushed a commit that referenced this pull request Dec 9, 2025
This skips renames (same file hash, different path) from showing up in
the comparison results. A recent Xcode26 change made this way more
prominent since every compilation changes a generated UUID in app icon
image paths.
@github-actions github-actions bot locked and limited conversation to collaborators Dec 24, 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