Repository navigation
fix(package): distinguish exec/infra failure from not-installed (deterministic token) - #11
Merged
Merged
Conversation
…rministic token) The package verb read the rpm||dpkg||pacman probe's EXIT CODE, conflating a genuine not-installed result with a podman-exec INFRA failure (store-write error exit 255) — so an installed package got the false verdict "installed=false, want true" under container-exec contention (check-debian-coder / check-jupyter-ml-pod mislabels). Exit was also distro-fragile (absent = 1 on arch, 127 on fedora/debian). Emit a deterministic INSTALLED/ABSENT token via an if-wrapper (always exit 0); anything else is surfaced as an exec/infra failure, never a false content verdict (matching the file verb). Unit-tested happy/absent/infra paths; live check box arch-test package checks PASS. De-staled the runPackage cue-comment refs + regenerated the candy params. Assisted-by: Claude (fully tested and validated)
…erb infra-failure distinction) Assisted-by: Claude (fully tested and validated)
Contributor
Author
pr-validator — APPROVED ✅Change class: code/config (charly Go test wiring + Fresh, independent re-validation (new context; none of the author's claims trusted).
Independent re-verification (verbatim):
Decision: The probe rewrite correctly emits a deterministic INSTALLED/ABSENT token (wrapper always exits 0) and surfaces any non-zero exit / missing token / RunCapture error as an exec/infra failure — never the false Assisted-by: Claude (fully tested and validated) |
This was referenced Aug 4, 2026
github-actions Bot
pushed a commit
that referenced
this pull request
Sep 7, 2026
…s) (#558) Consume the config:-verb wave: spec v0.2026250.957 (#117 config?/validate? contract, #118, #119 VerbCatalog, #120 InstallVerbs), sdk v0.2026250.948 (#237 emitter), plugin-box v0.2026250.1030 (#11 config rules), plugin-egress v0.2026250.951 (#3 crabbox-yaml egress schema). Add validate to the uniform-API genericConceptCollisions with justification (ops.OpValidate selector vs the config modifier — the venue precedent). Co-authored-by: atrawog <[email protected]>
github-actions Bot
pushed a commit
that referenced
this pull request
Sep 27, 2026
… leg) (#703) * test(check): add check-kindcluster-workload R10 bed (Phase 6 workload leg) The Phase 6 workload witness: a disposable kind cluster on podman with the locally-built `check-k8s-deploy-app` image loaded INTO the kind node via the engine-aware path (`kind load image-archive` — `kind load docker-image` is broken on podman, plan §2 #11) and applied through the SHARED kubernetes generator (the kindcluster cluster-policy surface is projected onto a `#Kubernetes` body, R3). Proves the `deploy:kindcluster` provider's workload preresolve (`resolveWorkloadImage` + `materializeKustomize`), the engine-aware load, and `kubectl apply -k` end to end. The `kube:` probes assert the workload Deployment object landed. Reuses the shared `check-kindcluster-cluster` template (R3 — no duplicated kindcluster block). *Assisted-by: OpenCode DeepSeek V4.1 Flash (fully tested and validated)* * test(check): fix the workload bed's kube: probe (apps/v1 group+version) + assert the pod scheduled The `kube: raw` probe needs the API group+version for a non-core resource: `kube_resource: deployments` alone failed with `list deployments: the server could not find the requested resource`. Add `kube_group: apps` + `kube_version: v1` + `namespace`/`name` (mirror check-k8s-deploy's own Deployment probe, R3), and add a `kube: pods` probe asserting the applied Deployment's pod is scheduled — the engine-aware `kind load image-archive` reached the node. *Assisted-by: OpenCode DeepSeek V4.1 Flash (fully tested and validated)* * docs(packaging): note the kindcluster workload apply's kubectl dependency The kindcluster deploy substrate's workload leg runs `kubectl apply -k`, so kubectl is needed for a kindcluster deploy that carries an image (cluster-only deploys do not). Updates the archlinux optdepends note. *Assisted-by: OpenCode DeepSeek V4.1 Flash (fully tested and validated)* * chore(deps): adopt the kindcluster image-load + check-runner fixes Bumps the pins the Phase 6 workload bed needs: - compiled-in plugin-check `v0.2026269.859 → v0.2026270.151` (plugin-check#64: build the image for an external-in-place deploy too — the kindcluster workload leg's image was never built). - the kindcluster beds' `plugin-kube` `@github` refs → `v2026.270.0155` (plugin-kube#10: `podman save -o -` writes a FILE named `-` rather than stdout, so `kind load image-archive` saw an empty archive). *Assisted-by: OpenCode DeepSeek V4.1 Flash (fully tested and validated)*
This was referenced Oct 14, 2026
install_opts with_service on a local: member does not reach the composed candy's service: entry
#950
Open
This was referenced Oct 24, 2026
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.
Summary
The
packagecheck verb read the exit code ofrpm -q || dpkg -s || pacman -Q: exit 0 = installed, anything else =installed=false. That conflated a genuine not-installed package with an exec/infra failure (the podman exec died — store-write error exit 255, killed signal), so a package that WAS installed got the false verdictinstalled=false, want trueunder container-exec contention (thecheck-debian-coder/check-jupyter-ml-podstore-contention mislabels the RCA surfaced). The exit code was also distro-fragile: a genuinely-absent package exits 1 on arch but 127 (command-not-found from the trailingpacman -Q) on fedora/debian.Rewrote the probe to emit a deterministic
INSTALLED/ABSENTtoken via anif … then … else … fiwrapper (always exits 0). Any other outcome — non-zero exit, missing token, or aRunCaptureerror — is surfaced as an exec/infra failure, never a false content verdict (matching how thefileverb already reports a probe exec failure). Also de-staled ther.runPackage/resolvePackageNamereferences (deleted when the verb was externalized) in the candy's.cueschema and regenerated its params (R5).Change class + gate (R10, code + candy)
go test ./...green — newTestPackageVerb_InfraFailureNotContentFalse(happyINSTALLED→pass; genuineABSENT→content failinstalled=false; infra exit-255→exec/infra failure, asserts NOTinstalled=false), and the existing package tests updated for the token probe;golangci-lint0 issues;task build:charlyR9 (charly version2026.189.0308).charly check box arch-test— thepackage=neovim/package=ripgrepchecks PASS against the built image (happy path unchanged):Single-repo (no submodule pointer change). The infra-failure path is unit-tested since a live podman store-write failure is non-deterministic to reproduce.
Tier: fully tested and validated.
Assisted-by: Claude (fully tested and validated)