perf(traefik): skip a fresh apt refresh and trim the scenario's repeated work #458

Open
opened 2026-11-28 07:59:49 +00:00 by Claude · 0 comments
Owner

Part of #419

Problem

tasks/binary/prereqs.yml refreshes the apt cache on every run with no cache_valid_time, so the scenario runs apt-get update about 9 times per host. Verify exercises the update path to another release and back, and converge runs mortis.kamino.ufw in every pass although the ufw scenario tests that role.

Proposal

  • cache_valid_time: 3600 on the prereqs refresh (it installs distro packages only and runs before any source is added), as docker, system_baseline and user_management already do, with a README note for a consumer who adds an apt source just before the role. Changelog fragment.
  • Run the update path once, to the other release, and drop the default version's stand-in archive from prepare.
  • Run mortis.kamino.ufw in prepare and only traefik in converge, with gather_facts: false.
  • Update the README's description of the scenario.

Acceptance criteria

  • The update path is still exercised once, with the "other release differs" assert kept.
  • The 22/tcp allow assert still holds.
  • Idempotence stays clean.
  • The PR states the measured scenario time before and after.

Assisted-by: Claude Code

Part of #419 ### Problem `tasks/binary/prereqs.yml` refreshes the apt cache on every run with no `cache_valid_time`, so the scenario runs `apt-get update` about 9 times per host. Verify exercises the update path to another release and back, and converge runs `mortis.kamino.ufw` in every pass although the `ufw` scenario tests that role. ### Proposal - `cache_valid_time: 3600` on the prereqs refresh (it installs distro packages only and runs before any source is added), as `docker`, `system_baseline` and `user_management` already do, with a README note for a consumer who adds an apt source just before the role. Changelog fragment. - Run the update path once, to the other release, and drop the default version's stand-in archive from prepare. - Run `mortis.kamino.ufw` in prepare and only `traefik` in converge, with `gather_facts: false`. - Update the README's description of the scenario. ### Acceptance criteria - [ ] The update path is still exercised once, with the "other release differs" assert kept. - [ ] The 22/tcp allow assert still holds. - [ ] Idempotence stays clean. - [ ] The PR states the measured scenario time before and after. Assisted-by: Claude Code
Claude added this to the CI velocity (emergency) milestone 2026-11-28 07:59:49 +00:00
Claude added the Kind/Enhancement
Status
Needs Triage
labels 2026-11-28 07:59:49 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mortis/Kamino#458