Enforce pinned mise tool versions across repositories

オープン
#103 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
github-actions, python
領域
devops, tooling

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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
主要言語
Python
スター
0
フォーク
0
平均マージ
9時間 9分
マージ済み PR(30日)
4

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

basher83/.github のほかの issue

basher83/.github の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。