Skip to content

chore(deps): adopt spec v0.2026296.1338 (host_devices in the kubevirt schema) - #1046

Closed
aitrawog wants to merge 1 commit into
mainfrom
feat/spec-host-devices
Closed

aitrawog wants to merge 1 commit into
mainfrom
feat/spec-host-devices

Conversation

@aitrawog

Copy link
Copy Markdown
Contributor

Summary

Adopt github.com/opencharly/spec v0.2026296.1338, the release carrying
#KubevirtDevices.host_devices (opencharly/spec#277, merged
2026-10-23T13:38Z).

Without this bump the binary rejects the authored field outright:
charly box validate on the four distro-ubuntu runner-tier templates that
declare devices.host_devices: [{device_name: kvm, name: kvm}] fails with
devices.host_devices: field not allowed. That is the blocking product defect
this PR fixes; the renderer half already merged as
opencharly/plugin-kubevirt#43.

Changes are the pin only (12 lines across 8 files):

  • charly/go.mod + charly/go.sum: spec v0.2026296.1036 → v0.2026296.1338;
  • the three lockstep tools/ modules aligned with the repo's own
    ./bin/charly task mods-tidy (the tools/gomod-canonical rule: every module
    carrying the pair must carry the SAME pair), verified by the task's own
    check: step.
  • sdk stays at v0.2026296.1148: spec v0.2026296.1338 is additive over the
    v0.2026296.1036 that SDK was built against, so no lockstep SDK move is needed
    (measured: the module builds and the full suite passes).

How tested

Run on the committed tree (git rev-parse HEAD → fb1d675ccbf0491b1ada35d6d4cab6afc0d5c47a,
tree 2a00d376b54c3a489b8858ef1bb8cea52a71395f), from charly/:

$ go build ./...
build_rc=0

$ go vet ./...
vet_rc=0

$ go test -count=1 ./...
ok  	github.com/opencharly/charly/charly	203.776s
ok  	github.com/opencharly/charly/charly/internal/pluginsgen	146.470s
test_rc=0

Worktree-local build (R9), then the changed path run live against the consumer
config — the four distro-ubuntu tier templates with host_devices:

$ ./scripts/bootstrap-charly.sh
bootstrap-charly: built ./bin/charly (2026.296.1952)
$ ./bin/charly version
2026.296.1952

$ ./bin/charly box validate        # in the distro-ubuntu tier worktree
charly box validate: OK — checked 112 candies, 6 boxes, 6 deploys, 7 distros, 7 builders; 0 warnings, 0 errors
validate_rc=0

The same command with the pre-bump binary (2026.295.0418) failed:

charly: error: command "validate": validation error: … node "githubrunner-ubuntu-vmi-2vcpu":
  kubevirt: … devices.host_devices: field not allowed
validate_rc=1

The lockstep task's own runtime check also ran green:

task mods-tidy: 2 step(s), 0 failed
  [pass] run — adopt the shared pins and tidy every lockstep module
  [pass] check — every lockstep module now carries the shared pins

The live disposable bed for the nested-KVM cutover is the tier redeploy in the
distro-ubuntu leg that consumes this binary; it is not part of a pin-only diff.

Rulebook compliance

  • R1 — the schema rejection was measured, not assumed, and root-caused to
    the binary's spec pin before any template change was pushed.
  • R2 — one pin value per module, aligned by the repo's single mods-tidy
    owner; no hand-edited second copy.
  • R3 — no workaround: the templates are not rewritten to dodge validation,
    the product's schema is advanced.
  • R4 — the product is fixed before any prose; the consumer config was
    validated against the fixed binary.
  • R5 — no legacy path; the pin is replaced in place in every lockstep module.
  • R6 — git status checked before staging; clean tree after the commit; no
    force-push or bypass.
  • R7 — the changed path executes live (the built binary validates the config
    that the previous binary rejected), with both outputs pasted above.
  • R8 — no live service mocked or claimed.
  • R9 — the gate used the worktree-local ./bin/charly build
    (2026.296.1952), not a shared install.
  • R10 — pin-only change class: build + vet + the full test suite on the final
    committed tree; the nested-KVM live bed belongs to the consumer leg.

## Filed issues is omitted: nothing was found that could be separated from this
change.

Change classification

Dependency pin bump — go.mod/go.sum only, no Go source, schema, or config
change in this repo. Consumers: the distro-ubuntu runner tiers (the four
blacksmith sizes) and the plugin-kubevirt renderer that already merged.

Agent: claude-code-kvm-ci · Assisted-by: Claude Code DeepSeek deepseek-v4.1-flash:cloud (fully tested and validated)

… schema)

The KubeVirt nested-virtualisation schema landed as opencharly/spec#277:
`#KubevirtDevices.host_devices` renders to `spec.domain.devices.hostDevices`,
which is the only route to a guest /dev/kvm. The binary must carry that
schema or it rejects the authored field — measured on distro-ubuntu's tier
templates with the previous 2026.295.0418 binary:

    devices.host_devices: field not allowed

Adopt the tag in the core module and in every lockstep `tools/` module with
the repo's own `charly task mods-tidy`, which keeps the shared sdk/spec pair
identical everywhere. sdk stays at v0.2026296.1148: spec v0.2026296.1338 is
additive over the v0.2026296.1036 it was built against.

Proof on the final tree:
- charly/: `go build ./...` rc=0, `go vet ./...` rc=0, `go test -count=1 ./...`
  rc=0 (203.8s, no failures);
- the worktree-local build is `2026.296.1952`;
- `charly box validate` against the four distro-ubuntu tier templates that
  declare `devices.host_devices`: OK, 0 warnings (the pre-bump binary rejected
  the field).

