Skip to content

fix(deps): support Google ADK 2.11 - #1220

Merged
yaozheng-fang merged 1 commit into
volcengine:mainfrom
evanlowe:fix/adk-211-compatibility
Nov 14, 2026
Merged

yaozheng-fang merged 1 commit into
volcengine:mainfrom
evanlowe:fix/adk-211-compatibility

Conversation

@evanlowe

Copy link
Copy Markdown
Contributor

The <2.8 cap introduced in #1164 avoided incompatible ADK tool-dispatch internals. This fixes the compatibility issues reproduced on 2.11 and widens both the base and eval dependency ranges to google-adk>=2.7.0,<2.12.0. The lock file selects 2.11.0; the LiteLLM range is unchanged.

Changes:

  • Patch each supported ADK generation's actual tool-dispatch entry point. Use ADK 2.11's native RunConfig thread pool, preserve VeADK Agent defaults and parallel run_code session isolation, and keep async tools on their caller's event loop.
  • Resolve dynamic agent transfers against the executing runtime clone while retaining ADK's transfer restrictions and per-session isolation.
  • Preserve Studio CLI lazy GenAI imports when ADK reads Client and generation-field metadata during startup. Reuse the deferred-type mechanism and derive field names/aliases from the installed SDK; real validation and OpenAPI generation remain available on first use.

Validation on 2026-11-14, commit 9fcdf918 (Python 3.12.15, macOS; two regression workers):

  • pass — uv run --locked --all-extras python -m pytest -n 2 -m 'not codex_smoke and not piagent_smoke': 8471 passed, 57 skipped, 4 xfailed.
  • pass — uv run --locked --all-extras pre-commit run --all-files, including Ruff, secret scans and dependency policy; git diff --check.
  • pass — real in-memory Runner/thread-pool/dynamic-transfer checks across ADK 2.7.1, 2.8.0, 2.9.0, 2.10.0 and 2.11.0. Older releases use official ADK source with the same surrounding dependencies; tests for absent upstream features are explicitly skipped.
  • pass — the complete CLI startup test file on 2.7.1 and 2.11.0: 36 passed on each. Independent review also verified Client validation/identity, field aliases, first-request/OpenAPI behavior and deferred-type instance checks.
  • pass — wheel build, installed project dependency check, and scripts/check_dependency_e2e.py --dist-dir <wheel-dir> declared-range: all nine highest allowed dependency pins resolve using the built wheel's metadata. Initial network timeouts cleared on rerun.
  • pass — base/eval metadata resolution for Python 3.10 and 3.12, without uv.lock.
  • pass — installation into an empty Python 3.12 environment (325 runtime packages), replacement with the wheel built from this commit, uv pip check, isolated import smoke, and 23 runtime/CLI contract tests against the installed wheel from outside the checkout. This resolves GenAI 2.34.0, while the locked full regression uses GenAI 2.22.0.

Compatibility and limits: public Python call signatures are unchanged. ADK 2.12+ remains outside the supported range because this change only adapts through 2.11. Local tests use stub model responses and do not call cloud providers. Real Codex/Pi smoke runs and Linux/Windows runtime validation were not run locally; the repository's existing CI covers its configured platforms. This PR does not publish a PyPI release.

@yaozheng-fang
yaozheng-fang merged commit b847b4a into volcengine:main Nov 14, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants