Skip to content

Decide How a Carrier's docker_lint.py Behaves Before Its hub_fetch_run.py Fetches the Docker Lint Digest Manifest #4397

Done

Description

@ptr727

Decision needed (away-mode backlog burndown, 2026-11-24, round 2, group 1), parking #1727.

Question: When the Docker lint images move to a Dependabot-tracked digest manifest per #1727's recorded answer, how should a carrier's docker_lint.py behave while its carried catalog/snippets/hub_fetch_run.py is still an older copy that fetches the script alone, with no manifest beside it?

The 2026-11-01 answer on #1727 (option 1) says one manifest feeds validate-task.yml, repo_gate.py, and scripts/docker_lint.py. For the reusable workflow and repo_gate.py, the python-tool-pins precedent (#3640) settles how the manifest is reached. For docker_lint.py in a carrier it does not. A carrier runs docker_lint.py through its carried hub_fetch_run.py, which fetches the script fresh from hub main with COMPANIONS["scripts/docker_lint.py"] = (), so the script arrives alone. Adding the manifest to that tuple fixes new copies. Every existing carried copy keeps fetching the script alone until that carrier resyncs, and the moment the change reaches main, the fresh docker_lint.py finds no manifest.

Options, recommended first:

  1. Fail loudly and name the resync (recommended). docker_lint.py exits non-zero when the manifest is not beside it, and its message says to resync hub_fetch_run.py from the hub. Reason: it matches the fetcher's own stance that a fetch failure fails the caller loudly rather than silently skipping a gate, and it keeps one copy of the pins. CI is unaffected, since the reusable workflow and the repo gate read the manifest at the hub pin. Cost: every carrier's local Docker lint tasks (the VS Code EditorConfig, Workflows, Markdown, Spelling, ShellCheck, and shfmt tasks) fail until that carrier's hub_fetch_run.py is resynced.
  2. Fall back to unpinned tags with a warning. When the manifest is absent, docker_lint.py prints a WARN and pulls the moving tags as it does today. Reason against: the tags then live in two places, the manifest and a fallback copy in docker_lint.py, and the fallback copy is the kind of pin nothing keeps current. Local runs in a stale carrier silently differ from CI until it resyncs.

What each option does to the parked work: neither changes the planned design below. It decides only docker_lint.py's missing-manifest branch and its tests. Nothing is committed yet. Branch burndown/docker-lint-digest-pins has no commits and no pull request.

Planned design (unchanged by the choice above):

  • The manifest: a new composite action .github/actions/docker-lint-pins/ holding a never-built Dockerfile. It has one FROM <registry>/<image>:<version-tag>@sha256:<digest> AS <linter> line per image: editorconfig-checker, shellcheck, shfmt, and powershell, plus the local-only actionlint, markdownlint-cli2, and cspell that docker_lint.py also runs.
  • The readers: the action's action.yml reads the Dockerfile from $GITHUB_ACTION_PATH and outputs one image reference per stage, like python-tool-pins. validate-task.yml reaches it as $/.github/actions/docker-lint-pins, drops --pull=always, and wraps each pull in a bounded retry. repo_gate.py reads the sibling Dockerfile from the hub tree its action runs from. docker_lint.py reads it at its hub-relative path, also with a bounded retry around docker pull.
  • Dependabot: a docker ecosystem pair, main and develop, on /.github/actions/docker-lint-pins.
  • Version tags pinned alongside digests, not latest, so Dependabot's docker ecosystem has a version to compare. The tags read live on 2026-11-24 include ghcr editorconfig-checker 4.0.2, mirror.gcr.io shellcheck v0.11.0, and mirror.gcr.io shfmt v3.14.1. MCR powershell publishes suffixed tags only.
  • The carrier fetch: catalog/snippets/hub_fetch_run.py COMPANIONS["scripts/docker_lint.py"] gains the manifest path, so a fetched tree carries it beside the script.
  • Risk: mirror.gcr.io's tag list holds only the tags it has cached, so a Dependabot bump of a mirror.gcr.io image may lag upstream releases.

Files the design needs beyond #1727's claim:

  • .github/actions/docker-lint-pins/action.yml, a second new file beside the manifest.
  • catalog/snippets/hub_fetch_run.py (carried content) and tests/test_hub_fetch_run.py.

Carried and host docs the change makes false, to update with it:

  • catalog/snippets/husky/README.md:30 ("Docker at :latest").
  • catalog/snippets/pre-commit/README.md:55 ("Docker at :latest").
  • host-setup/linux/README.md:188, which names the shellcheck:stable and shfmt:latest containers.

Blocks: #1727. No pull request is open for it.

🤖 Generated with Claude Code

Activity

  1. added
    decision
    on Nov 24, 2026
  2. ptr727 commented on Nov 24, 2026

    @ptr727
    OwnerAuthor

    Maintainer's answer, 2026-11-24 (recorded at the session handoff): option 1. Fail loudly and name the resync: docker_lint.py exits non-zero when the manifest is not beside it, and its message says to resync hub_fetch_run.py from the hub. Carriers' local Docker lint tasks fail until each one resyncs, which is accepted. #1727 resumes on the design in this issue.

  3. removed
    decision
    on Nov 24, 2026
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions