Skip to content

Update v9 branch (with conflict resolutions) - #6788

Merged
adinauer merged 24 commits into
9.x.xfrom
sync/main-to-9.x.x-2026-11-26
Nov 26, 2026
Merged

adinauer merged 24 commits into
9.x.xfrom
sync/main-to-9.x.x-2026-11-26

Conversation

@adinauer

Copy link
Copy Markdown
Member

📜 Description

Sync main through 55a061525b into 9.x.x. The head branch starts from main and merges 9.x.x, so conflict resolutions and any follow-up fixes can be committed without changing main.

Please merge this PR with a merge commit, not a squash, so Git records the synchronized main history.

The merge commit 4425a606eb resolves seven conflicts:

  • Keep the v9-specific Unreleased changelog entries, add the current OpenTelemetry bump, and retain main's 8.66.0 release section.
  • Combine main's dependency updates with v9's Java 11, Kotlin 2.1 API, minSdk 24, R8 override, and Spring Boot 3.4+ compatibility settings.
  • Preserve both the Android NDK crash-service process detection from main and v9's shared LoadClass migration.
  • Preserve both v9's Sentry span-kind mapping and main's messaging.system.name normalization in the OpenTelemetry exporter.
  • Use main's newer exact-boundary monotonic performance-collection timeout implementation and tests.

💡 Motivation and Context

Keep the v9 development branch current with main while retaining the breaking changes and compatibility decisions already made for v9.

💚 How did you test it?

  • make format api
  • ./gradlew check

📝 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

Review the conflict resolutions and merge with a merge commit.

#skip-changelog

0xadam-brown and others added 23 commits November 24, 2026 10:53
…6749)

Miscellaneous small refactors in connection with our (forthcoming) introduction of built-in BackStackEntryMappers.
* docs(agents): Add comment, merge, test scope and PR target rules

