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

[VertexAI] Add Swift 6 testing to CI #14503

Merged
merged 6 commits into from
Feb 27, 2025
Merged

[VertexAI] Add Swift 6 testing to CI #14503

merged 6 commits into from
Feb 27, 2025

Conversation

paulb777
Copy link
Member

@paulb777 paulb777 commented Feb 26, 2025

Screenshot 2025-02-26 at 11 53 10 AM

Copy link

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.

@andrewheard
Copy link
Contributor

/gemini review

Copy link

Warning

Gemini encountered an error creating the review. You can try again by commenting /gemini review.

@paulb777
Copy link
Member Author

/gemini review

Copy link

@gemini-code-assist gemini-code-assist bot left a 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 in VertexComponentTests.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.

@paulb777
Copy link
Member Author

Gemini:

Copy link

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.

@paulb777 paulb777 merged commit ba7849a into main Feb 27, 2025
40 checks passed
@paulb777 paulb777 deleted the pb-swift-6-ci branch February 27, 2025 00:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants