Skip to content

test(android): Collect UI test breadcrumbs in a thread-safe list (JAVA-552) - #6671

Draft
runningcode wants to merge 1 commit into
9.x.xfrom
no/java-552-user-interaction-tests-flake
Draft

runningcode wants to merge 1 commit into
9.x.xfrom
no/java-552-user-interaction-tests-flake

Conversation

@runningcode

@runningcode runningcode commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

📜 Description

UserInteractionTests collected breadcrumbs in a plain mutableListOf from beforeBreadcrumb, which runs on whichever thread adds the breadcrumb. The Compose click and swipe tests could read the list while another thread was adding to it. They now use a CopyOnWriteArrayList.

Test-only, no SDK sites.

💡 Motivation and Context

This came up during the catch (Throwable) audit. It replaces the UserInteractionTests change in #6562.

This PR is independent of its siblings and they can merge in any order:

💚 How did you test it?

  • The Android UI tests in CI.

📝 Checklist

  • I added GH Issue ID & Linear ID
  • I added tests to verify the changes.
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled.
  • I updated the docs if needed.
  • I updated the wizard if needed.
  • Review from the native team if needed.
  • No breaking change or entry added to the changelog.
  • No breaking change for hybrid SDKs or communicated to hybrid SDKs.
  • Public API changes reviewed by another Mobile SDK team member or implemented according to the develop docs spec.

🔮 Next steps

#skip-changelog

🤖 Generated with Claude Code

beforeBreadcrumb runs on whichever thread adds the breadcrumb, so the Compose click and swipe tests could read the list while another thread was adding to it.

Refs #5513

Refs JAVA-552

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@linear-code

linear-code Bot commented Nov 18, 2026

Copy link
Copy Markdown

JAVA-552

@github-actions github-actions Bot added risk: low PR risk score: low and removed risk: low PR risk score: low labels Nov 18, 2026
@sentry

sentry Bot commented Nov 18, 2026

Copy link
Copy Markdown

📲 Install Builds

Android

🔗 App Name App ID Version Configuration
SDK Size io.sentry.tests.size 8.64.0 (1) release

⚙️ sentry-android Build Distribution Settings

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: low PR risk score: low

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant