arch: make include/flatcar.yml the single source of truth for Flatcar pins - #143
Open
kylerankin wants to merge 5 commits into
Open
kylerankin wants to merge 5 commits into
kylerankin wants to merge 5 commits into
Conversation
… pins
include/flatcar.yml now declares every Flatcar upstream pin for the target
release - the version, kernel vermagic, and the vmlinuz / container / zfs
source sha256s - and every Flatcar element reads those values through
%{...} variable substitution instead of restating a literal.
- flatcar-kernel.bst and flatcar-zfs.bst reference
%{flatcar-kernel-vmlinuz-sha256}, %{flatcar-kernel-container-sha256} and
%{flatcar-zfs-sha256} instead of hard-coded refs.
- Add .github/scripts/check-flatcar-version.py, a grep-based gate (in the
spirit of check-release-version.py) that fails the build when any pinned
literal appears outside include/flatcar.yml in elements/ or files/.
- Wire the gate into 'just validate'.
- Add unit tests covering declared_pins(), the scan, and the live-tree
invariant.
Signed-off-by: kylerankin <kylerankin@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Makes
include/flatcar.ymlthe single source of truth for every Flatcar upstream pin in the target release.flatcar-kernel.bstandflatcar-zfs.bstread those pins via%{...}variable substitution instead of hard-coding refs..github/scripts/check-flatcar-version.py, a grep-based gate (in the spirit ofcheck-release-version.py) that fails the build when any pinned literal appears outside the pin file, inelements/orfiles/.just validate.Acceptance:
include/flatcar.yml.elements/andfiles/.just validatepython gates pass (release-version, k0s, flatcar).Closes #137.
— hive: backend=pi model=lemonade/Ornith-1.5-35B-A3B-GGUF-Q6_K
🐝 Hive Agent:
contributor| SHA:c6822b6