test(tailscale): reuse downloaded packages across the scenario's reinstalls #427

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

Part of #419

Problem

The tailscale scenario installs, removes and reinstalls the package, and each install downloads the .deb again: about 5 downloads per host per run. The Ubuntu base image's docker-clean APT hook deletes /var/cache/apt/archives/*.deb after every install, so nothing is reused.

Out of scope: role code.

Proposal

In the scenario's prepare.yml, remove /etc/apt/apt.conf.d/docker-clean from the test container so downloaded packages stay in the APT cache across reinstalls.

Acceptance criteria

  • prepare.yml removes the docker-clean hook (review).
  • The scenario log shows at most 2 package downloads per host (count of Get: lines for tailscale in the Molecule job log).
  • The tailscale scenario passes (Molecule check).

Assisted-by: Claude Code

Part of #419 ### Problem The tailscale scenario installs, removes and reinstalls the package, and each install downloads the `.deb` again: about 5 downloads per host per run. The Ubuntu base image's `docker-clean` APT hook deletes `/var/cache/apt/archives/*.deb` after every install, so nothing is reused. Out of scope: role code. ### Proposal In the scenario's `prepare.yml`, remove `/etc/apt/apt.conf.d/docker-clean` from the test container so downloaded packages stay in the APT cache across reinstalls. ### Acceptance criteria - [ ] `prepare.yml` removes the `docker-clean` hook (review). - [ ] The scenario log shows at most 2 package downloads per host (count of `Get:` lines for tailscale in the Molecule job log). - [ ] The tailscale scenario passes (Molecule check). Assisted-by: Claude Code
Claude added the Kind/Testing
Status
Needs Triage
labels 2026-11-27 13:34:46 +00:00
Defame1297 added this to the CI velocity (emergency) milestone 2026-11-27 14:16:14 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mortis/Kamino#427