Repository navigation
Conversation
Bumps [org.robolectric:robolectric](https://github.com/robolectric/robolectric) from 4.16.1 to 4.17. - [Release notes](https://github.com/robolectric/robolectric/releases) - [Commits](robolectric/robolectric@robolectric-4.16.1...robolectric-4.17) --- updated-dependencies: - dependency-name: org.robolectric:robolectric dependency-version: '4.17' dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
The comment justified sdk=36 as "the latest version it supports (4.16.1)". 4.17 supports SDK 37, which is this repo's compileSdk and targetSdk, so the stated reason no longer holds. Left the pin at 36. Raising it changes the Android level every test without an explicit @config(sdk = ...) runs against, which is worth its own test run rather than a ride-along on a version bump.
Robolectric 4.17 sets up FileDescriptor through jdk.internal.access.SharedSecrets, a package the module system does not export. On the Java 21 toolchain every test that starts the Android environment throws IllegalAccessException out of AndroidTestEnvironment.setUpApplicationState before reaching an assertion — 31 failures in :libs:datetime and :libs:logging alone, where 4.16.1 was green. Apply the --add-opens set from Robolectric's own test configuration to every Test task. This lands in settings.gradle.kts rather than a convention plugin because :libs:encryption:utils runs Robolectric from androidHostTest and applies the AGP and KMP plugins directly, so no flipcash convention plugin reaches it; under Isolated Projects the beforeProject hook is the one hook that sees every project. All 25 modules that declare Robolectric now pass: 1439 tests, 0 failures.
bmc08gt
deleted the
dependabot/gradle/code/cash/org.robolectric-robolectric-4.17
branch
September 18, 2026 16:29
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bumps org.robolectric:robolectric from 4.16.1 to 4.17.
Release notes
Sourced from org.robolectric:robolectric's releases.
... (truncated)
Commits
0706415Bump version to 4.17.f3c17bdBump version to 4.17-beta-4.04b84f6"fixed ResTable_package.SIZEOF valuef4ee543Apply suggestion from@gemini-code-assist[bot]fb99bfbExpose BouncyCastle BoM as api dependencya453192Fix Javadoc forVersionCalculator6f26892Bump version to 4.17-beta-3ceffe96Only adjust frameinfo timestamp values (including vsync).ea5879fAdd opt-in fix for stale screenshots on SDK 37.8bea421Fix jank log spam on SDK 37+ by translating FrameInfo timestamps.Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)