Skip to content

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
agentscope-ai:2.0.xfrom
Evader-lgb:bump-a2a-sdk-0.3.4
Open

Evader-lgb wants to merge 5 commits into
agentscope-ai:2.0.xfrom
Evader-lgb:bump-a2a-sdk-0.3.4

Conversation

@Evader-lgb

@Evader-lgb Evader-lgb commented Nov 3, 2026 •

Copy link
Copy Markdown

Closes #2507.

Summary

Upgrades the 2.0.x line from io.github.a2asdk:*:0.3.3.Final to org.a2aproject.sdk:*:1.4.0.Final (A2A protocol 1.0) by backporting the migration already shipped on main:

commit backport of
test(a2a): real-HTTP e2e tests for the A2A starter #3573
fix(a2a): A2A JSON generated by the SDK, card properties decoupled from SDK types #3586
feat(a2a)!: upgrade to A2A protocol 1.0 with a2a-java-sdk 1.4.0.Final #3590

This 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

Backport notes

Validation (JDK 17)

  • Full reactor mvn clean verify passes.
  • The A2A starter e2e suite (real HTTP, incl. SSE streaming tests) passes.
  • [Bug]: a2a sse接口事件超过1000的时候会导致卡住 #2507 reproduction: streamed a reply of 1500 text-delta events over real HTTP SSE — completes in ~4s with no stall, where 0.3.3 hung permanently at ~1000 events (scratch test, kept local).

@CLAassistant

CLAassistant commented Nov 3, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@jujn

jujn commented Nov 7, 2026 •

Copy link
Copy Markdown
Collaborator

建议直接升级 1.4.0,我们不打算继续兼容 0.3.x。后续 2.0.5、2.0.6 也会直接走 1.4.0

@jujn jujn added the P2 重要不紧急 label Nov 7, 2026
@Evader-lgb Evader-lgb changed the title fix(a2a): bump A2A Java SDK to 0.3.4 to unblock long SSE event streams (#2507) feat(a2a)!: upgrade 2.0.x to A2A protocol 1.0 with a2a-java-sdk 1.4.0.Final (#2507) Nov 8, 2026
@Evader-lgb

Copy link
Copy Markdown
Author

明白,0.3.x 确实没必要再兼容了。那我来把 2.0.x 直接升级到 org.a2aproject.sdk:1.4.0.Final,会参考 main 的迁移方式处理包名和 API 变更,本地跑全量 verify + SSE 长流场景验证后更新到这个 PR 里。

@zengja5

zengja5 commented Nov 11, 2026

Copy link
Copy Markdown

Hi, 0.3.0 硬编码于 AgentScopeAgentCardConverter,这个问题修复了吗,什么时候发布

@Evader-lgb

Copy link
Copy Markdown
Author

修复了——本 PR 已包含 #3586 的改动(卡片 JSON 改由 SDK 生成,不再硬编码 0.3.0),同时把 A2A SDK 升到 1.4.0.Final。发布时间取决于维护者的 2.0.5 发版计划,可以关注这个 PR 的进展。

guslegend0510 and others added 4 commits November 14, 2026 08:49
…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 Evader-lgb changed the title feat(a2a)!: upgrade 2.0.x to A2A protocol 1.0 with a2a-java-sdk 1.4.0.Final (#2507) feat(a2a)!: upgrade 2.0.x to A2A protocol 1.0 with a2a-java-sdk 1.5.0.Final (#2507) Nov 14, 2026
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.
@Evader-lgb

Evader-lgb commented Nov 14, 2026 •

Copy link
Copy Markdown
Author

说一下 CI 的情况:

  • windows job 的失败全在 agentscope-harness(5 失败 + 13 错误),都是 Windows 路径/环境相关的问题,这个模块本 PR 没有改动。
  • linux job 被 fail-fast 连带取消了,一直没跑起来;本地用同样的命令(mvn -B -T1 clean verify)全量跑过,96 个模块全绿。
  • SkillBox 那个跨盘符问题已经在 597cada 里顺手修了。harness 这批属于同类环境问题,需要的话我单独开个 PR 修。

@zengja5

zengja5 commented Nov 16, 2026 •

Copy link
Copy Markdown

修复了——本 PR 已包含 #3586 的改动(卡片 JSON 改由 SDK 生成,不再硬编码 0.3.0),同时把 A2A SDK 升到 1.4.0.Final。发布时间取决于维护者的 2.0.5 发版计划,可以关注这个 PR 的进展。

我测试发现 2.0.5 的 agent card 还是用的 0.3 A2A 协议呀,SDK 还是用 0.3.3.Final ?

io.agentscope\agentscope-extensions-a2a-server\pom.xml
image

@Evader-lgb

Copy link
Copy Markdown
Author

PR没进2.0.5,看后续官方的安排了。现在main上是1.5.0的版本了,所以这个PR升级到了1.5.0.Final

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 重要不紧急

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants