Skip to content

Troubleshooting

Start with make doctor. It reports required-tool, lock, interpreter, dependency, and Docker problems with the remediation command.

Setup or lock failure

  • uv.lock is stale: run make lock, inspect the dependency diff, then rerun make setup.
  • .venv is not initialized or dependencies are missing: run make setup from the repository root. The command is non-interactive and uses the committed lock.
  • unsupported Python: install the version in .python-version, remove only the project .venv, and rerun make setup.

A focused test passes but CI fails

Run make test to include repository contracts and static validation. Use the CI job name to select the next local boundary: package failures use make smoke; Collector failures use make test-docker. CI also runs supported-Python and clean-installed-artifact matrices that a single source checkout cannot replace.

Source checkout masks a package defect

Run make smoke. It builds the candidate, installs it without dependencies in an isolated environment, changes out of the source tree, and verifies that the base package remains OpenTelemetry-free and side-effect-free.

Collector validation fails

  1. Run uv run --frozen python scripts/validate_collector_profiles.py --static-only for a fast repository diagnostic.
  2. Confirm docker info succeeds and the immutable images in collector/images.env are available.
  3. Run make test-docker; inspect .build/collector/native.txt and .build/collector/local-three-signal.txt.
  4. For an advanced profile, run the matching preflight command documented in collector/README.md.

Runtime or signal delivery fails

Use the bounded local diagnostic category, configuration fingerprint, Collector /health, and Collector self-metrics before inspecting payloads. Follow the scenario-specific runbook in docs/platform-operations.md. Preserve the privacy floor: reproductions use synthetic canaries and never production telemetry or credential values.

Documentation or architecture checks fail

make docs-check reports the Markdown file, line, and missing relative target or Make command. make architecture-check reports the source file and forbidden dependency or the exact package cycle. Fix the declared source of truth rather than suppressing the check.