Skip to content

Verification and release policy

Repository gates

Every telemetry change must pass:

  1. unit tests for schema validation, configuration, secrets, lifecycle, and context propagation;
  2. public-SDK adapter contract tests for traces, metrics, logs, correlation, redaction, and bounded dimensions;
  3. Ruff and strict mypy;
  4. Collector static validation for every supported composition;
  5. local Collector delivery/failure tests when Collector assets change; and
  6. a wheel build and installation smoke test.

make test runs the non-Docker repository gate. make smoke verifies a clean base-wheel install, and make verify combines the complete local gate including Docker. make doctor diagnoses the local harness before a failure is attributed to product behavior.

Executable CI gates

.github/workflows/verification.yml implements the repository gates as stable jobs suitable for branch protection:

  • Quality and tests / Python 3.14 runs Ruff, strict mypy, the complete repository suite, and branch coverage on the authoritative Python version. It also runs harness diagnostics plus documentation and architecture contracts. The branch-inclusive result must be at least 75% for each of telemetry.otel and telemetry.runtime; the workflow checks the modules separately so stronger coverage elsewhere cannot hide a runtime regression. This initial threshold is the measured floor for the adapter's optional transport and framework paths while the suite exercises public signal, privacy, and lifecycle failure contracts. No files, branches, or failure paths are omitted, and maintainers should raise the floor as deterministic contract coverage expands.
  • Package contracts / Python 3.14 builds one wheel and one sdist, records their SHA3-512 digests with the portable repository helper, verifies the dependency-free base installation, then verifies the adapter installation and public SDK contract suite, including its literal scikit-learn reference checks, in isolated temporary environments. The contract suite runs from a temporary test root with only copied tests and maintained documentation examples; it imports the installed wheel rather than the source checkout.
  • Installed package / Python 3.12, 3.13, and 3.14 install the same wheel with test dependencies exported from the lock, run the portable unit and contract suites outside the source tree, and independently install and import every declared optional integration. The temporary test root includes repository scripts, Collector fixtures, benchmark workloads, and maintained documentation examples used by the tests; package imports still resolve to the wheel.
  • Dependency compatibility / Python 3.12 and 3.14 each cross the declared SQLAlchemy 2.0.0 and locked-upper edges with gRPC and HTTP/protobuf in fresh environments. They prove an unavailable Collector does not change an instrumented SQLAlchemy business result or leak listeners.
  • Collector integration / Docker Desktop installs its Python prerequisites from uv.lock, requires a reachable Docker Desktop Linux engine, runs repository checks, validates every native composition, and performs the bounded local three-signal integration.

The graph is deliberately serial for a single physical machine. The package is built once; the Python matrix has at most one active cell; each Python cell loops through optional extras; and each upgrade cell loops through the dependency/transport combinations. This reduces the workflow from 33 jobs to eight while preserving separate evidence for all supported combinations. Superseded runs on the same Git ref are cancelled.

Each job has a wall-clock limit and fails when its tools or declared inputs are absent. Collector-native and integration steps use GitHub step timeouts, so GNU timeout is not required on macOS. Results are retained for 14 days: JUnit XML, coverage XML, wheel and sdist hashes, installed-package reports, Collector output and checksums, and Python/Collector compatibility metadata. The persistent runner's uv cache is reused locally; GitHub Actions dependency caching is disabled, while result and evidence directories are explicitly recreated and never cached.

The workflow grants only read access to repository contents, disables persisted checkout credentials, pins actions to full commit IDs, and has no backend secrets, publishing credentials, signing permission, package write permission, or deployment job. It executes pull requests only when their head branch belongs to this repository; fork code is intentionally not run on the persistent machine. Repository administrators must configure the new job names as required checks in branch protection; that hosted setting is outside this source repository.

macOS runner contract

Register the Mac mini with GitHub's standard self-hosted, macOS, and ARM64 labels and keep the Actions Runner at version 2.327.1 or newer. Run it as a LaunchAgent for the logged-in automation user, not as a system LaunchDaemon, so that Docker Desktop is reachable in the user's GUI session. Restrict the runner or runner group to this repository and do not place unrelated credentials, SSH keys, or network authority on the machine.

Provision Python 3.12, 3.13, and 3.14 under /Users/runner/hostedtoolcache/Python/<full-version>/arm64 with the matching arm64.complete marker. Configure the runner service with AGENT_TOOLSDIRECTORY=/Users/runner/hostedtoolcache; the workflow selects those installations with actions/setup-python and explicitly requests the arm64 architecture. It installs pinned uv per job, while Docker Desktop, Git, Make, and the runner itself are host prerequisites. Docker Desktop must be running before the runner accepts jobs. The setup action adds the conventional Homebrew and Docker Desktop CLI directories to the job path when present. All command steps use zsh.

Self-hosted runners are persistent and do not provide a clean virtual machine per job. For that reason, checkout cleaning is explicit, generated workspace evidence is removed before use, temporary virtual environments use unique mktemp directories, and no CI secrets are exposed. If fork contributions must be tested, use an ephemeral isolated runner or a separate GitHub-hosted workflow; do not remove the fork guard from this workflow.

The consumer owns tests proving its typed vocabulary maps correctly, its application behavior is unchanged when telemetry is disabled or unavailable, and its metric series remain bounded as identities vary. A platform release is consumable only after the first-consumer suite passes against the candidate wheel and pinned Collector tuple.

The repository-owned evidence manifests use schema version 2 and SHA3-512 digests. scripts/qualify_platform.py evaluates immutable compatibility and overhead evidence against the fixed platform budgets. Qualification evidence binds the candidate wheel and dependency lock, the exact locked OpenTelemetry/core/contrib and Collector image tuple, the SQLAlchemy 2.0.0/locked-upper edges, and checksummed raw artifacts. Each workload retains its resource settings, warmup, random seed, per-pair execution order, and at least five normalized disabled/enabled sample pairs. The evaluator recomputes the serving, background, outage, and soak regression summaries from those samples rather than trusting reported metrics. Evidence must retain separate Python-matrix, upgrade-matrix, Collector, and raw-sample artifacts; a missing scope remains release-blocking. scripts/verify_consumer_evidence.py accepts only a checksummed manifest bound to the exact candidate wheel and Collector tuple. scripts/verify_release_evidence.py makes all required platform and consumer gates explicit and rejects failed or skipped entries. These commands validate supplied evidence; they do not turn a local run into hosted or consumer evidence.

The release manifest also records reproducible wheel and sdist identities plus the installed-wheel smoke result; the complete Python, dependency, platform, consumer, integration-contract, and schema identities; checksummed qualification workloads; numeric thresholds; and rollback signal-switch state. Publication, signing, deployment, and live-environment authority must all remain disabled.

Releases

The Python distribution follows semantic versioning. The initial Consumer Integration contract is 1; backward-compatible additions remain in the current minor line, while removing or changing accepted behavior requires a major distribution version. OpenTelemetry core/exporter packages are constrained to one tested minor line and matching contrib releases are exact-pinned.

Collector images are referenced by digest. The configuration bundle is released from this source tree and identified by the platform version plus a content digest recorded in release evidence. No package registry, OCI registry, signing service, or live deployment is configured by this repository bootstrap. Until release authority configures those systems, locally built wheels and the committed upstream image digest are the supported artifacts.

Release evidence records the source revision, wheel and sdist digests, dependency lock, supported Python range, telemetry contract version, Collector image digest, configuration digest, tests, and first-consumer result. Rollback retains the previous wheel, lock, image digest, and configuration. Platform dashboard, alert, and runbook specifications are maintained in docs/platform-operations.md.