Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

tests: golden files + bless mode for the suite runner's assertion blocks

Abierto
#1,298 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
45/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
shell

Línea de trabajo

Start by reading tests/run_all_tests.sh, focusing on its assertion-block sections and how the suite runner selects and reports them. Run the suite on main and record the current wc -l value before identifying the five largest sections. Done means those sections use checked-in golden files, --bless

rewrites the expected-output files, unchanged main passes, and a planted output change produces a readable diff that bless resolves.

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

Descripción

area:gates kind:decision

Split from #1275 (plan step 4; see the DoD check in #1275). #1275's DoD bounds tools/, not the suite runner, so this is its own work.

Problem. Much of tests/run_all_tests.sh (7,606 lines) is hand-written grep -qE / count assertions. Each one is code that can be wrong, and each new case adds more assertion code.

Prior art. rustc compiletest compares against checked-in .stdout/.stderr files, and --bless regenerates them for review as an ordinary diff. LLVM uses RUN: + FileCheck. The checker is diff, so it needs no self-test.

Done when:

  • The runner has a bless mode (--bless <section>) that rewrites a section's expected-output files.
  • The five largest assertion-block sections are converted to golden files and pass unchanged on main.
  • A deliberate output change in one converted section fails with a readable diff, and --bless fixes it (planted once, recorded in the PR).
  • wc -l tests/run_all_tests.sh before and after is recorded here.
Lenguaje dominante
C
Estrellas
3
Forks
7
Merge medio
3 h 58 min
PR fusionados (30 d)
105

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

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 InauguralSystems/EigenScript

Todos los issues de InauguralSystems/EigenScript

Issues similares

Más issues de C

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.