* docs(agents): Drop --info from test skill and dedupe post-merge checks
Bugbot is no longer used for pull request reviews. Move its review
guidance to a root REVIEWS.md that any review agent can use, and link
it from AGENTS.md.

Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: Antonis Lilis <[email protected]>
…updates (#6744)

Bumps the github-actions group with 5 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [actions/setup-java](https://github.com/actions/setup-java) | `6.2.0` | `6.3.0` |
| [github/codeql-action/init](https://github.com/github/codeql-action) | `4.39.3` | `4.39.4` |
| [github/codeql-action/analyze](https://github.com/github/codeql-action) | `4.39.3` | `4.39.4` |
| [actions/create-github-app-token](https://github.com/actions/create-github-app-token) | `3.3.0` | `3.4.0` |
| [getsentry/craft](https://github.com/getsentry/craft) | `3.12.0` | `3.13.0` |



Updates `actions/setup-java` from 6.2.0 to 6.3.0
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](actions/setup-java@v6.2.0...d1374f8)

Updates `github/codeql-action/init` from 4.39.3 to 4.39.4
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](github/codeql-action@33d7b85...1bd86f2)

Updates `github/codeql-action/analyze` from 4.39.3 to 4.39.4
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](github/codeql-action@33d7b85...1bd86f2)

Updates `actions/create-github-app-token` from 3.3.0 to 3.4.0
- [Release notes](https://github.com/actions/create-github-app-token/releases)
- [Changelog](https://github.com/actions/create-github-app-token/blob/main/CHANGELOG.md)
- [Commits](actions/create-github-app-token@64ab729...f418cff)

Updates `getsentry/craft` from 3.12.0 to 3.13.0
- [Release notes](https://github.com/getsentry/craft/releases)
- [Changelog](https://github.com/getsentry/craft/blob/master/CHANGELOG.md)
- [Commits](getsentry/craft@0da9309...b2a6fa4)

---
updated-dependencies:
- dependency-name: actions/setup-java
  dependency-version: 6.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: github-actions
- dependency-name: github/codeql-action/init
  dependency-version: 4.39.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github-actions
- dependency-name: github/codeql-action/analyze
  dependency-version: 4.39.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github-actions
- dependency-name: actions/create-github-app-token
  dependency-version: 3.4.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: github-actions
- dependency-name: getsentry/craft
  dependency-version: 3.13.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [io.sentry.android.gradle](https://github.com/getsentry/sentry-android-gradle-plugin) from 6.13.0 to 6.27.0.
- [Release notes](https://github.com/getsentry/sentry-android-gradle-plugin/releases)
- [Changelog](https://github.com/getsentry/sentry-android-gradle-plugin/blob/main/CHANGELOG.md)
- [Commits](getsentry/sentry-android-gradle-plugin@6.13.0...6.27.0)

---
updated-dependencies:
- dependency-name: io.sentry.android.gradle
  dependency-version: 6.27.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* fix(android): Start the NDK crash service without waiting for it

`SentryNdkCrashService.start` waited up to 10 s for the service to
connect and configure, on the thread that calls `SentryAndroid.init`,
usually the main thread. It now hands the app's ends to native right
away, and the service takes its ends when it connects. If it doesn't
connect within 10 s, its ends are closed so that native sends and the
crash handler fail at once, and a later connection reattaches.

Native init in sentry-native 1.0.0-beta.1 still waits for the daemon.

* fix(android): Run the NDK crash service below API 30

Nothing in the crash service needs API 30. Drop the check in
`SentryNdkOutproc.init()`, and pass the database directory to
`SentryNdk.createCrashShm()` so that the crash IPC falls back to a file
on kernels without memfd.

`Application.getProcessName()` needs API 28, so read the process name
from `/proc/self/cmdline` on older versions to skip SDK init in the
crash service process.

* ci(temp): Publish sentry-native-ndk-outproc from the API 21 branch

DO NOT MERGE (revert after releasing getsentry/sentry-native#2301)

`SentryNdk.createCrashShm(String)` is not in a sentry-native release
yet. Build `sentry-native-ndk-outproc` from the sentry-native branch
and publish it to Maven Local under a version that Maven Central does
not have, so that Gradle resolves the local build.

* Update CHANGELOG.md

* fix(android): Rebind the NDK crash service after a late reattach

A service that connected after the 10 s timeout reattached, but its
connection never counted as configured, so `onBindingDied` didn't bind
it again and out-of-process crash handling stayed down for the rest of
the session.

* fix(android): Skip the NDK crash service process check without outproc

Below API 28, the check read `/proc/self/cmdline` on the thread that
calls `SentryAndroid.init`, usually the main thread, for every app,
which StrictMode flags as a disk read. Only apps with
`sentry-android-ndk-outproc` have the crash service process, so check
that its class is available first.

* fix(android): Use the timer executor for the NDK crash service timeout

The connect timeout ran on the executor that also sends cached
envelopes, so a slow send could delay it. The timer executor is
dedicated to timeouts.

* Format code

* Update CHANGELOG.md

Move the future item into its own separate section to reduce changelog
conflicts.

* fix(android): Close the NDK crash service ends on close

`SentryNdkCrashService.start` returns before the service connects, so
the service's ends of the crash IPC wait for the connection or the 10 s
timeout. `SentryNdkOutproc.close` only unbound the service, and a
non-restarting `Sentry.close` drops the pending timeout, which left the
descriptors to the finalizer. Close the ends that no connection took
when unbinding.

* fix(android): Close the NDK crash service ends if unbinding throws

`Context.unbindService` throws for a connection that is not registered,
which skipped closing the service's ends of the crash IPC.

* test(android): Set the DSN in the NDK crash service process name test

The test relied on the manifest DSN, which `ContextUtils` caches
statically per Robolectric SDK sandbox. When another test class had
cached the app info without a DSN first, `SentryAndroid.init` failed.

* chore(deps): Bump sentry-native-ndk-outproc to 1.0.0-beta.2

The release includes getsentry/sentry-native#2301, so drop the CI steps
that built it from its branch.

* Revert unrelated CHANGELOG formatting

---------

Co-authored-by: Sentry Github Bot <[email protected]>
* build(deps): Bump Spring Boot to 4.2.0

Update the Spring Boot 4 integration and samples to the stable 4.2 release, including Spring Framework 7.1 and Spring GraphQL 2.1.

Co-Authored-By: Claude <[email protected]>

* changelog

* ci(spring): Test Spring Boot 4.2

Add Spring Boot 4.2.0 to the compatibility matrix while retaining the existing Spring Boot 4 versions.

Co-Authored-By: Claude <[email protected]>

* changelog

---------

Co-authored-by: Claude <[email protected]>
Bumps `jackson` from 2.18.3 to 2.22.4.

Updates `com.fasterxml.jackson:jackson-bom` from 2.18.3 to 2.22.4
- [Commits](FasterXML/jackson-bom@jackson-bom-2.18.3...jackson-bom-2.22.4)

Updates `com.fasterxml.jackson.core:jackson-databind` from 2.18.3 to 2.22.4
- [Commits](FasterXML/jackson-databind@jackson-databind-2.18.3...jackson-databind-2.22.4)

---
updated-dependencies:
- dependency-name: com.fasterxml.jackson:jackson-bom
  dependency-version: 2.22.4
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: com.fasterxml.jackson.core:jackson-databind
  dependency-version: 2.22.4
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps org.gretty from 4.0.0 to 5.1.0.

---
updated-dependencies:
- dependency-name: org.gretty
  dependency-version: 5.1.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
….1 (#6676)

Bumps [io.micrometer:context-propagation](https://github.com/micrometer-metrics/context-propagation) from 1.1.0 to 1.2.1.
- [Release notes](https://github.com/micrometer-metrics/context-propagation/releases)
- [Commits](micrometer-metrics/context-propagation@v1.1.0...v1.2.1)

---
updated-dependencies:
- dependency-name: io.micrometer:context-propagation
  dependency-version: 1.2.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
JVM and shared modules keep AutoClosableReentrantLock because synchronized
pins virtual threads on JDK 21-23. Android-only modules use synchronized,
since Android has no virtual threads.

Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: Roman Zavarnitsyn <[email protected]>
Keep the Ktor BOM pinned to 3.0.0 for the dedicated minimum-version compatibility suite. The default test suite continues to follow the latest Ktor client version.

Co-authored-by: Claude <[email protected]>
Keep Spring GraphQL 1.0 as the compile target for the Spring 5 and Spring Boot 2 integrations. Newer Spring GraphQL generations are covered by the separate Spring 6 and Spring 7 modules.

Co-authored-by: Claude <[email protected]>
Keep Logback 1.2 as the production compile target so the integration remains compatible with Spring Boot 2 consumers. Test newer Logback versions separately instead of replacing the compatibility floor.

Co-authored-by: Claude <[email protected]>
…ad (#6743)

* perf(profiling): Read Perfetto trace straight into the envelope payload

Co-Authored-By: Roman Zavarnitsyn <[email protected]>

* changelog: Add entry for Perfetto chunk payload read

Co-Authored-By: Roman Zavarnitsyn <[email protected]>

---------

Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: Roman Zavarnitsyn <[email protected]>
* fix(replay): Mask Coil 3.1+ AsyncImage in Compose

Coil 3.1 moved the painter from ContentPainterElement to its Modifier.Node, so the
reflective painter lookup failed and the node was not treated as an image. Treat a
Painter-named modifier without a readable painter as a maskable image, keep
*PainterElement names under R8, and run the replay unit tests across Coil 3 versions in CI.

Refs VULN-3400

Co-Authored-By: Claude <[email protected]>

* changelog

* ref(replay): Find the painter field by name instead of catching

getDeclaredField threw NoSuchFieldException for every Coil 3.1+ image on every frame, and the
catch failed detekt. Search declaredFields instead, so no exception is created and the
findPainter baseline entry is no longer needed.

Refs VULN-3400

Co-Authored-By: Claude <[email protected]>

* test(replay): Render Coil 3 next to Coil 2 in the masking test activity

Drop the useCoil3 flag and its two tests. The existing image tests now expect both images.

Refs VULN-3400

Co-Authored-By: Claude <[email protected]>

* test(replay): Check Coil 3 image masking in the minified UI test app

The AGP matrix runs sentry-uitest-android as an R8 release build, but its Compose screen had no
image. Add a Coil 3 AsyncImage and a ReplayTest that checks its area is one color in a replay
frame. The app now uses Compose UI 1.10.2, the first version that lets R8 rename modifier
elements, so the test fails without the PainterElement keep rule. Compose 1.10 needs minSdk 23.

Refs VULN-3400

Co-Authored-By: Claude <[email protected]>

* test(replay): Keep UI test app on minSdk 21 with manifest overrides

Override the minSdk 23 of the Compose 1.10 libraries in the manifest instead of raising the
minSdk of the app. The UI tests run on API 30+ only.

Refs VULN-3400

Co-Authored-By: Claude <[email protected]>

* test(replay): Use minSdk 23 for the UI test app

Compose UI 1.10 needs minSdk 23, and the UI tests run on API 30+ only. This replaces the
manifest overrides for 12 libraries.

Refs VULN-3400

Co-Authored-By: Claude <[email protected]>

---------

Co-authored-by: Claude <[email protected]>
Raise the Android Gradle Plugin from 9.5.1 to 9.5.2 and the Gradle
wrapper from 9.9.1 to 9.9.2, the latest stable patch releases. The AGP
matrix's top version and the replay snapshot upload cell follow the new
default.

Co-authored-by: Claude Opus 5.5 <[email protected]>
* fix(core): Time out performance collection on a monotonic clock

The 30s collection timeout compared wall-clock readings, so a backward
clock step kept collection running past the timeout and a forward step
stopped it early. Measure it with a Deadline on the options' monotonic
ticker instead.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* changelog

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: Markus Hintersteiner <[email protected]>
We decided against running the macrobenchmark on Sauce Labs. Remove the
workflow, its Sauce config, the device-log parser, and the logcat echo
in SentryStartupBenchmark that existed only to get results off the
Sauce device. The benchmark module stays for local runs.

Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: Chris Aigner <[email protected]>
* build(opentelemetry): Bump OpenTelemetry dependencies to 2.34.0

* changelog

* fix(opentelemetry): Read both messaging.system and messaging.system.name

Co-Authored-By: Alexander Dinauer <[email protected]>

* fix(opentelemetry): Transfer messaging.system.name to messaging.system

Co-Authored-By: Alexander Dinauer <[email protected]>

* fix(opentelemetry): Support replacement messaging system attribute

Recognize messaging.system.name during queue classification and normalize it for root and child spans while preserving legacy-key precedence.

Co-Authored-By: OpenAI Codex <[email protected]>

* docs(changelog): Move OpenTelemetry bump to Unreleased

Keep the dependency update out of the already released 8.65.1 section after merging the latest main branch.

Co-Authored-By: OpenAI Codex <[email protected]>

---------

Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: Alexander Dinauer <[email protected]>
Co-authored-by: Alexander Dinauer <[email protected]>
Co-authored-by: OpenAI Codex <[email protected]>
Sync main into the v9 development branch and resolve conflicts while
preserving the v9 Java, Kotlin, Android, and Spring compatibility changes.

Keep the v9 Unreleased changelog entries, add the current OpenTelemetry
bump, and retain main's 8.66.0 release section. Combine the v9 span-kind,
R8, and minimum-version changes with the latest main fixes and dependency
updates.

Co-Authored-By: OpenAI Codex <[email protected]>
@github-actions github-actions Bot added the risk: high PR risk score: high label Nov 26, 2026
@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

PR risk: high

For commit d3614bc.

Main concerns: reach, dependencies customers inherit, public contract.

Rules that block low also fired:

  • R1: code was truncated, omitted or a reduced context was used: sentry-android-integration-tests/README.md, sentry-android-integration-tests/sentry-uitest-android-macrobenchmark/README.md, sentry-android-integration-tests/sentry-uitest-android-macrobenchmark/src/main/java/io/sentry/uitest/android/macrobenchmark/SentryStartupBenchmark.kt, sentry-android-integration-tests/sentry-uitest-android/build.gradle.kts, sentry-android-integration-tests/sentry-uitest-android/src/androidTest/java/io/sentry/uitest/android/ReplayTest.kt and 34 more
  • R5: dependencies or bundled SDK versions changed: gradle/libs.versions.toml, gradle/spring-boot-versions.json
  • R6: build or release configuration changed: .github/dependabot.yml, .github/workflows/agp-matrix.yml, .github/workflows/codeql-analysis.yml, .github/workflows/integration-tests-macrobenchmark.yml, .github/workflows/pr-classifiers.yml and 14 more

This label is a hint for reviewers, not an approval.

@adinauer
adinauer marked this pull request as ready for review November 26, 2026 06:08
@adinauer
adinauer requested a review from a team as a code owner November 26, 2026 06:08
@adinauer
adinauer requested review from 0xadam-brown and markushi and removed request for a team November 26, 2026 06:08
@github-actions github-actions Bot added risk: high PR risk score: high and removed risk: high PR risk score: high labels Nov 26, 2026
@sentry

sentry Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

📲 Install Builds

Android

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

⚙️ sentry-android Build Distribution Settings

@github-actions github-actions Bot added risk: high PR risk score: high and removed risk: high PR risk score: high labels Nov 26, 2026
@adinauer
adinauer merged commit 291c3b9 into 9.x.x Nov 26, 2026
43 of 44 checks passed
@adinauer
adinauer deleted the sync/main-to-9.x.x-2026-11-26 branch November 26, 2026 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: high PR risk score: high

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants