A static "will this upgrade break me?" check for google-adk
維護者通常 3 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 5/5
- 預估耗時
- 一週以上
- 新手友好度
- 8/100
- Issue 類型
- 功能
- 描述清晰度
- 基本清楚
- 活躍度
- 活躍
- 技術堆疊
- python
研究方向
This is a proposal, not a patch: it asks maintainers to decide whether an external upgrade checker is linked from the docs or hosted in adk-python-community, whether a thin adk upgrade check command is added, and whether per-release breaking-change metadata sits next to CHANGELOG.md. The separate _run_async_impl question concerns the Runner path. Done means those decisions are recorded in the thread, so a newcomer should wait for a maintainer reply before writing code.
由索引模型根據 Issue 內容生成。
描述
Problem
Several minor releases since 2.0 have had breaking or behavior changes (2.6.0, 2.7.0, 2.13.0, 2.14.0 and 2.15.0), and some breaks were not labelled as breaking. For example, the 1.19.0 async rewrite of DatabaseSessionService makes every sqlite:/// and postgresql:// URL fail at startup. So each team audits each release by hand:
- doughayden/agent-foundation#363 checked by hand that the template "has no enum-typed tool arguments, and runs no SQL of its own against the session tables", and told forks to review the notes themselves.
- zazza123/chatomon#118 and shoom1/agentic-cli#200 carry compatibility work for 2.13.
- #4387 describes users being afraid to update because of database changes.
What I built
adk-upgrade-check (Apache-2.0): https://github.com/Reuben-Alex/adk-upgrade-check. It parses a project with LibCST (it never imports or runs it), detects the current google-adk from lock files, and reports, for each release between --from and --to, the exact lines that break. Mechanical cases are fixed with --fix, which shows the diff first.
$ adk-upgrade-check . --to 2.15.1
google-adk 1.18.0 (from uv.lock) -> target 2.15.1 (11 rules apply)
ERROR ADK119-ASYNC-DB-URL billing/agent.py:17
DatabaseSessionService URL uses the synchronous scheme `sqlite://`. Since 1.19.0 ...
fix: use `sqlite+aiosqlite://` ... [auto-fixable]
ERROR ADK214-ENUM-ARGS billing/tools.py:10
`plan == "pro"` compares Enum tool argument `plan` with a string. From 2.14.0 FunctionTool passes Plan members, so this is always False.
fix: compare against `Plan.PRO` [auto-fixable]
Evidence so far:
- It has 11 rules, covering 1.19 through 2.15. Six of them are reproduced on the real releases either side of the change: 1.18.0 vs 1.19.0 (twice), 2.6.3 vs 2.7.0, 2.13.0 vs 2.14.0 (twice) and 2.14.1 vs 2.15.0. One of them, the CLI
sqlite://session-service switch in 1.19, is not in the changelog's breaking changes at all. - On 22 public ADK projects plus adk-samples,
ADK119-ASYNC-DB-URLfound 9 real breaks in 7 repos, with no false positives. Two of those repos are pinned to exactly 1.18.0. - Findings are split into
certainandlikely; onlycertainfails CI by default.
Questions for maintainers
- Would you link to it from the upgrade notes on adk.dev (the way Pydantic's migration guide links
bump-pydantic), or host it in adk-python-community? - Would you accept a thin
adk upgrade checkcommand that runs the tool if it's installed (as an optional extra) and prints install instructions if not? I'd keep it to a few lines and no new core dependencies. - Is there appetite for machine-readable breaking-change metadata per release (for example a small YAML file next to CHANGELOG.md), so rules can be drafted as each release is cut?
Separately: the 2.0 notes say overridden _run_async_impl methods are bypassed, but on the Runner path they still run in 2.0.0 and 2.15.1 (repro script linked). Should the docs say this applies only to agents run as workflow nodes?
I'm happy to do the work for any of these.
- 主要語言
- Python
- 星號
- 22.3k
- 分支
- 4.4k
- 平均合併
- 1 天 2 小時
- 30 天內合併 PR
- 6
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
google/adk-python 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 72/100
google/adk-python#8360 ·
維護者通常 3 天內回覆
-
難度 2/5 1-3 小時 新手友好度 82/100
google/adk-python#8359 ·
維護者通常 3 天內回覆
-
Can pin to litellm version be changed?可能已有人在做 @llalitkumarrr 於 10 天前認領。 未關閉models
難度 1/5 1 小時以內 新手友好度 65/100
google/adk-python#8129 · 2 則留言 · 已指派 1 人 ·
維護者通常 3 天內回覆
-
OpenAPI tools ignore operation- and path-level server overrides可能已有人在做 @sanketpatil06 於 14 天前認領。 未關閉tools
難度 2/5 1-3 小時 新手友好度 75/100
google/adk-python#8064 · 4 則留言 · 已指派 1 人 ·
維護者通常 3 天內回覆
-
Two docstrings in openapi_tool document parameters the signatures do not accept可能已有人在做 @surajksharma07 於 17 天前認領。 未關閉
難度 1/5 1 小時以內 新手友好度 88/100
google/adk-python#8024 · 1 則留言 · 已指派 1 人 ·
維護者通常 3 天內回覆
查看 google/adk-python 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 72/100
vllm-project/vllm#70030 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
TigreGotico/tugaphone#408 ·
維護者通常 1 天內回覆
-
needs-triage
難度 2/5 1-3 小時 新手友好度 74/100
gke-labs/kube-agents#7308 ·
維護者通常 1 天內回覆
-
t: bug
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 3 天內回覆
-
chore
難度 1/5 1-3 小時 新手友好度 88/100
lugassawan/swe-workbench#841 ·