Skip to content

build(uitest): Disable lint's Gradle version check - #6515

Merged
runningcode merged 1 commit into
mainfrom
no/uitest-lint-gradle-version
Nov 9, 2026
Merged

runningcode merged 1 commit into
mainfrom
no/uitest-lint-gradle-version

Conversation

@runningcode

@runningcode runningcode commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

📜 Description

main is broken because Gradle 9.9.0 was released and now this lint check is failing.

sentry-android-integration-tests/gradle/wrapper/gradle-wrapper.properties:3: Error: A newer version of Gradle than 9.8.2 is available: 9.9.0 [AndroidGradlePluginVersion]
> Task :sentry-uitest-android:lintRelease FAILED

Weird that we didn't have this issue before but splitting apart the build revealed some interesting errors.
Here's what my clanker found as to why this wasn't happening before.

Lint checks the build root's gradle.properties and gradle-wrapper.properties in a single module per build: the first include(":…") in settings, or, since our includes have no leading colon, the alphabetically first folder with a build file. Since the integration tests moved into their own build, that's sentry-uitest-android, which sets warningsAsErrors. The check compares the wrapper with the latest Gradle release online, so every Gradle release would break the build again. The other builds don't hit this because lint's pick there (build-logic, macrobenchmark) never runs this check.

💚 How did you test it?

./gradlew -p sentry-android-integration-tests lintRelease fails on main and passes with this change.

📝 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

Lint checks the build root's gradle-wrapper.properties in a single
module it picks per build. Since the integration tests moved into their
own build, that module is sentry-uitest-android, which treats warnings
as errors. AndroidGradlePluginVersion compares the wrapper with the
latest Gradle release online, so the Gradle 9.9.0 release turned the
Samples workflow red on main without any change on our side.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@runningcode
runningcode marked this pull request as ready for review November 9, 2026 09:26
@runningcode
runningcode requested review from a team and adinauer as code owners November 9, 2026 09:26
@runningcode
runningcode requested review from markushi and romtsn and removed request for a team November 9, 2026 09:26
@runningcode runningcode added the ship-it PR is ready to merge from a reviewer perspective label Nov 9, 2026
@sentry

sentry Bot commented Nov 9, 2026

Copy link
Copy Markdown

📲 Install Builds

Android

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

⚙️ sentry-android Build Distribution Settings

@0xadam-brown 0xadam-brown left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks like the other Android modules keep this check, so it's just for our integration tests that we disable it (where we're deliberate about pinning an AGP version, anyway) 👍

@runningcode

Copy link
Copy Markdown
Contributor Author

Looks like the other Android modules keep this check, so it's just for our integration tests that we disable it (where we're deliberate about pinning an AGP version, anyway) 👍

No, its not at all about AGP, its about a Gradle version. So its entirely misnamed. The reason we're keeping it for the other modules is just that it doesn't affect them due to the weird behavior of how this lint check works. See the PR description which explains why this never happened before as well as why it isn't happening in the other modules.

@runningcode
runningcode merged commit 2efb348 into main Nov 9, 2026
41 of 46 checks passed
@runningcode
runningcode deleted the no/uitest-lint-gradle-version branch November 9, 2026 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ship-it PR is ready to merge from a reviewer perspective

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants