(test) API acceptance setup fails with 409 'user already exists' from the account fixture
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
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
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Agenta-AI/agenta
-
[Bug] Jinja2 variables used only inside {% if %} / {% for %} are missing from input_keys, so invoke returns 400Forse già presa @mmabrouk l’ha presa 9 giorni fa. Apertabug frontend
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
Agenta-AI/agenta#7669 · 3 commenti · 1 reazione · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
Agenta-AI/agenta#7654 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
Agenta-AI/agenta#7468 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
(bug) The Stop button disappears for a moment before an approval card showsForse di nuovo libera @rishu685 l’ha presa 20 giorni fa e non c’è nessuna pull request aperta. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
Agenta-AI/agenta#7446 · 2 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
Agenta-AI/agenta#7441 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di Agenta-AI/agenta
Issue simili
-
e2e-failure ready-to-code
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
redhat-developer/rhdh-plugin-export-overlays#4616 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
I maintainer di solito rispondono entro 1 giorno
-
ai-handle
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
nextlevelbuilder/dewee-web-v2#73 ·
I maintainer di solito rispondono entro 1 giorno
-
backend bug good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
PoCInnovation/Distribox#255 ·
I maintainer di solito rispondono entro 1 giorno