Skip to content

ci: changed takes a part, whose pins and paths are internal/build's (#622) - #661

Merged
aledbf merged 3 commits into
mainfrom
fix/622
Nov 23, 2026
Merged

aledbf merged 3 commits into
mainfrom
fix/622

Conversation

@aledbf

@aledbf aledbf commented Nov 23, 2026

Copy link
Copy Markdown
Member

Why

A bump of any pin a part is built from has to rebuild that part. parts.yml and compat.yml kept their own copy of each part's pins in a --pins list, so a pin added to internal/build and missed in a workflow (Docker's six in #609, sparse three times in #656) silently kept the old build. Closes #622.

What

  • spin-machine-dev changed --part <part> takes the part's pins and paths, and those of the parts it is made with (build.Plan), from internal/build.Parts. Positional paths are only what a workflow adds (go.mod, the workflow itself, compat.yml's checks).
  • parts.yml and compat.yml name parts. The lists are gone, not policed by a test.
  • --pins stays for a check that is not a part: codeql.yml's patched trees, whose list repeats internal/patched (follow-up issue below).
  • The pins each step resolves to are the same as before. The image's union of e2fsprogs, systemd, openssh and image pins equals the old 15-entry list.

Verified

  • TestChangedSaysWhetherAPartBuilds commits a docker-ce pin change and an e2fsprogs/ change against a base and asserts --part image builds and --part kernel does not. The second reaches the image only through its Needs.
  • go tool task lint and the package tests pass locally.

🤖 Generated with Claude Code

…622)

parts.yml and compat.yml each repeated internal/build's part pins in a
--pins list, and #656 had to add sparse in three places. A pin added to
internal/build and missed in a workflow is a bump that does not rebuild
the part, and nothing fails. `changed --part <part>` reads the part's
pins and paths, with those of the parts it is made with, from
internal/build.Parts, so a workflow names the part and only the paths it
adds. --pins stays for codeql.yml's patched trees, which are not parts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
aledbf and others added 2 commits November 23, 2026 14:35
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…oot build ignored (#622)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@aledbf
aledbf merged commit d4fad9f into main Nov 23, 2026
14 checks passed
@aledbf
aledbf deleted the fix/622 branch November 23, 2026 17:44
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.

parts.yml's --pins repeat internal/build's part pins, and nothing keeps them in step

1 participant