Skip to content

Include podman-host assets in the deployable bundle - #24

Open
ChrisonSimtian wants to merge 1 commit into
mainfrom
fix/bundle-podman-host-assets
Open

ChrisonSimtian wants to merge 1 commit into
mainfrom
fix/bundle-podman-host-assets

Conversation

@ChrisonSimtian

Copy link
Copy Markdown
Collaborator

Description

BundlePaths() in build/Build.cs is hand-maintained and silently omits any asset directory not listed in candidates. #23 added podman-host/quadlets/ without touching it.

This one is especially easy to miss, and worth spelling out: the *.lxc.yaml glob already picks up podman-host.lxc.yaml. So a bundle carries the shape but not its quadlets — meaning a deploy from the release tag would create CT 3006, render zero units, and report success. That's precisely the failure mode the comment in BundlePaths() warns about:

⚠ HAND-MAINTAINED, and a new asset directory that is not added here is silently left out of the bundle rather than failing the build.

Nothing would have failed to tell you.

Change

 var candidates = new[]
 {
     "stack.yaml", "shell-assets",
+    "podman-host",
 };

With a comment recording why this specific omission was dangerous rather than just that it was missing.

Testing

./build.sh Bundle is the check. Note the validator is linux-x64 only, so on macOS ./build.sh fails at RestoreValidator — CI is the real gate here.

BundlePaths() is hand-maintained and silently omits any asset directory
not listed, and the previous commit added podman-host/quadlets/ without
touching it.

This one was especially easy to miss: the *.lxc.yaml glob already picks
up podman-host.lxc.yaml, so a bundle would carry the SHAPE but not its
quadlets. A deploy from the release tag would create CT 3006, render
zero units, and report success — the exact silent-omission failure the
comment in BundlePaths() warns about.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

This branch has not been deployed

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

Labels

bug Something isn't working ci-cd Continuous integration / delivery infrastructure.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant