Skip to content

Commit da8d3fa

Browse files
committed
ci: use main as integration branch
1 parent 30a6493 commit da8d3fa

4 files changed

Lines changed: 15 additions & 15 deletions

File tree

.github/workflows/auto-sync.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: auto-sync-upstream
33
# Automatically syncs the fork with upstream google/adk-python.
44
#
55
# Flow:
6-
# 1. Merge upstream/main into feature/base-url (the integration branch).
6+
# 1. Merge upstream into main (the integration branch).
77
# 2. If the merge conflicts -> stop, open an issue, leave `stable` untouched.
88
# 3. If clean -> install + run the model tests.
99
# 4. Tests pass -> fast-forward `stable` to the new commit (the new baseline).
@@ -22,15 +22,15 @@ on:
2222
workflow_dispatch: {}
2323

2424
permissions:
25-
contents: write # push feature/base-url and stable
25+
contents: write # push main and stable
2626
issues: write # open the failure-report issue
2727

2828
concurrency:
2929
group: auto-sync
3030
cancel-in-progress: false
3131

3232
env:
33-
INTEGRATION_BRANCH: feature/base-url
33+
INTEGRATION_BRANCH: main
3434
STABLE_BRANCH: stable
3535
UPSTREAM_REPO: https://github.com/google/adk-python.git
3636

@@ -41,7 +41,7 @@ jobs:
4141
- name: Checkout integration branch (full history)
4242
uses: actions/checkout@v4
4343
with:
44-
ref: feature/base-url
44+
ref: main
4545
fetch-depth: 0
4646
token: ${{ secrets.GITHUB_TOKEN }}
4747

.github/workflows/fork-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ name: fork-ci
77

88
on:
99
push:
10-
branches: [feature/base-url]
10+
branches: [main]
1111
pull_request:
12-
branches: [feature/base-url]
12+
branches: [main]
1313
schedule:
1414
- cron: '0 6 * * 1' # Mondays 06:00 UTC
1515
workflow_dispatch: {}

FORK.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ agent = Agent(model=Gemini(model="gemini-2.5-flash"))
8383

8484
| Branch | Role |
8585
|-------------------|------|
86-
| `feature/base-url`| Integration branch — the base_url patch with upstream **merged in**. |
87-
| `stable` | What consumers pin. Only ever advances to a green `feature/base-url`. |
86+
| `main`| Integration branch — the base_url patch with upstream **merged in**. |
87+
| `stable` | What consumers pin. Only ever advances to a green `main`. |
8888

8989
There is no `upstream` remote in the repo; the automation adds it on the fly.
9090
The patch is carried by **merging upstream in** (not rebasing) so history is
@@ -95,10 +95,10 @@ never rewritten and `@stable` pins never shift unexpectedly.
9595
[`.github/workflows/auto-sync.yml`](.github/workflows/auto-sync.yml) runs every
9696
Monday (and on demand via *Actions → auto-sync-upstream → Run workflow*):
9797

98-
1. Merge `upstream/main` into `feature/base-url`.
98+
1. Merge `upstream/main` into `main`.
9999
2. **Merge conflicts** → stop, open an `auto-sync` issue, leave `stable` as-is.
100100
3. Clean merge → install and run the model test suite.
101-
4. **Tests pass** → push `feature/base-url` and fast-forward `stable` to it.
101+
4. **Tests pass** → push `main` and fast-forward `stable` to it.
102102
This is the new baseline; `@stable` consumers pick it up automatically.
103103
5. **Tests fail** → stop, open an `auto-sync` issue, leave `stable` as-is.
104104

@@ -113,14 +113,14 @@ When the `auto-sync` issue appears:
113113
```bash
114114
./scripts/update-fork.sh # merges upstream, runs tests locally
115115
# resolve the conflict / fix the failing test, then:
116-
git push origin feature/base-url
117-
git push origin feature/base-url:stable # fast-forward stable once green
116+
git push origin main
117+
git push origin main:stable # fast-forward stable once green
118118
```
119119

120120
Optionally snapshot a release: `git tag -a fork-vX.Y.Z -m "..." && git push origin fork-vX.Y.Z`.
121121

122122
### CI
123123

124124
[`.github/workflows/fork-ci.yml`](.github/workflows/fork-ci.yml) additionally
125-
runs the model tests on every push to `feature/base-url`, so manual pushes are
125+
runs the model tests on every push to `main`, so manual pushes are
126126
checked too.

scripts/update-fork.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
# Mirrors what .github/workflows/auto-sync.yml does, for local recovery when
55
# an automated sync fails (merge conflict or red tests).
66
#
7-
# feature/base-url = integration branch (base_url patch + upstream merged in)
7+
# main = integration branch (base_url patch + upstream merged in)
88
# stable = what consumers pin; advance it only when tests pass
99
#
1010
# Usage: ./scripts/update-fork.sh
1111
set -euo pipefail
1212

13-
INTEGRATION_BRANCH="feature/base-url"
13+
INTEGRATION_BRANCH="main"
1414

1515
# Ensure an `upstream` remote exists.
1616
if ! git remote get-url upstream >/dev/null 2>&1; then

0 commit comments

Comments
 (0)