Skip to content

ci(nav3): [Part 6] Keep the SerialName mapper's compatibility coverage current - #6784

Draft
0xadam-brown wants to merge 1 commit into
feat/nav3-serial-name-stack-5from
feat/nav3-serial-name-stack-6
Draft

0xadam-brown wants to merge 1 commit into
feat/nav3-serial-name-stack-5from
feat/nav3-serial-name-stack-6

Conversation

@0xadam-brown

@0xadam-brown 0xadam-brown commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

PR Stack (Nav3 SerialName Mapper)

This stack replaces the SerialName half of #6696. SerialNameAndProperties will follow in its own stack.


📜 Description

Runs Part 5's R8 check, and the module's unit tests, in CI against newer kotlinx.serialization versions as well as the floor.

  • Version matrix. gradle/dependency-matrix.versions.toml (the matrixLibs catalog from Part 2) gains two roles next to the floor:

    • kotlinxSerialization-stable, the latest stable release, which Dependabot bumps.
    • kotlinxSerialization-preview, the latest release candidate, which a new weekly job in update-deps.yml bumps. It's tested only while it's newer than stable.

    The file's header explains the roles, and the rules that keep Dependabot from bumping the floor. scripts/dependency-matrix.sh reads and writes the keys.

  • Workflow. integration-tests-nav3-r8.yml builds the R8 check's APKs (floor in full and compat mode, plus stable and any newer RC in full mode) and runs them on an emulator. It runs on API 37 for PRs, and on API 23 (Nav3's minSdk) too on pushes to main. A separate job runs all of the module's unit tests against the newer versions (scripts/test-nav3-kotlinx-versions.sh). The Build workflow already runs them at the floor.

  • Relevance. The workflow runs on every PR and push to main, without path filters. Its first job asks scripts/nav3-r8-check-relevant.sh whether the changes can affect the check, and skips the rest if not. That covers the module, the R8 app, build logic, and the versions of Kotlin, AGP, Compose, lifecycle, savedstate, Nav3, and kotlinx.serialization. This keeps unrelated dependency bumps from starting an emulator.

  • Release candidates are advisory. RC failures are warnings, except on PRs that change the preview version, such as the weekly updater's.

  • Runbook. The R8 check's README says what to do when a bump fails, e.g., when a release needs a newer Kotlin compiler than the repo uses.

The workflow only needs contents: read, and doesn't cancel in-progress runs on main.

💡 Motivation and Context

Apps choose their own kotlinx.serialization version, which is often newer than the 1.7.3 we compile against. A new release can change serializer lookup, descriptors, or its R8 rules in ways that break naming only in minified builds. Testing stable releases catches that for apps that already use them. Testing release candidates gives us warning before they become stable.

addresses: JAVA-787 (link)

💚 How did you test it?

  • Ran scripts/test-nav3-kotlinx-versions.sh (unit tests at 1.13.0) and the full R8 script (1.7.3 full and compat, 1.13.0 full) locally on an emulator. All pass.
  • Checked dependency-matrix.sh and nav3-r8-check-relevant.sh output locally. This PR's own workflow run is the first CI run.

📝 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

  • Once this merges, the first weekly updater run and Dependabot PRs will show whether the bump flow works end to end.
  • Possibly move the matrix into DependencyMatrixPlugin, which other matrices (e.g., AGP) use.

@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

PR risk: medium

For commit 88da4c7.

The model rated this change low. It was raised to medium because:

  • R6: build or release configuration changed: .github/dependabot.yml, .github/workflows/integration-tests-nav3-r8.yml, .github/workflows/update-deps.yml, gradle/dependency-matrix.versions.toml, scripts/dependency-matrix.sh and 5 more
  • R7: the model was not confident enough that the change is low

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

@0xadam-brown
0xadam-brown force-pushed the feat/nav3-serial-name-stack-5 branch from c765b6c to 9f1998f Compare November 25, 2026 15:34
@0xadam-brown
0xadam-brown force-pushed the feat/nav3-serial-name-stack-6 branch from b1503d4 to 731e102 Compare November 25, 2026 15:34
@github-actions github-actions Bot added risk: medium PR risk score: medium and removed risk: medium PR risk score: medium labels Nov 25, 2026
@sentry

sentry Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

📲 Install Builds

Android

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

⚙️ sentry-android Build Distribution Settings

Run the R8 check and the module's unit tests in CI against the kotlinx.serialization floor, the
latest stable release, and any newer release candidate. The versions live in
gradle/dependency-matrix.versions.toml: Dependabot bumps the stable one, and a weekly job in
update-deps.yml bumps the release candidate. Release candidate failures only fail PRs that change
it.

The workflow runs on every PR and push to main, and scripts/nav3-r8-check-relevant.sh decides
whether the changes can affect the check. The R8 check's README describes what to do when a bump
fails.
@0xadam-brown
0xadam-brown force-pushed the feat/nav3-serial-name-stack-5 branch from 9f1998f to ba7a24b Compare November 25, 2026 16:31
@0xadam-brown
0xadam-brown force-pushed the feat/nav3-serial-name-stack-6 branch from 731e102 to 88da4c7 Compare November 25, 2026 16:31
@github-actions github-actions Bot added risk: medium PR risk score: medium and removed risk: medium PR risk score: medium labels Nov 25, 2026

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: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant