Repository navigation
spec: apt.drop-esm-pins, for boxes leaving a release u-a-t pinned (wend#47) - #66
Conversation
…ase being left (wend#47) A fully updated trusty box carries u-a-t 19.7ubuntu0.2, whose postinst writes an unowned /etc/apt/preferences.d/ubuntu-esm-infra-trusty with Pin-Priority: never. xenial's apt 1.2 refuses every command over it. The op removes such a file only when it is a plain, unowned file in u-a-t's exact shape for the named release. 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 e463d14. No blockers. Checks:
The step script:
SPEC matches the code. Two nits, neither 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: e463d14d5c
ℹ️ 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".
A file holding only a subset of u-a-t's lines (say a lone Pin-Priority: never with comments) is an admin's, not u-a-t's: leave it. 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]>
|
Independent Claude review: sign-off on head 915a8f5. No new findings. The only change since the sign-off on e463d14 is commit 915a8f5 (DCO signed). The step now also requires the
Generated by Claude Code |
Before: a fully updated trusty box has ubuntu-advantage-tools 19.7ubuntu0.2. Its postinst writes an unowned
/etc/apt/preferences.d/ubuntu-esm-infra-trustywithPin-Priority: never. xenial's apt 1.2 refuses every command over it, so after the xenial transaction autoremove and every later apt call fail. No op could remove it without shell.After: a new Ubuntu op,
apt.drop-esm-pinswithrelease, removesubuntu-esm-{release}andubuntu-esm-*-{release}from/etc/apt/preferences.d. It only removes a file when all of these hold:dpkg -Snames no package for it;Package: *,Pin: release o=UbuntuESM..., n={release},Pin-Priority: never, a comment or a blank line);never.Anything else is left alone with a line saying why, and the step passes.
This is a spec change (adapters, tools, SPEC, client), so the route fix and the fully updated trusty box follow in their own PRs once this is on main. CI judges a PR with the base branch's tools.
How:
adapters/ubuntu.tomldeclares the op.tools/backends.py(ESM_PINS) andclient/src/backend.rscompile it to the same shell loop;client/parity.pyreports identical output.tools/test_esm_pins.pyruns the step against a stand-in directory anddpkg(12 cases). It is wired intowend checkand the client job.Part of #47.
🤖 Generated with Claude Code
https://claude.ai/code/session_01F6HrWAW4tB9vuYRQRN86zE
Generated by Claude Code