feat(cloudflared): make the tunnel lookup retry delay an input #424

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

Part of #419

Problem

The tunnel lookup in roles/cloudflared/tasks/configure.yml retries 3 times with a fixed delay: 5. The scenario's failure-path test runs it against a stub that never changes its answer, and waits 2 × 3 × 5 s for nothing.

Proposal

  • New input cloudflared_tunnel_lookup_delay (integer, seconds, default 5), in defaults/main.yml, meta/argument_specs.yml and the README.
  • The lookup task uses it as delay.
  • The scenario sets it to 0.
  • A minor_changes changelog fragment.

Acceptance criteria

  • With the input unset, the task delays 5 s as before (review of the default; the argument_specs default matches defaults/main.yml).
  • The cloudflared scenario sets cloudflared_tunnel_lookup_delay: 0 and its failure-path test still asserts the expected message (Molecule check).
  • changelogs/fragments/ has a minor_changes fragment (antsibull-changelog lint, run by pre-commit run --all-files).
  • ansible-lint passes (pre-commit run --all-files).

Assisted-by: Claude Code

Part of #419 ### Problem The tunnel lookup in `roles/cloudflared/tasks/configure.yml` retries 3 times with a fixed `delay: 5`. The scenario's failure-path test runs it against a stub that never changes its answer, and waits 2 × 3 × 5 s for nothing. ### Proposal - New input `cloudflared_tunnel_lookup_delay` (integer, seconds, default `5`), in `defaults/main.yml`, `meta/argument_specs.yml` and the README. - The lookup task uses it as `delay`. - The scenario sets it to `0`. - A `minor_changes` changelog fragment. ### Acceptance criteria - [ ] With the input unset, the task delays 5 s as before (review of the default; the argument_specs default matches `defaults/main.yml`). - [ ] The cloudflared scenario sets `cloudflared_tunnel_lookup_delay: 0` and its failure-path test still asserts the expected message (Molecule check). - [ ] `changelogs/fragments/` has a `minor_changes` fragment (`antsibull-changelog lint`, run by `pre-commit run --all-files`). - [ ] `ansible-lint` passes (`pre-commit run --all-files`). Assisted-by: Claude Code
Claude added the Kind/Enhancement
Status
Needs Triage
labels 2026-11-27 13:34:42 +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#424