Skip to content

refactor: probe_url_headers wraps lab_connectors.http.probe#412

Merged
Gabrymi93 merged 1 commit into
mainfrom
feat/probe-url-headers
Jul 14, 2026
Merged

refactor: probe_url_headers wraps lab_connectors.http.probe#412
Gabrymi93 merged 1 commit into
mainfrom
feat/probe-url-headers

Conversation

@Gabrymi93

Copy link
Copy Markdown
Member

Sintesi

probe_url_headers ora delega a lab_connectors.http.probe.probe_url_headers, eliminando 150 righe di retry duplicato. Il doppio retry (3 tentativi del probe + 2 di HttpClient = 6) diventa un singolo livello (2 di HttpClient).

Risultato: preflight MUR da 5+ minuti a 0.83 secondi.

Cosa cambia

  • Refactor — probe_url_headers ora è un wrapper di lab-connectors
  • Rimosso _build_probe_result (inutilizzato altrove)
  • Rimosso MAX_RETRIES, RETRY_BACKOFF (usati solo da probe_url_headers)
  • Zero cambiamenti di firma o comportamento visibile dai consumer

Verifica

python -m pytest tests/ -k "probe or http" -x -q

149 passati, 0 falliti.

Dipendenze

Richiede lab-connectors PR #69 (feat/probe-url-headers) — lab_connectors/http/probe.py.

@Gabrymi93
Gabrymi93 merged commit 27df047 into main Jul 14, 2026
3 of 4 checks passed
@Gabrymi93
Gabrymi93 deleted the feat/probe-url-headers branch July 14, 2026 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant