Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[Flaky test] TestA2AServer_MultipleRequests

オープン
#4,687 コメント 0 件 リアクション 0 件 担当者 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
フォーク
522
平均マージ
10時間 33分
マージ済み PR(30日)
231

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

docker/docker-agent のほかの issue

docker/docker-agent の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。