Skip to content

tasks: versions, bump and lint:workflows are go-tools', taken by one include - #140

Merged
aledbf merged 2 commits into
mainfrom
tasks/shared
Nov 22, 2026
Merged

aledbf merged 2 commits into
mainfrom
tasks/shared

Conversation

@aledbf

@aledbf aledbf commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

Why

The maintenance tasks every spin-stack repository has should mean the same thing in each one, whoever wrote the prompt that day. go-tools now ships them once (spin-stack/go-tools#135) as a Taskfile inside its release. The site pinned everything in versions.yaml and had no task that says what is behind, and nothing linted its workflows.

What changed

  • go.mod: go-tools from the 2026-11-09 pseudo-version to v0.20261122.5. Its cmd/task names the shared Taskfile in GO_TOOLS_TASKS, and its versions/gate counts a Taskfile that includes the shared tasks as reading the pins they read (task: what the first two rollouts found: the gate sees the include, no release older than the command, scopes, a dry release go-tools#137).
  • Taskfile.yml: one flattened include of that file. versions, bump, lint:workflows, release and consumers now exist here under the names every repository uses. The include has no vars.
  • versions.yaml: an actionlint pin (v1.7.12, kind module), which lint:workflows runs. The gate test in tools/sources accepts it as read through the include, and no line of this repository spells the read.
  • gate runs lint:workflows, so a pull request that breaks a workflow fails Gate.
  • README.md: says which tasks are go-tools' and that a source's pin moves with sources:bump.

Scope

  • sources:bump and tools/sources are unchanged. bump NAME=spin and sources:bump call the same go-tools function to rewrite the entry, but sources:bump also refuses a release older than the pin, waits for the release to carry site-shots.tar.gz, fetches the checkouts, and rewrites the prices and the blog list. The shared bump does none of that, so it does not replace it.
  • No pin moves. spin and brand are behind today and stay where they are: the sync's pull request (sources: spin v20261121.03 89c5eb5ea9, brand main bc30803128 #138) and the website follows the brand's new direction #139 own those.
  • No page, component or design changes.
  • The repository defined none of the five shared names, so nothing is deleted.

Blast Radius

  • Every go tool task call in this repository now needs go-tools' release archive to hold tasks.yml. Per task: what the first two rollouts found: the gate sees the include, no release older than the command, scopes, a dry release go-tools#137, cmd/task at this version asks GitHub again when its cache names a release older than v20261122.05, so a fresh stamp no longer hides the file. It was not hit in this branch's runs.
  • Gate has one more step. It compiles actionlint with go run on the runner.
  • The image's sfw is built from the new go-tools version.
  • release refuses (missing required variables: GATE_WORKFLOW, GATE_JOBS) and consumers refuses (no consumers.toml). Both are intended: the site has no tag and nobody copies from it.

Verification

Run in a worktree of this branch, exit statuses read directly.

  • go tool task --list: exit 0, the five shared tasks listed beside the site's own.
  • go tool task versions with a token that reads spin: exit 201, 2 behind (spin and brand), which is what the sync's pull request moves.
  • go tool task lint:workflows: exit 0 on the three workflows. With a planted workflow using actions/checkout@v7 and an undefined expression: exit 201, actionlint's error printed.
  • go tool task release: exit 206, missing required variables: GATE_WORKFLOW, GATE_JOBS.
  • go tool task consumers: exit 201, no consumers.toml: this repository names nobody that copies from it.
  • go test ./tools/sources: exit 0. With actionlint removed from versions.yaml: exit 1, Taskfile.yml includes go-tools' tasks, and its task lint:workflows reads actionlint: versions: there is no actionlint in versions.yaml.
  • go tool task gate: exit 0, linkcheck: 517 pages, every link resolves.
  • go tool task reference:check: exit 0. With gate, that is all of check.
  • Not run: upload, deploy, sources:bump, sync:*.

Part of spin-stack/go-tools#135

🤖 Generated with Claude Code

…include

The site pinned everything in versions.yaml and had no task that says what is behind, and no
lint of its workflows. go-tools ships those tasks once (spin-stack/go-tools#135), the same
names and arguments in every repository, and the Taskfile includes them.

- go-tools moves to v0.20261122.4, whose cmd/task names the shared Taskfile in GO_TOOLS_TASKS.
- No vars on the include: the site has no tag and no consumers.toml, so `release` and
  `consumers` refuse.
- versions.yaml pins actionlint v1.7.12, which lint:workflows runs. The versions gate
  (tools/sources/repo_test.go) finds its reader in the Taskfile's comment, since the shared
  file is outside the tree.
- gate runs lint:workflows. The three workflows pass it as they are.
- sources:bump stays. `bump` moves one pin; a source's pin also needs the release to hold the
  screenshots, the checkout fetched and the prices and posts rewritten, which only
  sources:bump does.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

go-tools v0.20261122.5 (spin-stack/go-tools#137) taught versions/gate that a
Taskfile including go-tools' tasks reads the pins those tasks read, so
versions.yaml's actionlint counts as read through the include. The sentence
that spelled `versions version actionlint` beside it existed only for the gate
to match, and is deleted. What the comment says of bump and sources:bump stays.

With the pin removed tools/sources' gate test now fails naming the task:
`Taskfile.yml includes go-tools' tasks, and its task lint:workflows reads
actionlint: versions: there is no actionlint in versions.yaml`.

Part of spin-stack/go-tools#135

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
aledbf added a commit to spin-stack/go-tools that referenced this pull request Nov 22, 2026
…r it

A row whose upstream did not answer was a row with a note and no count. website
asked without a token got a 404 for its private upstream and `1 behind` where
there were 2 (spin-stack/website#140); spin-machine's qemu, pinned at
11.2.0-rc0, got `strconv.Atoi: parsing "0-rc0"` and `8 behind` with no word of
it (spin-stack/machine#529). A missing token read as nothing more to bump.

upstream.Status has Unread: the upstream did not answer, or answered what the
pin cannot be ordered against. Behind says nothing of such a row. check marks
it `not read:`, counts it apart, says how many rows the count of what is
behind is of, and exits 2 where a row behind exits 1, as diff does for a file it
could not read. The versions task keeps the worst status of its files, so a
later file that is only behind does not hide one that was not read. A kernel
series that is over was read, and so was an entry that follows another.

A pin with a -suffix after its numbers is now ordered by the tags track, not
refused. A release tag is numbers alone, so the comparison this package has is
of numbers, and what it can say of 11.2.0-rc0 is that 11.2.0 is newer and
11.1.2 is not. A pin that starts with no number is said to be one the track
cannot order, which is a row not read.

Part of #135

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
aledbf added a commit to spin-stack/go-tools that referenced this pull request Nov 22, 2026
release exported gh's token when none was set; versions and bump did not. A
repository with a private upstream - website pins spin - had to be run as
`GITHUB_TOKEN=$(gh auth token) go tool task versions`, and without it the
private row was a 404 (spin-stack/website#140).

Both tasks now take gh's token when neither GITHUB_TOKEN nor GH_TOKEN is set.
A workflow's token is left as it is and gh is not asked. Where gh is logged
out or not there the task runs without a token, which release cannot: check
marks what it could not read and fails for it.

Part of #135

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
aledbf added a commit to spin-stack/go-tools that referenced this pull request Nov 22, 2026
`versions bump spin v20261024.01` moved website's pin from v20261114.01 to a
release three weeks older and exited 0 (spin-stack/website#140). website's own
`sources:bump` refuses that, and the rule is nobody's in particular, so it is
upstream.Bump's: every repository's command that bumps through it has it.

Backwards is what can be ordered. A version, by the numbers it starts with,
refused before anything is fetched: that also stops a bump with no version
named where the upstream's latest is older than the pin, which refresh now
leaves where it is rather than failing or moving it. And a commit, for a git
entry of a GitHub repository whose versions say neither way - a branch, or a
commit of main moved to a tag: GitHub's compare is asked whether the pinned
commit already holds the new one, which is website's rule that a pin on main
moves only to a release that holds it. Where GitHub cannot be asked the bump
is refused. Branches that parted are not called backwards, a version that
starts with no number is not ordered, and an entry tracked with another goes
where that one is.

upstream.BumpBackwards, `versions bump -back` and `task bump BACK=1` are the
bump of a person who means it.

Part of #135

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@aledbf
aledbf merged commit 2bc1d37 into main Nov 22, 2026
1 check passed
@aledbf
aledbf deleted the tasks/shared branch November 22, 2026 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant