Skip to content

fix: log which layer failed when registering on Solana - #19

Merged
bentoluizv merged 4 commits into
PythonFloripa:mainfrom
bentoluizv:fix/log-solana-traceback
Sep 18, 2026
Merged

bentoluizv merged 4 commits into
PythonFloripa:mainfrom
bentoluizv:fix/log-solana-traceback

Conversation

@bentoluizv

Copy link
Copy Markdown
Contributor

O builder falhou 180/180 vezes com [Errno 16] Device or resource busy, sem indicar em qual camada. A URL configurada (certificados.pynews.org) não resolve mais no DNS; ela será trocada no secret do py-certify-infra. Este PR faz o log mostrar a camada do erro.

  • logger.exception no lugar de logger.error, para o traceback completo aparecer no CloudWatch
  • classificação da falha: dns, tls, timeout, connect, auth, http_status, response_parse, network ou unexpected, olhando a cadeia de exceções; a classificação aparece na mensagem ([stage=...]) e em CertificatesOnSolanaException.stage
  • o log de falha traz host, tempo gasto, status HTTP, cadeia de exceções com errno e até 500 caracteres do corpo da resposta
  • nome, e-mail e API key saíram do log; ficam só certificate_code e event
  • testes para DNS, 401 e ausência de dados pessoais no log

O retry não foi alterado.

@bentoluizv
bentoluizv deployed to certified-builder-py September 18, 2026 22:00 — with GitHub Actions Active
@bentoluizv
bentoluizv deployed to certified-builder-py September 18, 2026 22:04 — with GitHub Actions Active
@bentoluizv
bentoluizv deployed to certified-builder-py September 18, 2026 22:08 — with GitHub Actions Active
@bentoluizv
bentoluizv merged commit 265b819 into PythonFloripa:main Sep 18, 2026
1 check passed

This branch was successfully deployed

1 active deployment
certified-builder-py — 2041b522 Deployed Sep 18, 2026 by bentoluizv via Continuous Integration - Testing - Certified Builder Py #23
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