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

(test) API acceptance setup fails with 409 'user already exists' from the account fixture

Aperta
#7,082 1 commento 1 reazione 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
backend, testing

Direzione di ricerca

Start by reading api/oss/tests/pytest/utils/accounts.py and tracing how the account fixture generates email addresses; then inspect the POST /admin/simple/accounts/ handler mentioned in the issue. Reproduce or investigate the intermittent 409 in the API acceptance setup, and verify that repeated or parallel fixture runs no longer collide while the acceptance tests pass.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

🤖 The AI agent says:

What happens

On PR CI, tests / run-api-tests (acceptance) sometimes fails in test setup with a 409 from the account-minting fixture:

AssertionError: Expected 200, got 409: {"detail":{"message":"User with email '<random>@...' already exists"}}

The failing test is not the thing under test. Setup fails before the test body runs.

Where we saw it

Three PRs into release/v0.120.0 on 2026-09-22, none of which touched the API test fixtures or auth:

  • #7070: 2 setup errors in TestWorkflowsBasics
  • #7073: 2 setup errors in TestWorkflowsBasics
  • #7080: 1 setup error in test_env_backed_retrieve_policy.py::test_workflows_env_refs_without_key_or_artifact_returns_400

Each run otherwise passed about 770 cases. The stage test workflows against staging and oss.preview did not show it.

Expected

The fixture mints a fresh account every time, and setup never collides with an earlier account.

Likely cause (not verified)

The email the fixture generates is not unique enough across parallel CI jobs or reruns that share one API instance, so two fixtures can pick the same address. See api/oss/tests/pytest/utils/accounts.py and the POST /admin/simple/accounts/ handler.

Impact

CI noise only. It trains people to merge past a red API acceptance job, which hides real failures.

Lingua principale
TypeScript
Stelle
4.8k
Fork
690
Merge medio
21h 29m
PR unite (30g)
434

Preparare l'ambiente

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 Agenta-AI/agenta

Tutte le issue di Agenta-AI/agenta

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.