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

test coverage is technically incorrect

Aperta
#282 1 commento 0 reazioni 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
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
rust
Ambito
testing-qa

Direzione di ricerca

Read the coverage workflow and the _test_as_root tests, then compare how coverage files are produced across binaries built with different feature flags. Run cargo llvm-cov report and inspect the mismatched data warnings; done means coverage is collected and reported in a way supported by cargo-llvm-cov without those mismatches.

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

Descrizione

help wanted ideas welcome tests

We currently try to generate a report from test coverage files that were produced by binaries build with different feature flags. This is not really correct AFAICS -- the instruction profiling is only meant to work with the binary it was compiled against, and cargo llvm-cov report doesn't support multiple runs in this way. I suspect this is the cause of the

% cargo llvm-cov report
warning: 207 functions have mismatched data
...

warnings we have. #223 will help reduce the problem, but _test_as_root is still going to be required and so the issue will still persist. In theory we could try to remove _test_as_root but there really is a lot of stuff that needs it and (because Rust's test harness is so emaciated) we cannot skip tests in an ergonomic way.

Lingua principale
Rust
Stelle
146
Fork
12
Merge medio
1g 16h
PR unite (30g)
20

Preparare l'ambiente

  • 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 cyphar/libpathrs

Tutte le issue di cyphar/libpathrs

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.