Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update roborazzi to v1.40.1 #1190

Merged
merged 1 commit into from
Jan 28, 2025
Merged

Update roborazzi to v1.40.1 #1190

merged 1 commit into from
Jan 28, 2025

Conversation

slack-oss-bot
Copy link
Collaborator

This PR contains the following updates:

Package Type Update Change
io.github.takahirom.roborazzi plugin minor 1.39.0 -> 1.40.1
io.github.takahirom.roborazzi:roborazzi-core dependencies minor 1.39.0 -> 1.40.1
io.github.takahirom.roborazzi:roborazzi-compose dependencies minor 1.39.0 -> 1.40.1
io.github.takahirom.roborazzi:roborazzi-junit-rule dependencies minor 1.39.0 -> 1.40.1
io.github.takahirom.roborazzi:roborazzi dependencies minor 1.39.0 -> 1.40.1
io.github.takahirom.roborazzi:roborazzi-compose-desktop dependencies minor 1.39.0 -> 1.40.1

Release Notes

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

v1.40.1

Compare Source

New Feature: Add AiAssertionOptions.AssertionImageType to Support Actual Image Validation

We previously introduced AI Assertion which utilizes a comparison image for assertions. However, we noticed the current implementation struggled with optimal performance due to image size constraints, where sufficient context size is crucial for accurate AI analysis. To address this, we've introduced the AssertionImageType parameter. You can now specify the image type via AiAssertionOptions.

  sealed interface AssertionImageType {
    class Comparison : AssertionImageType
    class Actual : AssertionImageType
  }
Bug Fix: Improved AI Assertion OpenAI API Error Messaging

Previously, API error messages were unclear and unhelpful. We've revamped the error handling to provide meaningful feedback, including proper API status details.

Before:

Fields [object, created, model, choices] are required for type with serial name 'com.github.takahirom.roborazzi.ChatCompletionResponse', but they were missing at path: $
kotlinx.serialization.MissingFieldException: Fields [object, created, model, choices] are required for type with serial name 'com.github.takahirom.roborazzi.ChatCompletionResponse', but they were missing at path: $

After:

Caused by: java.util.concurrent.ExecutionException: com.github.takahirom.roborazzi.AiAssertionApiException: {
    "error": {
        "message": "You didn't provide an API key. You need to provide your API key in an Authorization header using Bearer auth (i.e. Authorization: Bearer YOUR_KEY), or as the password field (with blank username) if you're accessing the API from your browser and are prompted for a username and password. You can obtain an API key from https://platform.openai.com/account/api-keys.",
        "type": "invalid_request_error",
        "param": null,
        "code": null
    }
}
Changes from 1.40.0

We initially introduced AssertionImageType.Reference instead of AssertionImageType.Actual in version 1.40.0. This was a mistake, as it referred to old images, a feature we've determined to be unnecessary. We have corrected this in the current release by using AssertionImageType.Actual.

What's Changed

Full Changelog: takahirom/roborazzi@1.39.0...1.40.1

v1.40.0

Compare Source

Please refer to https://github.com/takahirom/roborazzi/releases/tag/1.40.1


Configuration

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

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, 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 has been generated by Renovate Bot.

@slack-oss-bot slack-oss-bot force-pushed the test-renovate/roborazzi branch 2 times, most recently from fa012ad to a569765 Compare January 27, 2025 08:06
@slack-oss-bot slack-oss-bot force-pushed the test-renovate/roborazzi branch from a569765 to b3461ff Compare January 28, 2025 08:05
@slack-oss-bot slack-oss-bot added this pull request to the merge queue Jan 28, 2025
Merged via the queue into main with commit a3ece31 Jan 28, 2025
4 checks passed
@slack-oss-bot slack-oss-bot deleted the test-renovate/roborazzi branch January 28, 2025 19: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.

2 participants