Repo checker: a result with only unknown or unchecked packages shows "Fix it" and copies a fix prompt that lists nothing
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
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()insite/check/check.mjs:isCleanis false whenh.unknown > 0, so the title is "Fix it" andcopy-prompt/prompt-notestay visible.fixPrompt()insite/check/check-logic.mjs: rows with no gaps are skipped (fixFor()returnsunchecked), 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 inrenderNext(). - The CLI command under it stays as it is (with
--index-url YOUR_INDEX_URLwhen packages weren't checked).
Done when
- Tests in
tests/site/check-logic.test.mjsfor the three cases, including gaps and unknowns together ("Fix it"). The unknown-only one fails onmain(or, if you add the function, show in the PR thatrenderNext()gave "Fix it" for it before). - In
tests/site/check-page.test.mjs, thewithUnknownsandwithPrivatecases (they assert "Fix it" today) now expect "Check it locally" withcopy-prompthidden;withGapsis unchanged. -
node --test tests/site/check-logic.test.mjs tests/site/check-page.test.mjspasses. 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
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de wheelgap/tracker
-
bug good first issue
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
bug good first issue
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 42/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 3/5 Medio día Aptitud para principiantes 42/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 38/100
Los mantenedores suelen responder en 1 día
Todos los issues de wheelgap/tracker
Issues similares
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
louislam/uptime-kuma#8257 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
good first issue help wanted translation
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
bug documentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día