Repository navigation
fix(check): exempt pip's resolver-conflict notice when the install completes - #343
Conversation
The google-chrome-stable RPM's %post scriptlet runs rpm --import to install Google's signing key while dnf still holds the transaction lock. The import fails with 'can't create transaction lock on /usr/lib/sysimage/rpm/.rpm.lock' and 'key N import failed', tripping the charly build gate (errors_fatal: true) on every Fedora bed that composes the chrome candy. Add option: [--setopt=tsflags=noscripts] to the candy's distro.fedora block. The key is still installed by the repo: gpgkey: at repo-add time, outside the transaction, so package verification is unaffected. RDD confirmed no scriptlet-created artifact is lost. Assisted-by: Claude Code deepseek-v4-flash:cloud (fully tested and validated)
Assisted-by: Claude Code deepseek-v4-flash:cloud (fully tested and validated)
…mpletes The bed-diagnostics gate (candy/plugin-check/bed_diagnostics.go) scans every step log for error:/warning: lines and fails the step on any non-allowlisted error-tier line (errors_fatal: true). pip's dependency resolver prints this notice when the environment ALREADY carries packages that conflict with the install's requirements, then installs anyway and exits 0. The severity-prefix recognizer matches the ERROR: prefix, so every image build that runs pip against a pre-populated environment failed its step — observed live in box/fedora's check-jupyter-ml-pod bed (2026.231.0749): vllm's pinned requirements vs the pixi.toml loose pins produced the notice, the install completed, the image tagged — and the gate failed the step anyway. A conditional error-tier allowance `pip-resolver-conflict-recovered`, following the pacman-mirror-retrieval-recovered precedent: the line is exempt ONLY when the same step log proves the install completed (`Successfully installed ...`). If pip never reports success, the entry does not claim the line and the step still fails. The %s subject-tie in allowanceRecovered is now OPTIONAL: an entry whose RecoveredBy carries %s keeps the token-tied form (pacman), and one that omits it uses the recovery pattern as-is, still conditional on the same step log proving the operation recovered. The step boundary is the tie: a step log is one pip invocation. Assisted-by: Claude Code deepseek-v4-flash:cloud (fully tested and validated)
pr-validator — CHANGES REQUESTED ❌Change class: code/config (Go — Head SHA validated: The pip allowance change itself is correct and well-provenI re-derived everything independently. The core change is sound:
Blocking findingsF1 — Two cutovers in one PR; the second is already landed on The PR's diff (vs merge-base F2 — The PR's own CHANGELOG contradicts the PR body's R10 claim (R1 documentation divergence in the cutover's own new prose).
F3 — Attribution footer not in the required italicized form. The body ends with Checklist
Comments considered: none — the PR carried no comments. Cross-PR interactions considered: opencharly/charly has only this PR open; plugins/sdk/docs have none; opencharly/distro-fedora #18 (ollama bed) — no file overlap or interaction with this change, verified-non-blocking. Decision: FAIL — not merged. The author must fix:
Assisted-by: Claude Code deepseek-v4-flash:cloud (analysed on a live system) |
The R10 gate ran at 2026.231.1050 and passed; the changelog described it as pending. Past tense with the actual result.
pr-validator — CHANGES REQUESTED ❌Change class: code/config (Go — Head SHA validated: The change itself is sound — all three prior findings are fixedI re-derived everything independently; I did not trust the author's claims.
The code is correct
R10 evidence is REAL
Blocking findingF4 — The PR body is not in the template format and is missing the mandatory project-rulebook rule-compliance section (item 1). The template (
The change itself is correct and fully proven; the body must be restructured to the template format with the rule-compliance section filled in. Checklist
Comments considered: one comment — the previous validator's CHANGES REQUESTED verdict (atrawog). Its three findings (F1 two-cutovers, F2 CHANGELOG future-tense, F3 footer form) are all verified-fixed at the current head. Disposition: verified-non-blocking (findings resolved). Cross-PR interactions considered: opencharly/charly has only this PR open; plugins/sdk/docs have none; opencharly/distro-fedora #18 (ollama bed) — different repo, no file overlap with this change, verified-non-blocking. Decision: FAIL — not merged. The change itself is correct and fully proven; the three prior findings are fixed. The author must restructure the PR body to the template format: add the project-rulebook rule-compliance section (R0–R10 + pillars, one-line HOW each or Assisted-by: Claude Code deepseek-v4-flash:cloud (analysed on a live system) |
pr-validator — APPROVED ✅Change class: Head SHA validated: The changeThe bed-diagnostics gate ( The PR adds the conditional error-tier allowance Independent re-derivation (trusting none of the author's claims)
Checklist
Comments considered:
Cross-PR interactions considered:
Decision: PASS — merged. The change is correct, fully proven, and in full rulebook compliance. The three prior findings (F1–F3) and the round-2 finding (F4) are all verified-fixed at the current head. Assisted-by: Claude Code deepseek-v4-flash:cloud (fully tested and validated) |
…alVer 2026.231.1222 Assisted-by: Claude Code deepseek-v4-flash:cloud (fully tested and validated)
pr-validator — merge outcomeMerged (squash) as Assisted-by: Claude Code deepseek-v4-flash:cloud (fully tested and validated) |
Summary of changes
The bed-diagnostics gate (
candy/plugin-check/bed_diagnostics.go) scans every step logfor
error:/warning:lines and fails the step on any non-allowlisted error-tier line(
errors_fatal: true). pip's dependency resolver prints this notice when the environmentALREADY carries packages that conflict with the install's requirements:
…then installs anyway and exits 0. The notice is a description of the environment, not a
swallowed failure — but the
severity-prefixrecognizer matches theERROR:prefix, soevery image build that runs pip against a pre-populated environment failed its step. This
surfaced live in
box/fedora'scheck-jupyter-ml-podbed (2026.231.0749): vllm's pinnedrequirements vs the pixi.toml loose pins produced the notice, the install completed
(
Successfully installed SecretStorage-3.5.0 … fastmcp-3.4.7 …), the build tagged theimage — and the gate failed the step anyway.
candy/plugin-check/bed_diagnostics.go— adds the conditional error-tier allowancepip-resolver-conflict-recovered, following thepacman-mirror-retrieval-recoveredprecedent: the line is exempt ONLY when the same step log proves the install completed
(
Successfully installed …). If pip never reports success, the entry does not claim theline and the step still fails — the error tier keeps its teeth. The Match is anchored to
the exact fixed pip sentence (never a broad shape), and its RecoveredBy is pip's own
success line for the same invocation. Because the notice names no package, there is no
token to tie the recovery to — so
allowanceRecoverednow treats the%ssubject-tieas OPTIONAL: an entry whose RecoveredBy carries
%skeeps the token-tied form (pacman),and one that omits it uses the recovery pattern as-is, still conditional on the same step
log proving the operation recovered. The step boundary is the tie: a step log is one pip
invocation.
candy/plugin-check/bed_diagnostics_test.go—TestPipResolverConflictAllowanceIsConditionaldrives the entry three ways: the notice +
Successfully installed …is exempt; the noticealone is fatal; an unrelated
ERROR:line is NOT discharged by a pip success. The existingTestErrorTierEntriesAreConditional/TestConditionalErrorFailsWithoutRecovery/TestAllowlistEntriesAreWellFormedall still pass, so the pacman entry's token-tiedbehavior is unchanged.
CHANGELOG/2026.231.1026.md— the cutover narrative, R10 section in past tense with theactual result.
Change class
charlyGo code (the compiled-incommand:checkplugin's bed-diagnostics gate).Closes / relates to: the
check-jupyter-ml-podfailure at 2026.231.0749 (fedora PR #18roster). Relates to the
pacman-mirror-retrieval-recoveredprecedent it extends.Breaking change + rollback: none — adds one conditional allowance entry and makes the
%ssubject-tie optional inallowanceRecovered(an entry that omits%suses therecovery pattern as-is; the pacman entry's token-tied form is unchanged). Rollback is a
plain revert.
How R10-tested — exact gate, commands, and pasted output
charlyGo code →go test ./...+go vet+task build:charly(R9 freshness +charly versioncheck), thencharly check run <bed>for the bed whose kind matches the touched code path. The touched path is the
bed-diagnostics scanner — the gate is the consuming image's build,
check-jupyter-ml-podin
box/fedora, the EXACT bed that failed at 2026.231.0749.task build:binary,charly version=2026.231.0715(the worktreebinary carrying this fix; the bed's own
updateleg is a fresh rebuild).disposable: truetarget, fresh rebuild. The stale image + build-cache layerswere purged (
charly clean --invalidate '*jupyter-ml*'+charly clean --deep) so thefresh build reproduces the notice. Result:
[image-build] PASS after 8m40.729s [allowlisted=1 cache=27/279], summary reportserrors: 0, warnings: 0, allowlisted: 1withallowlisted: pip-resolver-conflict-recovered,and the bed passed all 13 steps (exit 0).
and the allowance claimed it, which is the changed path executing.
1. Unit gate:
2. Fresh-rebuild gate output:
Attribution tier
fully tested and validated. The changed path executed live on a disposable targetwith a fresh rebuild, zero warnings, and unit coverage that fails without the change.
Harness rulebook compliance
/charly-check:check,/charly-internals:strict-policy,/charly-internals:go,/charly-internals:git-workflow,/charly-internals:plugin.environment, not a swallowed failure (the install completes and exits 0). The fix is
conditional on the same log proving recovery, so an unrecovered notice still fails the
step. Zero errors and zero warnings on the R10 run.
entry; the
%s-optional tie is one shared abstraction inallowanceRecovered.its teeth (an install that never reports success still fails).
pip-resolver-conflict-recoveredappears only in thedefining code, the test, and
CHANGELOG/; no transitional paths.origin/mainmerged into the branch (b173d8a) to drop staleduplicate commits; no force-push, no pushed-history rewrite.
go test.N/A— no generation change in this repo.charly versionmatches; no new runtime OS dep.disposable: true, fresh rebuild, zero warnings. Coveragefails without the change — remove the allowance and the reproduced notice fails the step
(the unit tests pin the same three-way behavior).
was written. ADE —
N/A, no candy plan authored. SDD —N/A, no schema.N/A— nocharly/*.gotouched; the change is insidethe compiled-in
command:checkplugin (candy/plugin-check).disposable: truebed.gofmtclean,go vetclean,golangci-lint0issues,
go test ./...green.CHANGELOG/2026.231.1026.mdpresent, valid CalVer, R10 section in pasttense with the actual result.
Assisted-by: Claude Code deepseek-v4-flash:cloud (fully tested and validated)