Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Jan 7, 2026

This PR contains the following updates:

Package Change Age Confidence
io.github.takahirom.roborazzi 1.54.01.55.0 age confidence
io.github.takahirom.roborazzi:roborazzi-junit-rule 1.54.01.55.0 age confidence
io.github.takahirom.roborazzi:roborazzi-compose 1.54.01.55.0 age confidence
io.github.takahirom.roborazzi:roborazzi 1.54.01.55.0 age confidence

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Release Notes

takahirom/roborazzi (io.github.takahirom.roborazzi)

v1.55.0

Compare Source

Bugfix: Fix WebP ClassCastException
What happened
  • Robolectric runs inside a custom class loader named SdkSandboxClassLoader.
  • Roborazzi's WebP support relies on ImageIO.getImageWritersByMIMEType, which internally caches writers in a static field. When the writer is first created, the code is executed by SdkSandboxClassLoader1.
  • Subsequently, when another test runs with a different SDK (e.g., 35), a second SdkSandboxClassLoader (SdkSandboxClassLoader2) is spawned. Because ImageIO's cached instance was loaded by a different class loader, attempting to cast it triggers a ClassCastException.

class com.luciad.imageio.webp.WebPWriteParam cannot be cast to class com.luciad.imageio.webp.WebPWriteParam (com.luciad.imageio.webp.WebPWriteParam is in unnamed module of loader org.robolectric.internal.AndroidSandbox$SdkSandboxClassLoader @​1dbb650b; com.luciad.imageio.webp.WebPWriteParam is in unnamed module of loader org.robolectric.internal.AndroidSandbox$SdkSandboxClassLoader @​3e48e859)

What we did

We leveraged reflection to force ImageIO.getImageWritersByMIMEType to use the System ClassLoader, thereby guaranteeing that the same class definition is shared irrespective of the current SdkSandboxClassLoader.
Many thanks to @​eygraber for reporting this bug!

What's Changed

Full Changelog: takahirom/roborazzi@1.54.0...1.55.0


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot requested a review from a team as a code owner January 7, 2026 12:38
@renovate renovate bot requested review from bmarty and removed request for a team January 7, 2026 12:38
@ElementBot
Copy link
Collaborator

ElementBot commented Jan 7, 2026

Warnings
⚠️

gradle/libs.versions.toml#L193 - A newer version of org.jsoup:jsoup than 1.21.2 is available: 1.22.1

Generated by 🚫 dangerJS against d75a1b7

@github-actions
Copy link
Contributor

github-actions bot commented Jan 7, 2026

📱 Scan the QR code below to install the build (arm64 only) for this PR.
QR code
If you can't scan the QR code you can install the build via this link: https://i.diawi.com/9mEUi6

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 7, 2026

@codecov
Copy link

codecov bot commented Jan 7, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.37%. Comparing base (8a290c3) to head (d75a1b7).
⚠️ Report is 4 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #5976      +/-   ##
===========================================
+ Coverage    81.33%   81.37%   +0.03%     
===========================================
  Files         2545     2545              
  Lines        67760    67760              
  Branches      8684     8684              
===========================================
+ Hits         55113    55139      +26     
+ Misses        9429     9402      -27     
- Partials      3218     3219       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@bmarty bmarty merged commit 9878e8b into develop Jan 7, 2026
31 of 32 checks passed
@bmarty bmarty deleted the renovate/roborazzi branch January 7, 2026 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants