Repository navigation
feat(a2a)!: upgrade 2.0.x to A2A protocol 1.0 with a2a-java-sdk 1.5.0.Final (#2507) - #3957
Open
Evader-lgb wants to merge 5 commits into
Open
Evader-lgb wants to merge 5 commits into
Evader-lgb wants to merge 5 commits into
Conversation
Collaborator
|
建议直接升级 1.4.0,我们不打算继续兼容 0.3.x。后续 2.0.5、2.0.6 也会直接走 1.4.0 |
Evader-lgb
force-pushed
the
bump-a2a-sdk-0.3.4
branch
from
November 8, 2026 13:32
01d121f to
c7d1e58
Compare
Author
|
明白,0.3.x 确实没必要再兼容了。那我来把 2.0.x 直接升级到 org.a2aproject.sdk:1.4.0.Final,会参考 main 的迁移方式处理包名和 API 变更,本地跑全量 verify + SSE 长流场景验证后更新到这个 PR 里。 |
|
Hi, 0.3.0 硬编码于 AgentScopeAgentCardConverter,这个问题修复了吗,什么时候发布 |
Author
|
修复了——本 PR 已包含 #3586 的改动(卡片 JSON 改由 SDK 生成,不再硬编码 0.3.0),同时把 A2A SDK 升到 1.4.0.Final。发布时间取决于维护者的 2.0.5 发版计划,可以关注这个 PR 的进展。 |
…va-sdk 1.5.0.Final Rebases the migration on top of the rewritten 2.0.x maintenance branch and resolves the conflicts the rewrite introduced: - bump a2a-java-sdk to 1.5.0.Final, matching what main runs today (main moved past 1.4.0.Final in agentscope-ai#4055); StreamTrackingHttpClient and its test come from main's current version since the 1.4.0-era copy referenced packages removed from the SDK - port the agent-capabilities extensions mapping of the Nacos A2A registry converter from main (method bodies only — the Nacos 3.3 API it uses there does not exist on 2.0.x) - drop test assertions on AgentCapabilities.stateTransitionHistory, which A2A 1.0 / SDK 1.5.0 removed Full reactor 'mvn -B -T1 clean verify' passes locally on JDK 17 (96 modules, 0 failures).
Evader-lgb
force-pushed
the
bump-a2a-sdk-0.3.4
branch
from
November 14, 2026 02:41
c7d1e58 to
1dc003a
Compare
preservesLegacyNamesWithRelativeNonNormalizedWorkDirectory relativized
the JUnit temp dir against the current working directory. On GitHub's
Windows runners the CWD (D:\a\...) and the temp dir (C:\...) can sit
on different drives, where Path.relativize throws IllegalArgument
('other' has different root) before the test body runs — the Windows
CI job has been failing intermittently for this reason, and with the
matrix fail-fast: true each such failure also cancels the pending
ubuntu build.
Anchor the relative, non-normalized work directory under target/
instead, which always shares the CWD's drive, so the test runs (and
still exercises the relative non-normalized path shape) on every
platform.
Author
|
说一下 CI 的情况:
|
我测试发现 2.0.5 的 agent card 还是用的 0.3 A2A 协议呀,SDK 还是用 0.3.3.Final ? |
Author
|
PR没进2.0.5,看后续官方的安排了。现在main上是1.5.0的版本了,所以这个PR升级到了1.5.0.Final |
This branch has not been deployed
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.

Closes #2507.
Summary
Upgrades the 2.0.x line from
io.github.a2asdk:*:0.3.3.Finaltoorg.a2aproject.sdk:*:1.4.0.Final(A2A protocol 1.0) by backporting the migration already shipped onmain:test(a2a): real-HTTP e2e tests for the A2A starterfix(a2a): A2A JSON generated by the SDK, card properties decoupled from SDK typesfeat(a2a)!: upgrade to A2A protocol 1.0 with a2a-java-sdk 1.4.0.FinalThis supersedes the original 0.3.4 bump of this PR: per review feedback, 2.0.x will not stay compatible with 0.3.x and 2.0.5/2.0.6 go straight to 1.4.0, so the branch has been reworked accordingly.
Why
InMemoryQueueManagerkept an unread copy of every event for theMainQueueand consumed a semaphore permit, so SSE task event streams stalled permanently once the default capacity (~1000 events) was reached (fixed upstream in fix: avoid unread main queue copies in default in-memory manager (0.3.x) a2aproject/a2a-java#1276 and released as 0.3.4). The rewritten 1.x SDK never had this bug.main, which already runsorg.a2aproject.sdk:1.4.0.Final.Backport notes
2.0.x, in this order; no other adaptations were needed.ToolProgressEventdoes not exist in the 2.0.x core) were dropped; everything else applies as-is.A2A-Versionheader are now rejected, same as onmain.Validation (JDK 17)
mvn clean verifypasses.