Skip to content

RUM-9345: Use reflection to retrieve semantics information in modifier#2667

Merged
ambushwork merged 1 commit into
developfrom
yl/fix-action-tracking-crash
May 22, 2025
Merged

RUM-9345: Use reflection to retrieve semantics information in modifier#2667
ambushwork merged 1 commit into
developfrom
yl/fix-action-tracking-crash

Conversation

@ambushwork

Copy link
Copy Markdown
Member

What does this PR do?

Using internal field collapsedSemantics of LayoutNode may not work in all the build types, so this PR replaces it with classic reflection to retrieve the additional semantics information for the node.

Also fix the catch Throwable instead of Exception.

Motivation

RUM-9345

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • Make sure you discussed the feature or bugfix with the maintaining team in an Issue
  • Make sure each commit and the PR mention the Issue number (cf the CONTRIBUTING doc)

@ambushwork
ambushwork force-pushed the yl/fix-action-tracking-crash branch from f47f937 to c4d73c0 Compare May 22, 2025 09:07
@ambushwork
ambushwork marked this pull request as ready for review May 22, 2025 09:37
@ambushwork
ambushwork requested review from a team as code owners May 22, 2025 09:37
0xnm
0xnm previously approved these changes May 22, 2025
@ambushwork
ambushwork force-pushed the yl/fix-action-tracking-crash branch from c4d73c0 to 67f98bf Compare May 22, 2025 12:12
0xnm
0xnm previously approved these changes May 22, 2025
@ambushwork
ambushwork force-pushed the yl/fix-action-tracking-crash branch from 67f98bf to d88757b Compare May 22, 2025 12:28
@codecov-commenter

codecov-commenter commented May 22, 2025

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 21.05263% with 15 lines in your changes missing coverage. Please review.

Project coverage is 69.94%. Comparing base (c696aa0) to head (d88757b).
Report is 150 commits behind head on develop.

Files with missing lines Patch % Lines
.../android/compose/internal/utils/LayoutNodeUtils.kt 21.05% 11 Missing and 4 partials ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2667      +/-   ##
===========================================
- Coverage    69.97%   69.94%   -0.03%     
===========================================
  Files          820      820              
  Lines        30637    30657      +20     
  Branches      5156     5162       +6     
===========================================
+ Hits         21437    21441       +4     
- Misses        7764     7775      +11     
- Partials      1436     1441       +5     
Files with missing lines Coverage Δ
.../android/compose/internal/utils/LayoutNodeUtils.kt 43.64% <21.05%> (-7.58%) ⬇️

... and 37 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ambushwork
ambushwork requested a review from 0xnm May 22, 2025 13:28
@ambushwork
ambushwork merged commit 5376af1 into develop May 22, 2025
@ambushwork
ambushwork deleted the yl/fix-action-tracking-crash branch May 22, 2025 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants