-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[VertexAI] Add Swift 6 testing to CI #14503
Conversation
paulb777
commented
Feb 26, 2025
•
edited
Loading
edited
- Add Swift 6 testing to CI
- Update unit tests to build in Swift
- Add Changelog note
- Workaround remaining warning(s) see below
- A first pass at fixing the warning is in [Vertex AI] Refactor generateContentStream to fix Swift 6 warning #14504
Important The terms of service for this installation has not been accepted. Please ask the Organization owners to visit the Gemini Code Assist Admin Console to sign it. |
f8b1931
to
c0c2b58
Compare
c0c2b58
to
c93e96d
Compare
/gemini review |
Warning Gemini encountered an error creating the review. You can try again by commenting |
/gemini review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request adds Swift 6 testing to the CI, updates unit tests, and adds a changelog note. The changes are well-structured and address the intended purpose. However, there are a few minor suggestions that could improve the code quality and maintainability.
Summary of Findings
- TODO comment in workflow file: The workflow file contains a TODO comment indicating a remaining warning in
GenerativeAIService
. It's important to address this warning and remove the--allow-warnings
flag to ensure code quality and prevent potential issues from being overlooked. - Swift version update in podspec: The pull request includes a step to set the Swift version in the
FirebaseVertexAI.podspec
file. While this is necessary for Swift 6 testing, it's important to ensure that the change is correctly implemented and doesn't introduce any unintended side effects. @preconcurrency
import: The@preconcurrency
import inVertexComponentTests.swift
seems like a workaround. It would be good to understand why this is needed and whether there's a better way to address the underlying issue.
Assessment
The pull request introduces Swift 6 testing to the CI and updates unit tests to build in Swift. The changes look good overall, but there are a few minor suggestions for improvement. Please address the comments before merging, and ensure that another reviewer approves this code as well.
Gemini:
|
Thanks for the update, @paulb777. It's helpful to know the context behind the TODOs and other decisions in this PR. This information clarifies the reasoning behind the current state of the code and helps to avoid unnecessary back-and-forth. |