fix(network): degradar em vez de crashar no timeout do profiler - #6
Merged
Merged
Conversation
system_profiler routinely exceeds 5s on a cold call; the uncaught TimeoutExpired tore down mm, mm net and mm watch. Collectors now swallow timeout/missing-binary the same way security._run already does.
O texto visível no GitHub (diff, changelog e descrição do PR) fica em português para manter o padrão do repositório daqui pra frente.
8 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resumo
O
system_profiler SPAirPortDataTypepassa de 5s com frequência na primeira chamada. OTimeoutExpiredsem tratamento derrubavamm,mm netemm watch. Os coletores de rede agora engolem timeout, binário ausente eOSErrordo mesmo jeito que osecurity._runjá fazia, e o painel degrada para Wi-Fi vazio / sem IP local.Tipo de mudança
Issues relacionadas
—
Saída
Antes (timeout injetado):
Depois: o painel Network continua renderizando; as linhas de Wi-Fi somem e o IP local mostra
—.Checklist
mainmais recente.pre-commit run --all-filespassou localmente.pytestpassou localmente (210 testes).CHANGELOG.mdem[Unreleased]na categoria certa.README.md,COMMANDS.md) se a mudança for visível.Notas para revisão
PRs seguintes (um de cada vez, mesma varredura de robustez): isolamento de painéis no status/watch, escape de markup do Rich, pular alerta de bateria quando não houver bateria, realocar
LOGS_DIR, validação da CLI, interface ativa + não cachear IP públicoNone.