Skip to content

[go/googleadk] expect ADK 2.8.0's new behavior in tests and the README - #601

Merged
campoy merged 1 commit into
mainfrom
fix/googleadk-adk-go-2.8
Nov 17, 2026
Merged

campoy merged 1 commit into
mainfrom
fix/googleadk-adk-go-2.8

Conversation

@campoy

@campoy campoy commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

What was changed

ADK Go 2.8.0 came out today, and the nightly picks it up. Five tests fail with it. Each one pins ADK behavior that 2.8.0 changes on purpose:

Test What ADK 2.8.0 changes
TestAggregateResponsesGeminiTerminalAuthoritative Gemini's last streamed response keeps ModelVersion (google/adk-go#2070)
TestGeminiModelErrorIsNonRetryable (blocked prompt, empty reply) A non-streamed reply with no candidates is a response with an ErrorCode, not an empty response error (google/adk-go#2068)
TestMCPToolConfirmationResumeHonorsCurrentToolFilter A call to an unknown tool gets adk-python's message instead of "not found" (google/adk-go#2316)
TestRemoteSubAgentErrorNotRetried, TestRemoteSubAgentStreaming A remote agent returns A2A errors from Run instead of turning them into error events (google/adk-go#1740)

The plugin code needs no change: it follows the new behavior, and nothing is retried that wasn't before. For example, an A2A error still fails after one Activity attempt; with 2.8.0 it now also fails the run, as it does without Temporal.

go.mod keeps ADK 2.6.0, so CI tests 2.6.0 on pull requests and the newest ADK every night. A new test helper, ADKAtLeast, reads the ADK version from go.mod, and each of these tests expects the behavior of the version it runs on. Why go.mod and not the build info? I tried the build info first, but test binaries don't record dependency versions: debug.ReadBuildInfo returns no deps at all. go.mod works because -mod=readonly keeps it equal to the versions in the build. This makes golang.org/x/mod a direct dependency, for tests only.

The blocked-prompt stub now has a blockReasonMessage, so on 2.8.0 the test can check that the block reason reaches the run as an error event.

The README described the old behavior in two places: A2A errors and a blocked Gemini prompt. Both now say what changes from 2.8.0.

Why?

A red nightly blocks the go/googleadk release. Couldn't we raise the floor to 2.8.0 and drop the old behavior instead? It would make the tests simpler, but 2.8.0 came out today, and its release notes list a breaking change of its own. That's too new to require from everyone at GA.

Checklist

  1. Closes: no issue yet. The nightly hasn't run since ADK 2.8.0 came out. A run with the newest dependencies on main shows the failures: https://github.com/temporalio/ai-integrations/actions/runs/44004694511

  2. How was this tested: in go/googleadk,

    • with the committed go.mod (ADK 2.6.0), make lint, make test (with and without -race) and make build pass.
    • with the newest allowed dependencies (make sync-latest, ADK 2.8.0), make lint, make test TEST_ARGS=-race and make build pass. Before this change, make test failed in the five tests above.
    • with ADK pinned back to 2.7.1 and everything else at its newest, the five tests passed before this change, so 2.8.0 is the only cause.
  3. Any docs updates needed? The README, updated here.

ADK Go 2.8.0 changes four behaviors that tests pin: Gemini's last streamed
response keeps ModelVersion, a non-streamed reply with no candidates is a
response instead of an "empty response" error, an unknown tool call gets
adk-python's message, and a remote agent returns A2A errors from Run
instead of error events. go.mod keeps ADK 2.6.0, so the nightly runs 2.8.0
while pull requests run 2.6.0. A test helper, ADKAtLeast, reads the ADK
version from go.mod, and each test expects the behavior of the version it
runs. The README now says what changes from 2.8.0 for A2A errors and
blocked Gemini prompts.
@campoy
campoy requested a review from a team as a code owner November 17, 2026 03:07
@campoy
campoy merged commit 19aece7 into main Nov 17, 2026
124 of 129 checks passed
@campoy
campoy deleted the fix/googleadk-adk-go-2.8 branch November 17, 2026 04:30
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