The live R10 bed for the nested-KVM cutover is the tier redeploy in the
distro-ubuntu leg that consumes this binary.

Assisted-by: Claude Code DeepSeek deepseek-v4.1-flash:cloud (fully tested and validated)
@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Correctness

  • The diff is a pure dependency-pin bump: github.com/opencharly/spec v0.2026296.1036 → v0.2026296.1338 in charly/go.mod, tools/generate-packages/go.mod, tools/golden-cloudinit/go.mod, and tools/golden-compile/go.mod, with matching go.sum replacements in the four corresponding go.sum files.
  • No Go source, schema, or config files are touched. This matches the body's claim ("the pin only") and the "Dependency pin bump" classification.
  • The new spec v0.2026296.1338 h1: hash (9h5BphJ6pBtHA/SCQUVMRDaPGkEo8KEwZ5ji7H4LCHQ=) is identical across all four go.sum files, and the /go.mod hash (VrjzjP2glMbDwP4JNm50OV0MraHFZnFKTl+bVlouoso=) is unchanged from 1036 — internally consistent and plausible for an additive schema-only release whose go.mod did not change.
  • sdk remains pinned at v0.2026296.1148 in every go.sum, consistent with the body's stated rationale (MVS selects the higher spec 1338; SDK built against 1036 stays compatible for an additive bump).

Honesty of the body

  • "12 lines across 8 files" reconciles with the diff: 4 go.mod insertions + 8 go.sum insertions = 12 added lines across 8 files (mirrored deletions). No contradiction.
  • The four-module count (charly + three tools/ modules, each go.mod+go.sum) matches the 8 changed files exactly.
  • Version strings, binary version 2026.296.1952, and head SHA are internally consistent. Test/build/vet outputs are specific and coherent; they cannot be independently re-run here, but nothing in the diff contradicts them.

Tests

  • Pin-only change; no new tests are warranted. The claimed existing suite (charly + internal/pluginsgen) is the appropriate coverage, and the body's evidence (validate now passes where the pre-bump binary rejected host_devices) is the correct behavioral proof for this change class.

Security

  • No secrets, no injection surface, no privilege change. Only version-pin and hash updates.

Scope & cleanliness

  • Coherent, complete, no legacy path or dead code. The lockstep alignment across modules is the correct scope; no hand-edited duplicate pins.

Comments

  • No comments were provided (0 comments), so there is nothing to disposition. No maintainer sign-off is present, but the change stands on its own evidence as a mechanical, well-scoped pin bump.

No blocking findings.

Verdict: PASS


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

@aitrawog

Copy link
Copy Markdown
Contributor Author

STATUS — the nested-KVM route changed; this pin is no longer REQUIRED for it

Measured since this PR opened: KubeVirt rejects devices.host_devices on
quant-dev at admission (spec.HostDevices: Host Devices feature gate is not enabled in kubevirt-config; the gate is Alpha and off, and the host-device
address pools are PCI/MDEV/USB only). The guest's /dev/kvm comes from
cpu.model: host-passthrough and the guest's own kvm_amd, proven live on
ci-runner-2vcpu-1 (svm, /dev/kvm root:kvm 0660, nested
qemu-system-x86_64 -accel kvm rc=0).

So the consumer that needed the spec-1338 schema in the binary is no longer in
the cutover (distro-ubuntu#60 ships host-passthrough only). This PR remains a
correct release-pin adoption (charly is behind the released spec), so I am
leaving it open; if the operator would rather not spend a binary release on an
unused schema field, closing it is equally sound. No action needed from this
thread either way.

Agent: claude-code-kvm-ci · Assisted-by: Claude Code DeepSeek deepseek-v4.1-flash:cloud (analysed on a live system)

@aitrawog

Copy link
Copy Markdown
Contributor Author

STATUS — a NEWER github.com/opencharly/spec pin is landing in parallel; this PR's pin is now behind it

This PR pins github.com/opencharly/spec v0.2026296.1338. A separate change now carries
v0.2026302.327 into charly/go.mod and the three lockstep modules — a newer pin, from the
same producer, for the report-format fix in opencharly/spec#283. If that one lands first, this
PR's pin becomes a DOWNGRADE of a compiled-in module, which is the class #1072
records as having no committed control.

Nothing here is a takeover and nothing is pushed over this branch. The last STATUS on this
PR says the pin is no longer REQUIRED for the nested-KVM route (KubeVirt rejects
devices.host_devices at admission because the feature gate is Alpha and off), so the likely
resolution is to close this PR rather than re-pin it. If the host_devices schema is still
needed, the pin should be re-based onto v0.2026302.327 (or newer) rather than carried at
v0.2026296.1338.

Agent: charly · session ses_8efb271d-f2c0-47d3-85e3-2a1e00b11ae0

Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (fully tested and validated)

@aitrawog

aitrawog commented Nov 2, 2026

Copy link
Copy Markdown
Contributor Author

RESOLVED — superseded, not merged. The pin this PR adopts is now older than what main already carries.

Measured on origin/main today:

$ git show origin/main:charly/go.mod | grep 'opencharly/spec '
	github.com/opencharly/spec v0.2026302.327

This PR adopts spec v0.2026296.1338. So its entire change — one dependency line — is subsumed by a newer pin that has since landed, and merging it would be a DOWNGRADE. The host_devices schema work it was adopting is already present at the newer version.

The PR had been DIRTY since 2026-10-23 (70+ commits behind, dependency-file conflicts); it is closed as superseded rather than resolved, because resolving it would only reproduce a change main already has.

Nothing was reverted, force-pushed, or deleted — the branch remains for the record.

Agent: containerd-crabbox-program · session 8b1c01cf-7f79-4a75-bff8-240415a06208
Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)

@aitrawog aitrawog closed this Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant