Skip to content

vm: [vm].pockets may name backports (wend#47) - #85

Merged
TusanHomichi merged 2 commits into
mainfrom
claude/vm-pockets-backports
Oct 13, 2026
Merged

TusanHomichi merged 2 commits into
mainfrom
claude/vm-pockets-backports

Conversation

@TusanHomichi

Copy link
Copy Markdown
Member

Before: the VM build of ubuntu/trusty-web-updated on remi gets as far as booting the box, which then never answers ssh on 2222. The cause is in customize:

  • trusty's installer writes an active trusty-backports line into sources.list, next to the -updates one.
  • The VM pocket proxy 404s backports, because spec: VM boxes can ask for -updates/-security ([vm].pockets, wend#47) #80 only let a box opt into updates and security.
  • So customize's apt-get update fails on the backports index ("Some index files failed to download"). set -e then stops it before the sshd port change.

After: [vm].pockets may also name backports, and the proxy passes it for a box that asks. A real fully updated trusty server has backports switched on from its installer, so this is the faithful start. apt pins backports NotAutomatic, so it adds an index, not packages. The post-install step adds a backports line too, and the off-pocket check accepts versions from it, as it does for every pocket the box names. proposed stays refused, and boxes without pockets are unchanged.

How:

  • tools/check.py widens the allowed set to updates, security and backports.
  • tools/vm.py only has a docstring change; the proxy already matched backports.
  • SPEC "VM tier" is updated to match.
  • tools/test_check.py: checker cases (backports passes, proposed is refused) and two live proxy cases (backports 200 when asked, proposed still 404).

The box itself asks for backports in a follow-up box PR, because CI checks boxes with the base branch's checker.

Part of #47.

🤖 Generated with Claude Code

https://claude.ai/code/session_01F6HrWAW4tB9vuYRQRN86zE


Generated by Claude Code

trusty's installer writes an active trusty-backports line beside
-updates. The VM pocket proxy 404s it unless the box asks, so a
customize that runs apt-get update (ubuntu/trusty-web-updated) dies on
the backports index and the box never comes up on its ssh port. remi's
VM build of that box failed this way. Let the box ask for backports too;
apt pins backports NotAutomatic, so it adds an index, not packages.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01F6HrWAW4tB9vuYRQRN86zE
Signed-off-by: Claude <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-13T17:25:05.768280Z 831a8a7 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Copy link
Copy Markdown
Member Author

Independent Claude review: sign-off on head 2795a9ba54c5f11886ce9454689cff322f59c648.

This is one signed-off commit on top of main (c3af630). On a clean archive of this head, tools/test_check.py and wend check both exit 0.

  • Checker: backports is added to the allowed pockets. The once-each and release_pocket_only rules are unchanged, and proposed is still refused.
  • Proxy: -backports passes only when the box lists it, and -proposed always gets 404. A box without pockets behaves exactly as before.
  • pocket_sources: after set_release rewrites sources.list, this adds a single trusty-backports line, so there's no duplicate.
    • trusty-backports' InRelease has NotAutomatic: yes and ButAutomaticUpgrades: yes, so the post-install dist-upgrade pulls nothing new from it.
    • OFF_POCKET just gains one more index to accept versions from.
    • The route's hops rewrite sources.list anyway, so the walk is unchanged.
  • SPEC: accurate.

The box still needs a follow-up box PR that adds "backports" to its [vm].pockets.


Generated by Claude Code

@github-actions github-actions Bot added the needs-claude-review Waiting on the Claude review layer label Oct 13, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2795a9ba54

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread tools/check.py Resolved
trusty's installer always writes an active -updates line, so a box that
asked for security or backports without updates would still die in a
customize that runs apt-get update. Require updates whenever a box names
pockets. (Codex review on #85.)

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01F6HrWAW4tB9vuYRQRN86zE
Signed-off-by: Claude <[email protected]>

Copy link
Copy Markdown
Member Author

Independent Claude review: sign-off on head 831a8a78624a0ee729b4ece0a6dfeab387310571.

This adds one signed-off commit, 831a8a7, to the previously signed-off 2795a9b.

  • Checker: a non-empty pockets without updates is now refused. The check runs after the type checks, and an empty or absent pockets is unaffected.
  • Tests: on a clean archive, tools/test_check.py and wend check both exit 0. The new cases behave as intended: ["updates"] passes and ["security","backports"] is refused.
  • SPEC: the wording matches the code.

No findings.


Generated by Claude Code

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 831a8a7862

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread tools/check.py Resolved
@TusanHomichi
TusanHomichi merged commit 972a456 into main Oct 13, 2026
7 checks passed
@TusanHomichi
TusanHomichi deleted the claude/vm-pockets-backports branch October 13, 2026 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-claude-review Waiting on the Claude review layer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants