Repository navigation
spec: VM boxes can ask for -updates/-security ([vm].pockets, wend#47) - #80
Conversation
The VM installer's pocket proxy still answers 404 for every -updates, -security, -backports and -proposed suite by default. A box that lists updates and/or security in [vm].pockets gets those suites through the proxy, and the harness adds them to sources.list after set_release, so its dist-upgrade and release-pocket check see the same sources the box was built from. The checker holds pockets to updates/security, once each, on a release_pocket_only release. The route's hops are unchanged. 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]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Independent Claude review: sign-off on head a2faf8a. No blockers.
Nits, none blocking:
Generated by Claude Code |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a2faf8a3c7
ℹ️ 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".
Before:
tools/vm.pygives Ubuntu's installer a proxy that answers 404 for every-updates,-security,-backportsand-proposedsuite. After install, the harness rewritessources.listto the release pocket and fails any box holding versions from elsewhere. Soubuntu/trusty-web-updated(#78), which starts from trusty-updates and trusty-security, can't be built as a real VM.After: a box can opt in with
[vm] pockets = ["updates", "security"]. Those suites (and only those) pass the proxy, so the installer and the box'scustomizecan fetch them. Right afterset_release, the harness adds the same pockets tosources.list: each of the release'sdeblines again, for{release}-{pocket}, from the same mirror. The dist-upgrade and the release-pocket check then see the sources the box was built from. Every other box keeps the release-pocket-only default, and the route's hops are unchanged.How:
tools/vm.py:PocketProxy(upstream, allow), plus apocket_sources()helper used in the post-install update step.tools/check.py:[vm].pocketsmust be a list ofupdatesand/orsecurity, each at most once, and only on a release whose install isrelease_pocket_only.tools/test_check.py: 5 checker cases, plus 7 behaviour cases that run the real proxy against a local upstream (release pocket 200; other pockets 404 unless allowed; backports always 404).This is a spec change (tools, SPEC), so the box itself gets
pocketsin a follow-up box PR once this is on main. CI judges a PR with the base branch's checker. Nothing here is replayed in CI, since the VM tier is maintainer-run.Part of #47.
🤖 Generated with Claude Code
https://claude.ai/code/session_01F6HrWAW4tB9vuYRQRN86zE
Generated by Claude Code