Skip to content

Track When a Pinned Host-Tool Version Line Should Move #1170

Done

Description

@ptr727

Raised out of #1166. The fleet pins one version line per host tool and has no mechanism that notices when upstream ships a later one, so the decision to move is made whenever somebody happens to look.

The state today

winget publishes Python as one package id per minor line, Python.Python.3.0 through Python.Python.3.14, and host-setup/windows/install-tools.ps1 pins Python.Python.3.13. A pinned per-line id is a fixed release that can never advance, so -Upgrade python only ever moves 3.13.x and never reaches 3.14, which was 3.14.7 in the catalog when this was written. Microsoft.DotNet.SDK.10 has the same shape and the same question when .NET 11 ships. node is the one tool that does not, because OpenJS.NodeJS.LTS is a floating id that follows the LTS line on its own.

The floor in spec/host-tools.json is a genuine minimum rather than a target: a Linux distribution ships the line it ships, so a host at the floor and a host above it both pass. That is deliberate and is not what this issue asks to change. What is missing is the signal that a later line exists and is worth adopting.

The mechanism already exists here

.github/workflows/check-upstream-version-task.yml is a hub-hosted reusable task built for exactly this shape: a resolve-upstream hook action resolves current upstream versions, the task diffs them against a committed state file, and it opens a rolling App-signed pull request naming only what moved. auto-merge: false routes that pull request to a human instead of the merge bot. ESPHome-NonRoot runs two instances of it in production, one of them with auto-merge: false.

The hub has never pointed it at itself. It carries no scheduled workflow calling the task and no .github/actions/resolve-upstream/, so those two pieces are the whole gap.

Why the pin stays pinned

The maintainer's call, recorded here so it is not relitigated: the tracker opens a pull request and a human moves the pin. Moving the Python line has to move with pyproject.toml's three settings (target-version = "py313", python_version = "3.13", pythonVersion = "3.13") and the three CI python-version: "3.13" settings in .github/actions/validate/action.yml and .github/workflows/validate-task.yml. An installer that followed the newest line on its own would put hosts ahead of what ruff, mypy and pyright are configured for, and Linux hosts could not follow it anyway since the distribution decides there.

What this issue needs

A design pass before any code: what the state file watches (a resolved latest line per pinned tool, or the full catalog), where it lives, how a bump pull request names the settings that must move with the pin, and whether dotnet and python share one tracker or take one each.

Activity

  1. added
    enhancement
    on Sep 5, 2026
  2. ptr727 commented on Nov 1, 2026

    @ptr727
    OwnerAuthor

    Decision needed (decision triage, 2026-11-01)

    Question: For the host-tool version tracker pointing check-upstream-version-task.yml at the hub, should the state file record one resolved latest line per pinned tool or the full upstream catalog, and should dotnet (Microsoft.DotNet.SDK.10) and python (Python.Python.3.13) share one tracker or have one each?

    Options, recommended first:

    1. One tracker, latest line per tool (recommended): A key per pinned tool holding its newest upstream line (python "3.14", dotnet "10") changes only when a new line ships, the only event a human acts on since pins are per line. The task supports exactly one resolve-upstream hook per repo and already accepts a multi-key object naming only moved keys, so no task change. Use auto-merge: false. No work in flight.
    2. One tracker, full catalog: Every patch release on any line opens a bump PR asking nobody to move a pin: churn routed to a human. No work in flight.
    3. One tracker per tool: The hook path is fixed, so this needs a new hook-path input on the shared task reaching the ESPHome-NonRoot callers, gaining nothing since a shared tracker's PR names each moved tool. No work in flight.

    Evidence: check-upstream-version-task.yml header ("a JSON object of name -> version, one key or several for a multi-component pin"), fixed uses: ./.github/actions/resolve-upstream, diff "naming only components that moved". The PR body lists keys only, so naming settings that move with a pin is a follow-on design point. The hub has no .github/actions/resolve-upstream/ or caller yet. install-tools.ps1:621, :626 hold the pins. The issue records the maintainer's call that a human moves the pin.

    Blocks: none

  3. added
    decision
    on Nov 1, 2026
  4. ptr727 commented on Nov 1, 2026

    @ptr727
    OwnerAuthor

    Maintainer answer (decision triage, 2026-11-01): Option 1: one tracker, one key per pinned tool holding its newest upstream line, with auto-merge false. This is now work for the next burndown round.

  5. removed
    decision
    on Nov 1, 2026
  6. ptr727 commented on Nov 24, 2026

    @ptr727
    OwnerAuthor

    Released (2026-11-24): PR #4412 merged to develop at 36189e8; branch and worktree cleaned up, so this claim holds no files. The issue closes on promotion. A live run of the tracker is owed to the maintainer.

    Backlog burndown claim (away run 2026-11-24, round 3, group 3): branch burndown/host-tool-line-tracker, issue #1170.

    Per the maintainer's answer of 2026-11-01 (option 1), there is one tracker. It has one key per pinned host tool, holding that tool's newest upstream line (for example python 3.14, dotnet 10), with auto-merge: false. The pin itself stays a human's move, as this issue records.

    Predicted files, all new:

    • a scheduled caller under .github/workflows/ that calls the hub's check-upstream-version-task.yml.
    • .github/actions/resolve-upstream/action.yml, the task's required hook, with any resolver script beside it.
    • the committed state file the task diffs against.
    • a test for the resolver under tests/.

    check-upstream-version-task.yml itself is not in this claim and is not edited.

    Files as created: .github/workflows/check-host-tool-lines.yml, .github/actions/resolve-upstream/{action.yml,dotnet.jq,python.jq}, host-tool-lines.json, tests/test_resolve_upstream.py.

    • spec/divergences.json, one accepted gap row for .github/actions/resolve-upstream/action.yml (granted 2026-11-24: the audit would otherwise flag adopters' required hook as hub-only content).

    Any other group needing one of these files waits for this branch to merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions