Skip to content

Commit c02e275

Browse files
authored
Merge branch 'main' into fix/openapi-tool-timeout
2 parents d12bdc2 + fc1f1db commit c02e275

File tree

121 files changed

+3514
-710
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

121 files changed

+3514
-710
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
".": "1.24.1"
3+
}

.github/release-please-config.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
3+
"packages": {
4+
".": {
5+
"release-type": "python",
6+
"package-name": "google-adk",
7+
"include-component-in-tag": false,
8+
"skip-github-release": true,
9+
"changelog-path": "CHANGELOG.md",
10+
"changelog-sections": [
11+
{"type": "feat", "section": "Features"},
12+
{"type": "fix", "section": "Bug Fixes"},
13+
{"type": "perf", "section": "Performance Improvements"},
14+
{"type": "refactor", "section": "Code Refactoring"},
15+
{"type": "docs", "section": "Documentation"},
16+
{"type": "test", "section": "Tests", "hidden": true},
17+
{"type": "build", "section": "Build System", "hidden": true},
18+
{"type": "ci", "section": "CI/CD", "hidden": true},
19+
{"type": "style", "section": "Styles", "hidden": true},
20+
{"type": "chore", "section": "Miscellaneous Chores", "hidden": true}
21+
]
22+
}
23+
}
24+
}

.github/release-please.yml

Lines changed: 0 additions & 5 deletions
This file was deleted.

.github/release-trigger.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/workflows/isort.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
- name: Set up Python
3434
uses: actions/setup-python@v6
3535
with:
36-
python-version: '3.x'
36+
python-version: '3.11'
3737

3838
- name: Install isort
3939
run: |

.github/workflows/pyink.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
- name: Set up Python
3434
uses: actions/setup-python@v6
3535
with:
36-
python-version: '3.x'
36+
python-version: '3.11'
3737

3838
- name: Install pyink
3939
run: |

.github/workflows/python-unit-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
runs-on: ubuntu-latest
2626
strategy:
2727
matrix:
28-
python-version: ["3.10", "3.11", "3.12", "3.13"]
28+
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
2929

3030
steps:
3131
- name: Checkout code
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Cherry-picks a commit from main to the release/candidate branch.
2+
# Use this to include bug fixes in an in-progress release.
3+
name: "Release: Cherry-pick"
4+
5+
on:
6+
workflow_dispatch:
7+
inputs:
8+
commit_sha:
9+
description: 'Commit SHA to cherry-pick'
10+
required: true
11+
type: string
12+
13+
permissions:
14+
contents: write
15+
actions: write
16+
17+
jobs:
18+
cherry-pick:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
with:
23+
ref: release/candidate
24+
fetch-depth: 0
25+
26+
- name: Configure git
27+
run: |
28+
git config user.name "github-actions[bot]"
29+
git config user.email "github-actions[bot]@users.noreply.github.com"
30+
31+
- name: Cherry-pick commit
32+
run: |
33+
echo "Cherry-picking ${{ inputs.commit_sha }} to release/candidate"
34+
git cherry-pick ${{ inputs.commit_sha }}
35+
36+
- name: Push changes
37+
run: |
38+
git push origin release/candidate
39+
echo "Successfully cherry-picked commit to release/candidate"
40+
41+
- name: Trigger Release Please
42+
env:
43+
GH_TOKEN: ${{ github.token }}
44+
run: |
45+
gh workflow run release-please.yml --repo ${{ github.repository }}
46+
echo "Triggered Release Please workflow"

.github/workflows/release-cut.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Starts the release process by creating a release/candidate branch.
2+
# Triggers release-please to generate a changelog PR.
3+
name: "Release: Cut"
4+
5+
on:
6+
workflow_dispatch:
7+
inputs:
8+
commit_sha:
9+
description: 'Commit SHA to cut from (leave empty for latest main)'
10+
required: false
11+
type: string
12+
13+
permissions:
14+
contents: write
15+
actions: write
16+
17+
jobs:
18+
cut-release:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
with:
23+
ref: ${{ inputs.commit_sha || 'main' }}
24+
25+
- name: Check for existing release/candidate branch
26+
env:
27+
GH_TOKEN: ${{ github.token }}
28+
run: |
29+
if git ls-remote --exit-code --heads origin release/candidate &>/dev/null; then
30+
echo "Error: release/candidate branch already exists"
31+
echo "Please finalize or delete the existing release candidate before starting a new one"
32+
exit 1
33+
fi
34+
35+
- name: Create and push release/candidate branch
36+
run: |
37+
git checkout -b release/candidate
38+
git push origin release/candidate
39+
echo "Created branch: release/candidate"
40+
41+
- name: Trigger Release Please
42+
env:
43+
GH_TOKEN: ${{ github.token }}
44+
run: |
45+
gh workflow run release-please.yml --repo ${{ github.repository }}
46+
echo "Triggered Release Please workflow"
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# Triggers when release-please PR is merged to release/candidate.
2+
# Creates the final release/v{version} branch and deletes the candidate branch.
3+
name: "Release: Finalize"
4+
5+
on:
6+
pull_request:
7+
types: [closed]
8+
branches:
9+
- release/candidate
10+
11+
permissions:
12+
contents: write
13+
pull-requests: write
14+
15+
jobs:
16+
finalize:
17+
if: github.event.pull_request.merged == true
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Check for release-please PR
21+
id: check
22+
env:
23+
LABELS: ${{ toJson(github.event.pull_request.labels.*.name) }}
24+
run: |
25+
if echo "$LABELS" | grep -q "autorelease: pending"; then
26+
echo "is_release_pr=true" >> $GITHUB_OUTPUT
27+
else
28+
echo "Not a release-please PR, skipping"
29+
echo "is_release_pr=false" >> $GITHUB_OUTPUT
30+
fi
31+
32+
- uses: actions/checkout@v4
33+
if: steps.check.outputs.is_release_pr == 'true'
34+
with:
35+
ref: release/candidate
36+
37+
- name: Extract version from manifest
38+
if: steps.check.outputs.is_release_pr == 'true'
39+
id: version
40+
run: |
41+
VERSION=$(jq -r '.["."]' .github/.release-please-manifest.json)
42+
echo "version=$VERSION" >> $GITHUB_OUTPUT
43+
echo "Extracted version: $VERSION"
44+
45+
- name: Create release branch
46+
if: steps.check.outputs.is_release_pr == 'true'
47+
run: |
48+
git checkout -b "release/v${{ steps.version.outputs.version }}"
49+
git push origin "release/v${{ steps.version.outputs.version }}"
50+
echo "Created branch: release/v${{ steps.version.outputs.version }}"
51+
52+
- name: Delete release/candidate branch
53+
if: steps.check.outputs.is_release_pr == 'true'
54+
run: |
55+
git push origin --delete release/candidate
56+
echo "Deleted branch: release/candidate"
57+
58+
- name: Update PR label to tagged
59+
if: steps.check.outputs.is_release_pr == 'true'
60+
env:
61+
GH_TOKEN: ${{ github.token }}
62+
run: |
63+
gh pr edit ${{ github.event.pull_request.number }} \
64+
--remove-label "autorelease: pending" \
65+
--add-label "autorelease: tagged"
66+
echo "Updated PR label to autorelease: tagged"

0 commit comments

Comments
 (0)