repo: use host state for apt cache (CRAFT-488)
Metadata
Current evaluation
Merged #3585 via f817e34f2 (merge 0ae235a09), replacing split stage APT state with the host cache at /var/lib/apt for CRAFT-488.
Resolution: closed resolved
Reason: The approved PR was merged into master. Commit f817e34f2 implements the host APT state change, recorded by merge commit 0ae235a09.
Evaluated by: mr-cal-bot
No scores available.
Issue body
Instead of having a split state for stage cache, rely on the
host's cache by setting the state directory to /var/lib/apt.
Co-authored-by: Chris Patterson <chris.patterson@canonical.com>
Signed-off-by: Claudio Matsuoka <claudio.matsuoka@canonical.com>
- [x] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)?
- [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [ ] Have you successfully run `./runtests.sh static`?
- [ ] Have you successfully run `./runtests.sh tests/unit`?
-----
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged #3585 via f817e34f2 (merge 0ae235a09), replacing split stage APT state with the host cache at /var/lib/apt for CRAFT-488. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged to master in commit 0ae235a09 (f817e34f2): snapcraft's apt cache now points at the host state dir /var/lib/apt instead of a split stage cache, per CRAFT-488, pairing with craft-parts#118. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged #3585 in commit 0ae235a09 (f817e34f2), replacing split stage cache with host APT state at /var/lib/apt to resolve CRAFT-488. | |
| qwen/qwen3.6-35b-a3b | — | — | Merged into master. Replaces split stage cache with host apt cache by setting state directory to /var/lib/apt. Approved by two reviewers, passed CI, and achieved 100% coverage. Resolves CRAFT-488. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged into master. Updates apt cache configuration to use the host state directory at /var/lib/apt instead of a split stage cache state. Achieved 100% diff coverage upon merge. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #118 packages/apt: use host state for apt cache (CRAFT-487) | craft-parts | merged | Merged PR #118 unified stage and host APT caches using /var/lib/apt, removed the update interface, and made stage package-list refresh a no-op. | |
| #3110 repo: use persistent cache for fetching stage packages | snapcraft | closed | PR #3110 (persistent cache for fetching stage packages) was closed unmerged with 0 reviews and 1 open maintainer question. Its dependency #3109 also closed unmerged; the feature was later delivered by merged PR #3585 (CRAFT-488) using host /var/lib/apt state. | |
| #1122 repo: cache stage packages for faster future use. | snapcraft | merged | Merged PR #1122 (20b422459), reusing cached stage packages and copying the apt cache into cleanbuild containers to fix LP #1661383. |