Repo checker: a result with only unknown or unchecked packages shows "Fix it" and copies a fix prompt that lists nothing

Abierto Apto para principiantes
#253 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
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
78/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
javascript, node.js
Área
frontend

Línea de trabajo

Empieza en renderNext() en site/check/check.mjs, donde isClean pasa a false cuando h.unknown > 0, y en fixPrompt() en site/check/check-logic.mjs, donde las filas sin huecos caen en unchecked. Añade en check-logic.mjs una nextSection(h, notChecked) exportada que devuelva el título y si hay que mostrar el prompt, y luego úsala en renderNext(). Está terminado cuando los casos solo con unknown y solo con not-checked muestren "Check it locally" con el copy-prompt oculto, los casos con huecos más unknown sigan mostrando "Fix it", y node --test tests/site/check-logic.test.mjs tests/site/check-page.test.mjs pase sin conexión.

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

Descripción

bug good first issue

When the only problem in a result is packages that couldn't be checked (unknown, no gaps), the repo checker still shows the Fix it section with "Copy a fix prompt for your coding agent". The prompt it copies says gaps were found and then lists none:

Read from site/check/ on main, and fixPrompt() run in Node for a result with one unknown row and no gaps:

In o/r, wheelgap found dependencies in uv.lock with no prebuilt wheel for some of the platforms we target (Python 3.13 on linux-x86_64), so they'd be compiled from source or fail to install.

Check each bump against our version constraints (a new major version may need code changes), update the lockfile with the project's own tool, and confirm with:
  uvx wheelgap uv.lock -p 3.13 -t linux-x86_64
...

There is nothing to bump. The same happens for a result with no gaps where a private index's packages weren't checked (the page test pins "Fix it" for both cases today). The headline for the unknown-only result is right ("No package is missing a wheel, but 1 of 3 couldn't be checked …"); what's left to do is run the check locally, where it can see what the page couldn't.

Where

  • renderNext() in site/check/check.mjs: isClean is false when h.unknown > 0, so the title is "Fix it" and copy-prompt / prompt-note stay visible.
  • fixPrompt() in site/check/check-logic.mjs: rows with no gaps are skipped (fixFor() returns unchecked), so an unknown-only result gives the opening sentence and no list.

What to do

  • Add a small exported function in check-logic.mjs, e.g. nextSection(h, notChecked), that returns the title and whether to show the prompt: "Keep it green" (clean, as now), "Fix it" with the prompt (any gap, as now), and "Check it locally" without the prompt when there are no gaps but some unknowns or some packages not checked. Use it in renderNext().
  • The CLI command under it stays as it is (with --index-url YOUR_INDEX_URL when packages weren't checked).

Done when

  • Tests in tests/site/check-logic.test.mjs for the three cases, including gaps and unknowns together ("Fix it"). The unknown-only one fails on main (or, if you add the function, show in the PR that renderNext() gave "Fix it" for it before).
  • In tests/site/check-page.test.mjs, the withUnknowns and withPrivate cases (they assert "Fix it" today) now expect "Check it locally" with copy-prompt hidden; withGaps is unchanged.
  • node --test tests/site/check-logic.test.mjs tests/site/check-page.test.mjs passes. The tests need no network.
Lenguaje dominante
JavaScript
Estrellas
0
Forks
0
Merge medio
1 h 37 min
PR fusionados (30 d)
134

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

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 wheelgap/tracker

Todos los issues de wheelgap/tracker

Issues similares

Más issues de JavaScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.