The same Test object may be used several times

Aperta
#255 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python
Ambito
testing

Direzione di ricerca

Start with lib/worker.py at lines 300-304 and reproduce the issue with ./test/test-run.py -j1 --force foo/bar.test.lua foo/bar.test.lua. Trace how the Test ID and is_crash_reported state are reused across runs. Done means repeated executions no longer suppress failure logs or introduce the other corner-case problems described.

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

Descrizione

code health complicated

See:

https://github.com/tarantool/test-run/blob/1f6d7ba65938f2feefeeab158625fb2ca820887e/lib/worker.py#L300-L304

When we run something like ./test/test-run.py -j1 --force foo/bar.test.lua foo/bar.test.lua, the same Test object will be used, because it has the same ID ('foo/bar.test.lua', None) — (test_name, conf_name). Usually it does not lead to any problem, but there are corner cases.

Say, if we report a failure (last log lines and so on), we store the fact that the fail was reported in is_crash_reported in the Test instance. If both runs fails, the second will not show logs.

Not sure, whether it may lead to other problems.

Lingua principale
Python
Stelle
13
Fork
19
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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 tarantool/test-run

Tutte le issue di tarantool/test-run

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.