Repository navigation
[go/googleadk] expect ADK 2.8.0's new behavior in tests and the README - #601
Merged
Merged
Conversation
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.
brianstrauch
approved these changes
Nov 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
TestAggregateResponsesGeminiTerminalAuthoritativeModelVersion(google/adk-go#2070)TestGeminiModelErrorIsNonRetryable(blocked prompt, empty reply)ErrorCode, not anempty responseerror (google/adk-go#2068)TestMCPToolConfirmationResumeHonorsCurrentToolFilterTestRemoteSubAgentErrorNotRetried,TestRemoteSubAgentStreamingRuninstead 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.ReadBuildInforeturns no deps at all. go.mod works because-mod=readonlykeeps it equal to the versions in the build. This makesgolang.org/x/moda 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/googleadkrelease. 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
Closes: no issue yet. The nightly hasn't run since ADK 2.8.0 came out. A run with the newest dependencies on
mainshows the failures: https://github.com/temporalio/ai-integrations/actions/runs/44004694511How was this tested: in
go/googleadk,make lint,make test(with and without-race) andmake buildpass.make sync-latest, ADK 2.8.0),make lint,make test TEST_ARGS=-raceandmake buildpass. Before this change,make testfailed in the five tests above.Any docs updates needed? The README, updated here.