Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

[Flaky test] TestA2AServer_MultipleRequests

Đang mở
#4,687 0 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@aheritier đang làm issue này rồi.

Từ ngày 21/10/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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.

Ngôn ngữ chính
Go
Star
4.6k
Fork
522
Merge trung bình
8 giờ 43 phút
Pull request đã merge (30 ngày)
239

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của docker/docker-agent

Tất cả issue của docker/docker-agent

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.