test(ufw): cover the service_rules cases with fewer owners #457

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

Part of #419

Problem

Most of the ufw scenario's time is in check, converge, check and idempotence. Its converge calls service_rules 8 times, once per owner, about 30 tasks each, and repeats the orphan check after each no-op case; all of it runs 4 times on 2 platforms.

Proposal

  • Merge the owners into 3 that keep every case: one without purge (rules with and without from, a deny rule with no comment or proto, a comment mentioning 22, a kept stale rule), one with purge (deleted and kept stale lines, the SSH lookalike), and the absent owner.
  • Re-tag the seeds in prepare.yml, and update the counts in verify.yml and orphan_check.yml so the tagged and untagged totals stay the same.
  • Keep two orphan checks in converge: one after the three no-op cases and one after the purge; drop the one in verify that repeats the Verify play's asserts.
  • gather_facts: false on converge; the role reads no facts.

Acceptance criteria

  • Every case asserted today is still asserted by owner key and comment.
  • Owner isolation is still proven: a purge leaves another owner's stale rule in place.
  • The PR lists each old case and where it now lives, and states the measured scenario time before and after.

Assisted-by: Claude Code

Part of #419 ### Problem Most of the `ufw` scenario's time is in check, converge, check and idempotence. Its converge calls `service_rules` 8 times, once per owner, about 30 tasks each, and repeats the orphan check after each no-op case; all of it runs 4 times on 2 platforms. ### Proposal - Merge the owners into 3 that keep every case: one without purge (rules with and without `from`, a deny rule with no comment or proto, a comment mentioning 22, a kept stale rule), one with purge (deleted and kept stale lines, the SSH lookalike), and the absent owner. - Re-tag the seeds in `prepare.yml`, and update the counts in `verify.yml` and `orphan_check.yml` so the tagged and untagged totals stay the same. - Keep two orphan checks in converge: one after the three no-op cases and one after the purge; drop the one in verify that repeats the Verify play's asserts. - `gather_facts: false` on converge; the role reads no facts. ### Acceptance criteria - [ ] Every case asserted today is still asserted by owner key and comment. - [ ] Owner isolation is still proven: a purge leaves another owner's stale rule in place. - [ ] The PR lists each old case and where it now lives, and 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#457