ci: start each shipped tool once from its packaged plugin copy

Abierto
#2,170 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@Anurag-S1ngh ya está trabajando en esto.

Desde el 20/11/2026.

  • #2211 de @Anurag-S1ngh — abierto

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
57/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
github-actions, python

Línea de trabajo

Read tools/dev/check-family-plugins.py, especially _packaged_pyproject, and inspect the existing workflows under .github/workflows. Copy plugin tools outside the checkout and probe their entry points with the supplied uv commands; the two tools without project scripts need another probe. Done means CI verifies packaged tools can resolve and start, with the coverage scope chosen by maintainers.

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

Descripción

What

Nothing in CI starts a tool from its copy under plugins/magpie-*/tools/. tools/dev/check-family-plugins.py copies framework tools into plugins and rewrites each copied pyproject.toml (_packaged_pyproject) so the tool resolves without the uv workspace. The tests assert the rewritten text. plugins/pyproject.toml excludes the copied tools/ trees from mypy and pytest. I found no test or workflow that resolves or starts a tool from its copy (searched .github/workflows and tools/*/tests).

Why it matters

#1357 and part of #1937 fixed copies that uv could not resolve on a marketplace install. Each was found after it shipped.

Suggested fix

A CI job that copies the plugin tools/ trees outside the checkout and starts each tool once. On main at ff313989 this worked for two tools, with --offline:

uv run --project tools/local-tracker magpie-local-tracker --help
uv run --project tools/maildir maildir-draft-find --help

27 of the 29 copied pyproject.toml files list entry points under [project.scripts]. typed-decision and security-tracker-stats-dashboard list none and need a different probe. Whether to cover every copy or a sample, given the CI cost, is the maintainers' call.

Related

#1357, #1937

Lenguaje dominante
Python
Estrellas
152
Forks
133
Merge medio
12 h 39 min
PR fusionados (30 d)
384

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 apache/magpie

Todos los issues de apache/magpie

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.