test(system_baseline): run the vzdump guard cases against the guard alone #456

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

Part of #419

Problem

system_baseline is the longest Molecule scenario, and most of its tasks are in verify. The 7 vzdump guard cases each run the whole update.yml entry point in check mode: validation, a scratch directory, a simulated upgrade, autoremove and a connection reset, on both platforms, when they only assert the guard's decision. The purge of unwanted packages is a loop with one apt call per package, and the scenario's plays gather the full fact set although the role reads only os_family.

Proposal

  • Move the guard tasks into an internal tasks/vzdump_guard.yml, pulled into update.yml with import_tasks so tags, when and vars still reach it.
  • Point 6 cases at it with tasks_from: vzdump_guard; keep one non-running case on tasks_from: update, so the entry point still runs end to end in check mode.
  • Extend the static play that reads update.yml to assert the guard is imported before the upgrade and that the upgrade is conditioned on __system_baseline_vzdump_running.
  • Purge the present unwanted packages in one apt call, guarded on a non-empty list.
  • gather_subset: [min] on the scenario's gathering plays.

Acceptance criteria

  • Every vzdump case still asserts the guard's decision and its calls.
  • One case still runs tasks_from: update.
  • A verify assert fails if the upgrade stops being gated on the guard.
  • Purged packages are still asserted absent, and idempotence stays clean.
  • The PR states the measured scenario time before and after.

Assisted-by: Claude Code

Part of #419 ### Problem `system_baseline` is the longest Molecule scenario, and most of its tasks are in verify. The 7 vzdump guard cases each run the whole `update.yml` entry point in check mode: validation, a scratch directory, a simulated upgrade, autoremove and a connection reset, on both platforms, when they only assert the guard's decision. The purge of unwanted packages is a loop with one apt call per package, and the scenario's plays gather the full fact set although the role reads only `os_family`. ### Proposal - Move the guard tasks into an internal `tasks/vzdump_guard.yml`, pulled into `update.yml` with `import_tasks` so tags, `when` and vars still reach it. - Point 6 cases at it with `tasks_from: vzdump_guard`; keep one non-running case on `tasks_from: update`, so the entry point still runs end to end in check mode. - Extend the static play that reads `update.yml` to assert the guard is imported before the upgrade and that the upgrade is conditioned on `__system_baseline_vzdump_running`. - Purge the present unwanted packages in one apt call, guarded on a non-empty list. - `gather_subset: [min]` on the scenario's gathering plays. ### Acceptance criteria - [ ] Every vzdump case still asserts the guard's decision and its calls. - [ ] One case still runs `tasks_from: update`. - [ ] A verify assert fails if the upgrade stops being gated on the guard. - [ ] Purged packages are still asserted absent, and 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#456