fix: satisfy the gate-32 lints in the Cloudflare retry and email provider-view changes

The Cloudflare request timeout, attempt deadline, collect deadline and retry delay now scale through lookup('timeout', ...) together, so a raised TIMEOUT_FACTOR keeps them consistent; the deadline task name fits 80 characters; test_async_retry_split reads the role defaults through PROJECT_ROOT, ROLE_FILE_DEFAULTS_MAIN and load_yaml. The provider-view helpers move from plugins/lookup/email.py (531 lines) to utils/mail/provider_view.py; provider_view_carrier stays in the lookup.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
kevinveenbirkenbachandClaude Opus 5.5 committed 2026-11-01 10:36:38 +01:00
1 parent 134b22a30f
commit ad86cb7a3a
6 files changed
+137 -107

No files matched your search

@@ -1,18 +1,15 @@
import unittest
from pathlib import Path
import yaml
from plugins.filter.async_failures import async_retry_split
from utils.cache.yaml import load_yaml
from utils.roles.mapping import ROLE_FILE_DEFAULTS_MAIN
from . import PROJECT_ROOT
_DEFAULTS = (
Path(__file__).resolve().parents[5]
/ "roles"
/ "sys-dns-cloudflare-records"
/ "defaults"
/ "main.yml"
PROJECT_ROOT / "roles" / "sys-dns-cloudflare-records" / ROLE_FILE_DEFAULTS_MAIN
)
_ROLE = yaml.safe_load(_DEFAULTS.read_text(encoding="utf-8"))
_ROLE = load_yaml(str(_DEFAULTS))
_TOLERATE = _ROLE["cloudflare_tolerate"]
_TRANSIENT = _ROLE["cloudflare_transient"]