Skip to content

[Vertex AI] Remove golden-files directory #6740

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

Merged
merged 11 commits into from
Mar 11, 2025
Merged

[Vertex AI] Remove golden-files directory #6740

merged 11 commits into from
Mar 11, 2025

Conversation

andrewheard
Copy link
Collaborator

@andrewheard andrewheard commented Mar 5, 2025

Remove the firebase-vertexai/src/test/resources/golden-files directory. This was carried over from the generative-ai-android repository. We are now using https://github.com/FirebaseExtended/vertexai-sdk-test-data/tree/main/mock-responses instead.

#no-changelog

This commit removes the  directory from . The  tool does not delete directories recursively, so the files within the directory needed to be deleted first. To do this, I first listed all files in the repository and identified the files that were in the  directory. I then called the  tool on each file individually to delete all of them, before attempting to delete the now-empty directory itself. Finally, I confirmed the directory was deleted by listing the files in the repo again.
Copy link
Contributor

github-actions bot commented Mar 5, 2025

📝 PRs merging into main branch

Our main branch should always be in a releasable state. If you are working on a larger change, or if you don't want this change to see the light of the day just yet, consider using a feature branch first, and only merge into the main branch when the code complete and ready to be released.

Copy link
Contributor

github-actions bot commented Mar 5, 2025

Test Results

 22 files   - 16   22 suites   - 16   12s ⏱️ -42s
119 tests +24  119 ✅ +24  0 💤 ±0  0 ❌ ±0 
238 runs  +48  238 ✅ +48  0 💤 ±0  0 ❌ ±0 

Results for commit 6e12da2. ± Comparison against base commit c9287ee.

This pull request removes 95 and adds 119 tests. Note that renamed tests count towards both.
com.google.firebase.crashlytics.internal.common.CrashlyticsControllerRobolectricTest ‑ testDoCloseSession_disabledAnrs_doesNotPersistsAppExitInfo
com.google.firebase.crashlytics.internal.common.CrashlyticsControllerRobolectricTest ‑ testDoCloseSession_enabledAnrs_doesNotPersistsAppExitInfoIfItDoesntExist
com.google.firebase.crashlytics.internal.common.CrashlyticsControllerRobolectricTest ‑ testDoCloseSession_enabledAnrs_persistsAppExitInfoIfItExists
com.google.firebase.crashlytics.internal.common.DataCollectionArbiterRobolectricTest ‑ testDefaultDataCollection_usedWhenNoOverrideOrManifestSetting
com.google.firebase.crashlytics.internal.common.DataCollectionArbiterRobolectricTest ‑ testManifestMetadata_respectedWhenNoOverride
com.google.firebase.crashlytics.internal.common.DataCollectionArbiterRobolectricTest ‑ testSetCrashlyticsDataCollectionEnabled_overridesOtherSettings
com.google.firebase.crashlytics.internal.common.SessionReportingCoordinatorRobolectricTest ‑ testAppExitInfoEvent_notPersistIfAnrBeforeSession
com.google.firebase.crashlytics.internal.common.SessionReportingCoordinatorRobolectricTest ‑ testAppExitInfoEvent_notPersistIfAppExitInfoNotAnrButWithinSession
com.google.firebase.crashlytics.internal.common.SessionReportingCoordinatorRobolectricTest ‑ testAppExitInfoEvent_persistIfAnrWithinSession
com.google.firebase.crashlytics.internal.common.SessionReportingCoordinatorRobolectricTest ‑ testAppExitInfoEvent_persistIfAnrWithinSession_multipleAppExitInfo
…
com.google.firebase.vertexai.GenerativeModelTesting ‑ exception thrown when using invalid location
com.google.firebase.vertexai.GenerativeModelTesting ‑ system calling in request
com.google.firebase.vertexai.SchemaTests ‑ basic schema declaration
com.google.firebase.vertexai.SchemaTests ‑ full schema declaration
com.google.firebase.vertexai.SerializationTests ‑ test Candidate serialization as Json
com.google.firebase.vertexai.SerializationTests ‑ test GenerateContentResponse serialization as Json
com.google.firebase.vertexai.SerializationTests ‑ test Schema serialization as Json
com.google.firebase.vertexai.SerializationTests ‑ test countTokensResponse serialization as Json
com.google.firebase.vertexai.SerializationTests ‑ test modalityTokenCount serialization as Json
com.google.firebase.vertexai.StreamingSnapshotTests ‑ citation parsed correctly
…

♻️ This comment has been updated with latest results.

@andrewheard
Copy link
Collaborator Author

cc: @rlazo It appears these are still used in the common tests.

rlazo and others added 2 commits March 11, 2025 12:41
- Update which files contain the right test data
- Remove unnecessary tests inhereted from genai-common
@rlazo rlazo marked this pull request as ready for review March 11, 2025 16:44
@rlazo rlazo requested review from emilypgoogle and daymxn March 11, 2025 16:44
@google-oss-bot
Copy link
Contributor

1 Warning
⚠️ Did you forget to add a changelog entry? (Add the 'no-changelog' label to the PR to silence this warning.)

Generated by 🚫 Danger

Copy link
Member

@daymxn daymxn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, although left some comments on some removals I wanna confirm.

Also, I just wanted to note that #no-changelog isn't a thing (afaik?), you just add the no-changelog label instead.

@rlazo
Copy link
Collaborator

rlazo commented Mar 11, 2025 via email

@rlazo rlazo merged commit 9f6cacb into main Mar 11, 2025
32 of 33 checks passed
@rlazo rlazo deleted the remove-golden-files branch March 11, 2025 18:59
tejasd pushed a commit that referenced this pull request Apr 1, 2025
Remove the `firebase-vertexai/src/test/resources/golden-files`
directory. This was carried over from the
[`generative-ai-android`](https://github.com/google-gemini/generative-ai-android)
repository. We are now using
https://github.com/FirebaseExtended/vertexai-sdk-test-data/tree/main/mock-responses
instead.

#no-changelog

---------

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: Rodrigo Lazo <[email protected]>
Co-authored-by: Daymon <[email protected]>
Co-authored-by: Matthew Robertson <[email protected]>
Co-authored-by: Rodrigo Lazo Paz <[email protected]>
@firebase firebase locked and limited conversation to collaborators Apr 11, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants