fix(container-image): add missing upgradeAttributes to upgrade entry #232
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/1817-container-image-upgrade-attributes"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
upgradeAttributesfield to the2026.08.25.1upgrade entry incontainer_image.ts— a no-op(old) => oldsince the upgrade only added optional method inputs (privileged,extraArgs), no model attributes changed@swamp/container-image@2026.08.25.1completely uninstallable (upgrades.0.upgradeAttributes: Invalid input)Test plan
deno checkpassesdeno lintpassesdeno fmt --checkpassesdeno install --frozenpasses (lockfile consistent)Closes #1817
🤖 Generated with Claude Code
Code Review
Blocking Issues
None.
Suggestions
None.
The change adds the missing
upgradeAttributesidentity function to the2026.08.25.1upgrade entry incontainer-image/extensions/models/container_image.ts. The fix is correct and minimal:(old: Record<string, unknown>) => oldis the appropriate pass-through for a non-breaking upgrade where no attribute migration is needed.anytypes;Record<string, unknown>is properly typed.model/), so the no-hand-edit rule does not apply.export const model).Adversarial Review
Critical / High
None.
Medium
None.
Low
None.
Verdict
PASS — The PR adds a single missing
upgradeAttributesproperty to the upgrade entry atcontainer-image/extensions/models/container_image.ts:79. The identity function(old) => oldis the correct pass-through for upgrades that add optional fields with no attribute migration needed (matching the established pattern used acrosscve/mini-shai-hulud,cve/researcher, and all generated models). The fix is minimal and correct.Code Review
Blocking Issues
None.
Suggestions
None.
This is a clean, minimal fix. The PR adds the missing
upgradeAttributesidentity function to the2026.08.25.1upgrade entry (the root cause of the installation failure) and bumps to2026.08.25.2with its own identity upgrade entry. The version is consistent betweencontainer_image.tsandmanifest.yaml. No hand-edited generated files, no type issues, no security concerns.Adversarial Review
Critical / High
No critical or high severity issues found.
Medium
No medium severity issues found.
Low
No low severity issues found.
Verdict
PASS — Minimal, correct fix. The PR adds the missing
upgradeAttributesidentity callback to the2026.08.25.1upgrade entry (which was causing installation failures), adds a new2026.08.25.2upgrade entry documenting the fix, and bumps the version consistently in bothcontainer_image.ts:72andmanifest.yaml:3. The identity function(old) => oldis the correct transform for upgrades that don't alter the attribute schema. Version strings are consistent across both files. The upgrade chain is ordered correctly. Nothing to flag.