Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[Flaky test] TestA2AServer_MultipleRequests

Aperta
#4,687 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@dgageot ci sta già lavorando.

Dal 22/10/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

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.

Lingua principale
Go
Stelle
4.6k
Fork
522
Merge medio
10h 33m
PR unite (30g)
231

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di docker/docker-agent

Tutte le issue di docker/docker-agent

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.