php / php/php-src

run-tests.php: Add a flag similar to --asan that skips tests when run under Valgrind

Aperta
#14,805 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Category: Tests Feature
Lingua principale
C
Stelle
40.4k
Fork
8.1k
Merge medio
2g 13h
PR unite (30g)
96

Descrizione

Description

I just ran 11k tests under Valgrind to try and find issues with one of my big PRs, and any test excepting an OOM failure will either time out or use all the memory before being killed.

It would be great if those could be skipped and not accidentally triggered.

Some relevant tests:

  • ext/standard/tests/gh14643_longname.phpt
  • Zend/tests/bug79836_4.phpt
  • tests/basic/bug67198.phpt (maybe)
  • tests/basic/enable_post_data_reading_05.phpt (maybe)

Other tests are those opening PHP procs and timing out:

  • ext/standard/tests/file/proc_open01.phpt
  • ext/standard/tests/http/gh11274.phpt
  • ext/standard/tests/streams/bug64433.phpt
  • ext/standard/tests/url/get_headers_error_003.phpt

And some tests seem to be bogus with Valgrind or an issue that we cannot fix:

  • ext/standard/tests/mail/mail_basic2.phpt
  • ext/standard/tests/mail/mail_variation2.phpt

Guida per i contributori

Apri la 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.

Direzione di ricerca

Inizia in run-tests.php leggendo come viene analizzato e applicato il flag esistente --asan. Esegui i test .phpt elencati sotto Valgrind per confermare i casi problematici, quindi verifica che il nuovo flag relativo a Valgrind salti i test previsti senza influire sulle normali esecuzioni dei test.

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

Valutazione

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

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.