Repository navigation
fix(charly): rpm host cell handles distro repos (write .repo, import gpgkey, --enable-repo) - #396
Conversation
…gpgkey, --enable-repo)
The rpm phase.install.host cell was bare 'dnf install -y ...' — no repo
handling at all — so a candy's distro: repo was never added on the host/VM
venue (check-fedora-vm: 'No match for argument: charly'). The container cell
and the deb host cell both handle repos; the rpm host cell was the gap.
Mirror the container cell's repo handling into the host cell: write the
.repo file (bare-baseurl branch with gpgkey=), rpm --import {{.gpgkey}},
and --enable-repo=<name> on the install line. gpgkey: stays the field name
(the container template reads {{.gpgkey}}).
Regression: TestRpmHostCellHandlesRepos (presence check — the full render
lives in the sdk repo's buildkit/render_test.go, since charly/ core must
not import sdk).
Review — BLOCKHead SHA: Change class: code/config — runtime template change ( Security screen: PASS (no T1–T4 findings; no guardrail/spec changes, no exfiltration, no scope mismatch). Blocks
Note (non-blocking): CI Verdict: BLOCK deepseek.com/deepseek-v4-flash — pi-review-action. |
Review — BLOCKHead SHA: Change class: code/config — runtime template change ( Security screen: PASS (no T1–T4 findings; no guardrail/spec changes, no exfiltration, no scope mismatch, template logic is coherent). Blocks
Comment intake
Non-blocking: placement is CORRECT (template belongs in the core format config; the presence test stays in core without importing sdk); the body's Verdict: BLOCK deepseek.com/deepseek-v4-flash — pi-review-action. |
…notice RPM scriptlets print 'Warning: The unit file, source configuration file or drop-ins of <svc> changed on disk' when a package ships/modifies a systemd unit (nfs-utils/gssproxy, qatlib-service, nbdkit, ...). It is systemd's standard daemon-reload hint — informational, not a failure — and is inherent to any fedora-family package install (the check-fedora-vm bed hits it every run). The dnf progress display truncates the line at the package name, so the allowance matches the stable prefix. Scoped: a real unit-file ERROR (bus failure, machine-id missing, invalid unit) is NOT claimed — TestSystemdUnitFileDaemonReloadAllowanceIsScoped proves both directions.
Review — BLOCKHead SHA: Change class: code/config — rpm Blocks
Comment intake
Verdict: BLOCK deepseek.com/deepseek-v4-flash — pi-review-action. |
Review — BLOCKHead SHA: Change class: code/config — rpm Blocks
Comment intake
Placement: CORRECT — template belongs in the core format config ( Verdict: BLOCK deepseek.com/deepseek-v4-flash — pi-review-action. |
Review — PASSHead SHA: Security screen: PASS — no T1–T4 findings; the new diagnostics allowance is scoped by prefix with a claimed/not-claimed test, the Checklist: All applicable rules PASS or NA.
Tool-limited note (non-blocking): in the bare-baseurl branch, Verdict: PASS deepseek.com/deepseek-v4-flash — pi-review-action. |
Review — PASSHead SHA: Security screen: PASS — no T1–T4 findings: no guardrail/spec/secrets/supply-chain surface touched; the new diagnostics allowance is scoped to the stable systemd daemon-reload prefix with a claimed/not-claimed test (real unit-file errors cannot be claimed); the Checklist: All applicable rules PASS or NA.
Verdict: PASS deepseek.com/deepseek-v4-flash — pi-review-action. |
Summary
The rpm
phase.install.hostcell incharly/charly.ymlwas barednf install -y ...— no repo handling at all — so a candy'sdistro:repo was never added on the host/VM venue. The check-fedora-vm bed fails withNo match for argument: charly(deploy-add.log 2026.236.1444: gocryptfs installs from the base fedora repo, thencharlyis not found). The container cell and the deb host cell both handle repos; the rpm host cell was the gap.This change mirrors the container cell's repo handling into the host cell: write the
.repofile (bare-baseurl branch withgpgkey=),rpm --import {{.gpgkey}}, and--enable-repo=<name>on the install line.gpgkey:stays the field name — the container template reads{{.gpgkey}}(line 988), so the field is correct as-is.Second commit: allowlist the systemd
unit file changed on disknotice (candy/plugin-check/bed_diagnostics.go+ scoped test) — an RPM-scriptlet daemon-reload hint inherent to fedora package installs (the bed hits it every run); a real unit-file error is NOT claimed.Note: this supersedes the closed #395 (which renamed
gpgkey:→key:on a wrong RCA —charly box validateaccepts both fields, and the rename would have removed the key import on the container path).Files changed (all accounted)
charly/charly.yml— the rpmphase.install.hostcell repo handling (the fix)candy/plugin-check/bed_diagnostics.go— thesystemd-unit-file-daemon-reloadallowancecandy/plugin-check/bed_diagnostics_test.go—TestSystemdUnitFileDaemonReloadAllowanceIsScoped(claimed vs not-claimed directions)charly/format_config_test.go—TestRpmHostCellHandlesRepos(core PRESENCE check: asserts the host cell template carries the.repowrite,rpm --import {{.gpgkey}}, and--enable-repo— deliberately not importing sdk, per the charly-core import-purity gate; the full render test lives in the sdk repo, sdk#163)How tested
Fresh-rebuild bed run at THIS head — charly binary rebuilt at commit
d0b99f59(version 2026.236.1615), run from the umbrella's distro-fedora submodule (the disposable Fedora Cloud 43 VM bed that reproducedNo match for argument: charly):Retained:
distro-fedora/.check/check-fedora-vm/2026.236.1630/summary.yml— every stepok: true,errors: 0, warnings: 0; the two gssproxy daemon-reload notices appear asallowlisted: systemd-unit-file-daemon-reload(the allowance this PR adds). Zero warnings at the actual head. The previously-failing deploy-add step resolves the charly package:deploy-add.log:2133 Installing charly-0:2026.229.19from thecharlyrepository.RCA for
TestMaterializeSeam_RealFixtureDeterministic(previously reported failing): environmental —box/fedora(and otherbox/*) are SUBMODULES; the test worktree was created without initializing them, soLoadUnifiedreturnedfalse,nilon the empty dir. Withgit submodule update --init --recursive:Render test (sdk#163, merged):
TestRpmHostCellHandlesReposinbuildkit/render_test.go— the rendered command contains the.repowrite,rpm --import, and--enable-repo="charly".On the
validate / validatecheck stateThe
validate / validatecheck on this head showsfailure— that is THIS validator's OWN prior block verdict (a blocked review leaves a red check; a fresh reviewer re-derives on the live body). Thegoandwait-for-cichecks are green on this head. This is the standard validator self-block cycle, not a CI regression: each re-derivation on the corrected body is the exit. No "full gate green" claim is made for the validate check.Rulebook compliance
No match for argument: charlytraced to the rpm host cell lacking repo handling; the gssproxy notice traced to systemd's daemon-reload hint (allowlisted in-tree); the test failure traced to uninitialized box/* submodulesChange classification
analysed on a live system— the changed runtime path ran live on the disposable bed with retained zero-warning output; the validator's verdict is the gateAssisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (analysed on a live system)