feat(docker, system_baseline, tailscale): refresh the APT cache only when stale on install #425

Open
opened 2026-11-27 13:34:44 +00:00 by Claude · 0 comments
Owner

Part of #419

Problem

The install tasks of docker (tasks/install.yml), system_baseline (tasks/packages.yml) and tailscale (tasks/install.yml) use update_cache: true without cache_valid_time, so they refresh the APT cache on every run, in each converge and idempotence pass of every scenario that uses them.

Out of scope: the update entry points (tasks/update.yml), which refresh on purpose.

Proposal

  • Install tasks: cache_valid_time: 3600.
  • The install right after the role adds its own APT source: cache_valid_time: 0, so the new source is always read.
  • update entry points unchanged.
  • A minor_changes changelog fragment.

Acceptance criteria

  • grep -n update_cache roles/{docker,system_baseline,tailscale}/tasks/*.yml shows cache_valid_time next to every install-path update_cache, and 0 on the task after an APT source is added (review).
  • update.yml in the three roles is unchanged (git diff).
  • The three scenarios pass, including idempotence (Molecule check).
  • changelogs/fragments/ has a minor_changes fragment (pre-commit run --all-files).

Assisted-by: Claude Code

Part of #419 ### Problem The install tasks of `docker` (`tasks/install.yml`), `system_baseline` (`tasks/packages.yml`) and `tailscale` (`tasks/install.yml`) use `update_cache: true` without `cache_valid_time`, so they refresh the APT cache on every run, in each converge and idempotence pass of every scenario that uses them. Out of scope: the `update` entry points (`tasks/update.yml`), which refresh on purpose. ### Proposal - Install tasks: `cache_valid_time: 3600`. - The install right after the role adds its own APT source: `cache_valid_time: 0`, so the new source is always read. - `update` entry points unchanged. - A `minor_changes` changelog fragment. ### Acceptance criteria - [ ] `grep -n update_cache roles/{docker,system_baseline,tailscale}/tasks/*.yml` shows `cache_valid_time` next to every install-path `update_cache`, and `0` on the task after an APT source is added (review). - [ ] `update.yml` in the three roles is unchanged (`git diff`). - [ ] The three scenarios pass, including idempotence (Molecule check). - [ ] `changelogs/fragments/` has a `minor_changes` fragment (`pre-commit run --all-files`). Assisted-by: Claude Code
Claude added the Kind/Enhancement
Status
Needs Triage
labels 2026-11-27 13:34:44 +00:00
Defame1297 added this to the CI velocity (emergency) milestone 2026-11-27 14:16:13 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mortis/Kamino#425