Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

[Flaky test] TestA2AServer_MultipleRequests

未关闭
#4,687 0 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 1 天内回复

@dgageot 已经在做这个了。

开始于 2026年10月22日。

评估

这个 Issue 还没有评估数据。

描述

area/a2a area/testing flaky-test

TestA2AServer_MultipleRequests (e2e/a2a_test.go:89) failed once during a full local task test run, then passed 3/3 when run alone and on a full rerun.

Where: startA2AServer, which the test calls at a2a_test.go:93. The agent-card request returned 404 instead of 200:

--- FAIL: TestA2AServer_MultipleRequests (2.57s)
    a2a_test.go:93:
        Error Trace: e2e/a2a_test.go:209
                     e2e/a2a_test.go:93
        Error:       Not equal:
                     expected: 200
                     actual  : 404

Environment: macOS (darwin), task test with .env.test, upstream main at e7f1ec394 plus test-only changes in unrelated packages (pkg/modelsdev, pkg/runtime, pkg/model/provider/anthropic; PR #4686). Nothing touching A2A, the server or e2e/.

Observation:

  • The server listens on :0 (all interfaces), and the test requests http://localhost:<port>/.well-known/agent-card.json right after starting a2aserver.Run in a goroutine.
  • A 404 means some HTTP server answered. A server that isn't ready yet would give a refused or hanging connection instead.

Hypotheses, not verified:

  1. The request reached another server. localhost can resolve to ::1 or 127.0.0.1, and a parallel test may own the same port number on the other address family.
  2. Run serves before the agent-card route is registered.

Listening on and requesting an explicit 127.0.0.1 would rule out the first. Polling the card until it answers 200, with a deadline, would make the test robust to the second.

主要语言
Go
星标
4.6k
派生
529
平均合并
13 小时 1 分钟
30 天内合并 PR
180

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

docker/docker-agent 的其他 Issue

查看 docker/docker-agent 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。