Skip to content

Conversation

@trevor-e
Copy link
Member

@trevor-e trevor-e commented Nov 11, 2025

Resolves EME-629

For now this just handles skipping the treemap diff item comparisons, although we also spoke about perhaps skipping the diff altogether if the major versions differ.

@linear
Copy link

linear bot commented Nov 11, 2025

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Nov 11, 2025
diff_items: list[DiffItem]
size_metric_diff_item: SizeMetricDiffItem
skipped_diff_item_comparison: bool
head_analysis_version: str | None
Copy link
Member Author

Choose a reason for hiding this comment

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

Wasn't sure if the analysis versions should go in SizeMetricDiffItem or not.

class ComparisonResults(BaseModel):
diff_items: list[DiffItem]
size_metric_diff_item: SizeMetricDiffItem
skipped_diff_item_comparison: bool
Copy link
Member Author

Choose a reason for hiding this comment

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

Can look for this field in the frontend to show a nice UI around "You should rebase..."

@codecov
Copy link

codecov bot commented Nov 11, 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   #103195      +/-   ##
===========================================
- Coverage   80.67%    80.67%   -0.01%     
===========================================
  Files        9241      9241              
  Lines      393627    393670      +43     
  Branches    25053     25053              
===========================================
+ Hits       317543    317576      +33     
- Misses      75622     75632      +10     
  Partials      462       462              

@trevor-e trevor-e marked this pull request as ready for review November 11, 2025 23:57
@trevor-e trevor-e requested a review from a team as a code owner November 11, 2025 23:57
head_size = head_element.size
if head_size == 0:
continue
if not skip_diff_item_comparison:
Copy link
Member

Choose a reason for hiding this comment

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

I think we should log the fact we're skipping if so

@trevor-e trevor-e merged commit 95d1c03 into master Nov 12, 2025
66 checks passed
@trevor-e trevor-e deleted the telkins/compare-mismatch-version branch November 12, 2025 15:28
Jesse-Box pushed a commit that referenced this pull request Nov 12, 2025
)

Resolves EME-629

For now this just handles skipping the treemap diff item comparisons,
although we also spoke about perhaps skipping the diff altogether if the
major versions differ.
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