fuzz: keep the fuzz corpus from one scheduled run to the next

Abierto Apto para principiantes
#862 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 4 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
68/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
github-actions, rust
Área
ci-cd, testing

Línea de trabajo

Lee .github/workflows/fuzz.yml y el contenido actual de fuzz/seeds/; la issue recomienda minimizar periódicamente el corpus de fuzzing con cargo fuzz cmin y hacer commit del resultado. Primero comprueba cómo ejecuta el workflow los objetivos de fuzzing y cómo están organizadas las semillas. Se considera terminado cuando el workflow sigue sin caché y un cambio revisado actualiza el corpus incluido en el repositorio.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

What is wrong

Each Fuzz run starts from the committed seeds in fuzz/seeds and discards the corpus it builds. @robinnsc found on #798 that five of the six targets were still finding new coverage in the last second of the 60-second pull request run (comment). The 600-second daily run starts from the same seeds each day, so most of each run covers the same inputs as the run before.

Where

  • .github/workflows/fuzz.yml
  • fuzz/seeds/

What to change

Two options:

  1. An Actions cache of the corpus that only the scheduled job writes, and that pull request runs do not restore. The Fuzz workflow uses no cache, and the release workflows leave the Actions cache out on purpose because of the CodeQL cache-poisoning query. A pull request workflow can restore a cache that a run on main wrote, so any pull request could read the cached corpus.
  2. A corpus that a maintainer minimizes with cargo fuzz cmin and commits to fuzz/seeds at intervals, in a pull request that gets the same review as any other change.

Recommendation

Option 2. The workflow stays free of caches, and a reviewer sees each change to the corpus.

Lenguaje dominante
Rust
Estrellas
517
Forks
60
Merge medio
5 d 4 h
PR fusionados (30 d)
76

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de ExtendDB/extenddb

Todos los issues de ExtendDB/extenddb

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.