Enforce pinned mise tool versions across repositories

Abierto
#103 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
25/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
github-actions, python
Área
devops, tooling

Línea de trabajo

Start with pinned() in portfolio/inventory.py, which defines what counts as an exact version, and with python-mise-fast-pr-gate.yml, the shared gate workflow. Check how Renovate's mise manager handles latest entries, and look at presets/mise.json and branch cursor/mise-terraform-preset-fixes-47f1 before choosing an option. Done means an approach is chosen and implemented, the eight listed repositories are pinned or have recorded exceptions, and the inventory's unpinned row reads 0.

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

Descripción

enhancement

Context

A tool declared as latest, or as a partial version such as 3.13, changes whenever upstream releases. That makes an upgrade automatic instead of chosen, and no PR records it. The repository inventory (#101) now records these versions as observed, marks them "unpinned" and counts them. It doesn't stop them. Enforcement has to happen in the repositories themselves. CodeRabbit raised the same concern; this comment explains why the inventory doesn't reject these values.

Current state

From the inventory at e825f20 (root mise.toml / .mise.toml only, private repositories):

Repository Unpinned tools Central Renovate preset Shared fast gate
nanny-rs-via-pi-until-done 7 yes no
skill-creator 7 yes no
the-range 7 yes no
llm-observability-stack 5 yes no
pi-dev-config 4 yes no
agent-vault-design 2 no Renovate config no
openprose-workflows 2 (uv latest, python 3.13) yes no
agent-skills-factory 1 yes no

In total that's 35 entries: 34 latest and one partial. Public repositories' tool versions are not yet inventoried, so this count is a floor, not the whole portfolio.

None of the eight calls the shared fast gate, and seven of them extend the central Renovate preset. Any enforcement added to the gate reaches none of them until they adopt it.

Options

  1. Shared fast gate check. Add a step to python-mise-fast-pr-gate.yml that fails when a mise.toml tool isn't pinned to an exact version. This only reaches repositories that adopt the gate (see #100).
  2. renovate-config preset. Have Renovate move mise tools to exact versions, then update them through reviewable PRs. This reaches the seven central-preset extenders. Check first how Renovate's mise manager treats latest entries; it may skip them rather than pin them, in which case a one-time manual pinning pass would be needed. Related: presets/mise.json currently automerges mise tool updates, and branch cursor/mise-terraform-preset-fixes-47f1 reworks mise approval groups.
  3. Both: Renovate keeps the pins current, and the gate catches regressions.

Definition of pinned

Exact x.y.z, optionally with a pre-release or build suffix. latest, stable, lts, partial versions (3.13, 22) and wildcards (3.*) all count as unpinned. This matches pinned() in portfolio/inventory.py, so the inventory's coverage row can track progress.

Done when

  • An enforcement approach is chosen and implemented.
  • The eight repositories above are pinned, or each has a recorded exception.
  • The inventory's "Private unpinned tool versions" row reads 0 repositories, apart from recorded exceptions.

Out of scope: migrating repositories onto the fast gate. That stays with #100.

References

  • #100: workflow survey and inventory decision
  • #101: repository inventory, including the unpinned flag
Lenguaje dominante
Python
Estrellas
0
Forks
0
Merge medio
9 h 9 min
PR fusionados (30 d)
4

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 basher83/.github

Todos los issues de basher83/.github

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.