Repository navigation
feat(pkg): install-test matrix for native packages — 7 distro cells, one canonical harness - #147
Conversation
…one canonical harness scripts/pkg-install-test.sh is the single canonical definition of the package test matrix (R3): task pkg:test runs it locally and the release-packages workflow calls the SAME script per format after each build, gating the tag-triggered release upload. Each cell installs the freshly built artifact in a throwaway rootless-podman container and asserts dep auto-resolution, charly version == build CalVer, and welded-plugin project-less dispatch. Cells cover every maintainer-supported distro version (verified 2026-07-18 against endoflife.date): arch + cachyos (repo's own box/cachyos pin), debian:13, ubuntu:24.04 + ubuntu:26.04 (new), fedora:43 + fedora:44 (new). The 7-cell RDD spike passed all cells with zero dep drift on 26.04/44, so no pkg/<fmt> metadata change was needed. taskfiles/Build.yml gains pkg:test + the version-bump runbook and a stale comment fix (rpm/deb build in rootless podman, not directly on the host). Assisted-by: Kimi Code Moonshot Kimi K3 (fully tested and validated)
pr-validator — CHANGES REQUESTED ❌Change class: hook/workflow (CI workflow + executable test script + task wiring + CHANGELOG; no Go/candy/box changes) — independently derived from the diff, matches the author's claim. Bound identities (verified by me, read-only): remote head Checklist
Comments considered: none (the PR carries no comments). Blocking finding — the workflow's own alias copies break the new install-test step in CIEach CI build job creates the stable-named release aliases before running the install-test (
The first tag push after merge — and the queued My verbatim evidence (final tree, HEAD 2c20143; binary + all 3 packages rebuilt by me from it at CalVer 2026.200.0038): (For completeness: my very first run failed on all pac+rpm cells because my rebuild landed next to the author's earlier 2026.199.2318 artifacts — my own environment mix, RCA'd, old artifacts moved aside inside the gitignored What the author must fix (same tree, append commit — your choice of mechanism): make the script's artifact selection alias-proof (e.g. exclude CI-run condition (recorded, not verdict-driving): run 29667352512 ( Decision: FAIL — the changed workflow cannot pass in its own CI venue. Fix in the same tree, re-push (status resets), and a fresh validator re-runs. On re-review I will re-run: clean-dist 7-cell gate, the CI-alias-layout replication, Assisted-by: Kimi Code Moonshot Kimi K3 (analysed on a live system) |
…e alias copies The fresh pr-validator's CI-layout replication caught that the build steps created the opencharly-amd64.* stable-named alias copies before invoking scripts/pkg-install-test.sh, so the script's globs matched both the canonical artifact and the alias: pacman -U fails on the duplicate target, dnf on the same-NEVRA pair (apt dedupes, so deb cells survived). The first tag push would have failed the new gate. Reordered: build -> install-test (globs see exactly one file per format) -> make stable-named release copies. Re-proven end-to-end in the new step order: all 7 cells PASS at 2026.200.0038, then the alias copies complete the release set. Assisted-by: Kimi Code Moonshot Kimi K3 (fully tested and validated)
pr-validator — APPROVED ✅ (fresh validator, round 2 — supersedes the round-1 FAIL on 2c20143)Change class: hook/workflow (CI workflow + executable test script + task wiring + CHANGELOG; no Go/candy/box/schema changes) — independently derived from the diff, matches the author's claim. Bound identities (verified by me, read-only): remote head Checklist
My verbatim evidence (final tree, HEAD 2f18dd8 — binary + all 3 packages rebuilt by me from it)The round-1 fix, verified three ways. (a) Static: in both jobs the step order is now Build → Install-test → "Make stable-named release copies (after the gate)" — the alias (One self-correction vs my spawn envelope: it claimed Comments considered: 1 — Cross-PR interactions considered: none-found — other open PRs #146 (agent control plane), #143 (claude-code installer), #118 (P16 kernel-manifest gate) have zero file overlap with this PR's 4 files (file lists pulled and compared). CI-run condition (recorded, NOT verdict-driving — my reasoning): run 29668403776 ( Decision: PASS — the round-1 blocking finding is root-fixed and re-proven; the class gate ran green on the final tree with zero warnings; every rulebook item positively confirmed by my own re-runs. Next: merge-time CalVer finalization (append-only), status on the final head, squash-merge with Assisted-by: Kimi Code Moonshot Kimi K3 (fully tested and validated) |
Assisted-by: Kimi Code Moonshot Kimi K3 (fully tested and validated)
pr-validator — LANDED ✅Final outcome of the PASS verdict posted above (every action verbatim): Follow-on state (recorded, not an anomaly of this change): the merge/tag pushes triggered Assisted-by: Kimi Code Moonshot Kimi K3 (fully tested and validated) |
Summary of changes
The native
charlypackages (.pkg.tar.zst / .rpm / .deb) were built and released with zero install testing — dependency drift on a new distro release would have shipped green. This change adds a single canonical install-test harness and wires it into CI, covering every distro version fully supported by the upstream maintainers today (verified 2026-07-18 against endoflife.date):scripts/pkg-install-test.sh(new) — the ONE canonical definition of the 7-cell matrix (R3): pac →archlinux:latest+ cachyos (this repo's ownbox/cachyosbase pin, never a duplicated digest); deb →debian:13,ubuntu:24.04,ubuntu:26.04(new); rpm →fedora:43,fedora:44(new). Each cell runs ONE throwaway rootless-podman container: metadata refresh → native install of the dist/ artifact with full dep auto-resolution → package-manager registration asserts →charly versionmust equal the build CalVer → welded command plugins dispatch project-less (charly doctorfrom /tmp). Runs the pac glob with the makepkg-debugsplit excluded.taskfiles/Build.yml— newpkg:testtask (deps: [pkg:all], invokes the same script); the version-bump runbook (support check → cell add/drop → dep-drift RCA into the owningpkg/<fmt>repo → the one-venue-per-format build container stays deliberate); stale-comment fix: rpm/deb builds run in rootless podman, not "DIRECTLY on the host"..github/workflows/release-packages.yml— each build job runs the same script for its format's cells right after building; a failing cell fails the workflow BEFORE the tag-guarded release upload. Header comment documents the gate. Review-round fix (2f18dd8): the install-test step now runs BEFORE theopencharly-amd64.*stable-named alias copies are made — the first validator's CI-layout replication caught that the script's globs otherwise match canonical+alias pairs (pacman -Uduplicate target,dnfsame-NEVRA), which would have failed the gate on the first tag push.CHANGELOG/2026.200.0000.md— entry (placeholder CalVer).Box-substrate support for ubuntu 26.04 / fedora 44 (new base entities,
distro.*.versionbumps, beds) is deliberately NOT in scope — this is package install+run support; the box cutover is a separate follow-up with fedora 43's 2026-12-09 EOL as its deadline.Change class
hook/workflow (CI workflow + executable test script + task wiring + docs). No Go, schema, candy, or box changes.
How R10-tested — exact gate, commands, and pasted output
workflow_dispatchrun from this branch (the workflow header's designed path) +bash -n+ the core Go pre-flight (go test ./...,go vet ./...,task build:binary).N/A— the change-class matrix requires nocharly checkbed for a CI/test-script change; the harness's own 7-cell live run IS the executable proof. The existing VM-bed witnesses (incl.check-charly-vm, the Arch pac localpkg witness in the root charly.yml) are untouched.task build:binaryin the PR worktree →bin/charly version=2026.199.2318(HEAD commit a1f834a); the artifacts under test were rebuilt from this tree (bin/charly box pkg pac rpm deb).scripts/pkg-install-test.shran end-to-end on the final tree, all 7 cells PASS against the worktree-built artifacts (output below). The two harness bugs it surfaced during development (an&&-chain redirect binding only the last command; a per-probe fresh-container design re-downloading the dep closure every probe) were RCA'd and root-fixed before this run.Each PASS line is backed by a per-cell log (
INSTALL-OK,REG-OKper dep,VERSION-OK,WELDED-CMD-PROJECT-LESS-OK,CELL-OK) preserved under the run's LOGDIR.Attribution tier
fully tested and validated — the changed harness executed live end-to-end on the fresh rebuild; every cell green.
Harness rulebook compliance — state HOW each is satisfied (or
N/A — <reason>)/charly-build:build(ownsbox pkg),/charly-check:check(change-class gate matrix),/charly-internals:git-workflow(landing) before editing.&&-chain redirect binding only the last command → subshell-wrapped( $install ) >/dev/null 2>&1; (2) per-probe fresh-container design re-downloading the dep closure 7×/cell → ONE container per cell; (3) worktree gate'sbox pkg rpm debfailing on uninitializedpkg/fedora/pkg/debiansubmodules → initialized, rerun. Final run: zero warnings, zero failures. A fourth finding — the batch premise "no Arch pac witness / stale cachyos claim" — was disproven by evidence:check-charly-vmexists in the root charly.yml and passes; no doc fix needed anywhere.charly.ymlalready owns the Arch VM witness) is recorded in the CHANGELOG, no action needed.task pkg:testand both CI jobs invoke it; the cachyos base ref is read frombox/cachyos/box/cachyos/charly.yml(never a second digest).podman run --rminvocations with fail-fastset -e.git grep pkg-install-testshows the script + its two call sites + CHANGELOG only.origin/main; root checkout untouched; no destructive git actions.charly version== build CalVer, and the welded plugin set at/usr/lib/charly/plugins/— the package boundary validated at its actual install surface.2026.199.2318); no new runtime OS deps (the script needs podman — already the CI substrate and a PKGBUILDdepends=entry).--rmcontainers (inherently disposable); the run is fresh-from-source; zero warnings.pkg/*PR was needed). ADE/SDD: N/A (no candy/schema changes).go test ./...+go vetgreen (above); no Go changes; scriptbash -nclean.CHANGELOG/2026.200.0000.mdstaged (placeholder CalVer — the pr-validator finalizes it).Assisted-by: Kimi Code Moonshot Kimi K3 (fully tested and validated)