-
Notifications
You must be signed in to change notification settings - Fork 185
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support releasing multiple SDKs (#109)
Per [b/330880975](https://b.corp.google.com/issues/330880975), This updates our release infrastructure to support our new multi project repo (with `common` and `generativeai` living next to one another). Now, we can release either in separation of the other. This PR also includes the necessary changes to various tasks, plugins, workflows, tools, and even documentation. More specifically, this PR fixes the following: - [b/332890790](https://b.corp.google.com/issues/332890790) -> Implement a task to generate collective release notes - [b/332891281](https://b.corp.google.com/issues/332891281) -> Implement a task to generative collective api changes - [b/332891563](https://b.corp.google.com/issues/332891563) -> Provide a means for SDKs to generate their release artifacts in isolation of one another - [b/332892199](https://b.corp.google.com/issues/332892199) -> Separate api changes according to sdk - [b/332892499](https://b.corp.google.com/issues/332892499) -> Implement a task to release all sdks with changes - [b/332893058](https://b.corp.google.com/issues/332893058) -> Update the api changes workflow to work for multiple sdks - [b/332894984](https://b.corp.google.com/issues/332894984) -> Update the build release workflow to work for multiple sdks - [b/332897987](https://b.corp.google.com/issues/332897987) -> Update DEVELOPING to reflect the multiple sdk structure - [b/332898189](https://b.corp.google.com/issues/332898189) -> Update change to allow specifying projects
- Loading branch information
Showing
30 changed files
with
1,565 additions
and
63 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"type":"MAJOR","changes":["Make totalTokens in CountTokensResponse nullable"]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"type":"MAJOR","changes":["Add function calling"]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"type":"PATCH","changes":["Implement error catching for unsupported Part types."]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,10 +20,12 @@ jobs: | |
|
||
- name: Generate the api file | ||
run: | | ||
./gradlew generativeai:exportApi --no-daemon | ||
./gradlew exportApi --no-daemon | ||
- name: Save public.api from master | ||
run: mv generativeai/public.api ~/public.api | ||
run: | | ||
mv generativeai/public.api ~/generativeai/public.api && \ | ||
mv common/public.api ~/common/public.api | ||
- name: Checkout branch | ||
uses: actions/[email protected] | ||
|
@@ -36,11 +38,13 @@ jobs: | |
cache: gradle | ||
|
||
- name: Copy saved api to branch | ||
run: mv ~/public.api generativeai/public.api | ||
run: | | ||
mv ~/generativeai/public.api generativeai/public.api && \ | ||
mv ~/common/public.api common/public.api | ||
- name: Run api warning task | ||
run: | | ||
./gradlew generativeai:warnAboutApiChanges --no-daemon | ||
./gradlew warnAboutApiChanges --no-daemon | ||
- name: Add PR Comment | ||
if: ${{ hashFiles('api_changes.md') != '' }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.