symfonic.diagnostics.runner¶
runner ¶
Audit orchestrator for symfonic doctor (v7.16, item 5).
Imports every registered check coroutine from
:mod:symfonic.diagnostics.checks, invokes them in a stable order, and
aggregates the results into a single :class:AuditReport.
Network-sensitive checks (currently only check_postgres_dsn) run
last so the faster pure-introspection checks are not blocked by a
slow probe. When no_network=True (the default in CI), the
check_postgres_dsn short-circuits and emits an INFO that the probe
was skipped.
CheckFn
module-attribute
¶
Type alias for the uniform check coroutine signature.
AuditRunner ¶
Invoke every registered check against an agent and aggregate results.
The runner is constructed with the audit configuration (currently
just no_network). run() is the async entry point;
:func:audit_hms and :func:audit_hms_sync in the package
__init__ are the public wrappers.
Source code in src/symfonic/diagnostics/runner.py
run
async
¶
Invoke every check; return an :class:AuditReport.
Source code in src/symfonic/diagnostics/runner.py
resolve_no_network ¶
Return whether network checks should be skipped.
Precedence:
- If
explicit_flagis notNone, honour it verbatim. - Otherwise, check
CI=truein the environment.
Most CI runners (GitHub Actions, GitLab, CircleCI, Buildkite) export
CI=true; this gives the runner a sane default that doesn't
require adopters to wire --no-network into every job config.