Changelog¶
These pages describe main. Released versions remain available through
GitHub releases and
PyPI.
0.4.2 — 2026-11-02¶
Published on PyPI and as GitHub release v0.4.2.
- Verify
address_familyfrom observed socket endpoint literals inraw["start"]["connected"], populatingeffective["address_family"]as"ipv4"or"ipv6"and treatingrequested["address_family"] == "auto"as compatible with verified IPv4/IPv6 connections across client results, artifacts, sweeps, and adaptive UDP experiments. - Accept
ipaddress.IPv4Address | ipaddress.IPv6AddressforClientConfig.serverandLiteral["tcp", "udp", "sctp"]strings forClientConfig.protocolin static type checking while normalizing toProtocol. Declare explicit__all__exports across all public submodules. - Validate
TestResultin-memory invariants (version,protocol,direction,reporting_role) before artifact serialization, enforce control-character and RFC 6901 JSON Pointer checks across artifact, assessment, sweep, and concurrent report deserializers, preservebytes_per_secondinTrialAssessmentReporttext summaries, and includestart_time_unixin Prometheus exporter completeness checks. - Reuse first-pass observation dictionaries in adaptive UDP summaries, skip
unconditional
ctypes.util.find_librarysubprocess probes whenIPERF3_LIBor standard Linux loader names succeed, switch worker parent-child pipes to binary I/O with direct UTF-8bytesJSON parsing, validate live-event payloads in a single pass, and add a/procfallback forWaitPIDindocker-entrypoint.sh. - Publish the API and schema stability policy,
add tagged release documentation snapshot links (
v0.2.0–v0.4.1), and align architecture, design, and contributor documentation with the0.4.xcodebase. - Route documentation-only pull requests and pushes away from the native Docker
matrix while preserving the required
cicheck, static/unit gates, and full native coverage for code, workflow, and release paths. Align previewuvprovenance checks and strictertykeyword-argument typing.
0.4.1 — 2026-10-12¶
Published on PyPI and as GitHub release v0.4.1.
- Make the packaged README independent of publication timing. The immutable 0.4.0 description incorrectly calls 0.4.0 unreleased; a repository-only edit cannot update that PyPI description.
- Reject temporary publication-status claims in wheel and sdist descriptions before sealing release artifacts, and require the final README to pass this check before candidate qualification.
- No changes to the Python API, native execution, dependency requirements or result formats.
0.4.0 — 2026-10-11¶
Published on PyPI and as GitHub release v0.4.0. The project retains Beta maturity; 0.4.0 is an ordinary package version.
Upgrading from 0.3.0? Read the 0.4.0 migration guide for async behavior changes, application customizations, and saved-report readers.
- Preserve sequential plan history when an application's task factory rejects a trial. Close rejected trial and live-event coroutines without starting a worker, and allow fresh event streams from the same client or server.
- Recommend patched libiperf 3.22 for deployment. Retain 3.19.1 only as the compatibility baseline; see the security policy.
- Move the default/latest libiperf endpoint from 3.21 to 3.22, retaining the 3.19.1 minimum and historical native fixtures. Qualify 3.22 result evidence without changing report schemas; the native release includes upstream security and cleanup fixes.
- Add standard-GIL Python 3.15 final support to stable CI, native integration,
and installed wheel/sdist release qualification with both libiperf endpoints.
Require CFFI 2.1.1 or newer on Python 3.15 for its
Python 3.15 ABI compatibility fix,
while retaining the CFFI 2.0 minimum on older Python versions. Keep Python
>=3.12and the sharedpy3-none-anywheel. Retain the earlier Python 3.15.0rc3 preview workflow as a manual historical diagnostic. - Qualify expanded lifecycle, plan, adaptive and live-event behavior from the exact retained release wheel and sdist. Require a complete verified smoke and lifecycle receipt set before publication and retain its qualification index.
- Add owned typed live-event streams through
Client.events()andServer.events_once(), retaining complete-result access and awaiting cleanup after consumer abandonment or cancellation. Separate native measurement time, callback arrival, flow association, and wrapper terminal status. - Move native JSON parsing and result assembly outside C callbacks. Bound
copied payloads, queued bytes, retained evidence, and consumer delivery;
distinguish capture loss from progress loss and mark lossy minimum-version
reconstruction incomplete. Existing
NativeEventand report schemas remain unchanged. - Add exploratory bounded adaptive UDP experiments with explicit admission limits, confirmation measurements, retained non-monotonic and failed observations, and standalone reports of tested operating points.
- Preserve bounded observed events when a sequential async trial encounters a worker crash, transport failure or another execution exception. Keep completed artifacts and unstarted trials in the history, and retain both event and unencodable-result diagnostics in JUnit. Existing v2 archives and fields remain unchanged; earlier strict readers must be upgraded for new exception records carrying events.
- Add opt-in bounded concurrent plans with worker and aggregate target-rate admission limits, endpoint and caller-resource exclusion, per-cell ordering, and cleanup-safe multi-worker cancellation. Standalone schema-v3 reports retain reservation and overlap histories. This mode requires zero pauses and rejects fixed client ports; sequential APIs and v1/v2 reports remain unchanged.
- Add owned sequential
arun_planexecution with an overall deadline, cleanup-safe cancellation, retained completed artifacts, bounded interrupted-trial events and explicit unstarted records. Add strict standalone plan-execution-v2 JSON, text and JUnit reports while preserving assessment-v1 and sweep-v1 contracts. - Version and bound isolated worker messages, validate session identities and ordering, retain readiness receipts, and require clean output shutdown before returning a completed result. Reserve control capacity under event overload; reject oversized results explicitly.
- Protect isolated Linux workers with a parent-death signal before loading the native library. Qualify worker lifetime and cancellation from installed wheels and sdists across the supported Python/libiperf matrix.
- Always isolate
Client.arun()and propagate cancellation through client/server worker cleanup, including repeated cancellation and completion/deadline races. Preserve synchronous execution and cooperativeServer.stop()behavior. - Report unconfirmed process cleanup through
IperfCleanupError, retaining ownership until the worker is reaped. Active callbacks still delay API return. - Async methods use the built-in worker path instead of overridden synchronous methods; setup errors follow existing worker exception semantics.
- Simplify the public documentation and navigation; keep maintainer procedures and detailed design notes in the repository.
- Allow the Kubernetes/Grafana example to use the chosen kubeconfig context.
0.3.0 — 2026-09-27¶
Published on PyPI and as GitHub release v0.3.0.
Expanded native controls and worker execution¶
- Add typed client controls and
ServerConfigfor local address/device binding, address family, source ports, transport tuning, count termination, pacing, payloads, connection policies, authentication and server policies. The option reference maps all flags from the two supported native versions, including application-owned CLI concerns. - Execute expanded controls, MPTCP and streaming through an isolated Python/CFFI
worker using libiperf's public parser. Basic client configurations retain the
direct native path; no
iperf3executable is required by the worker. - Add explicit execution timeouts and typed parent-side events with bounded delivery, drop accounting and independent final-result retention.
- Return normalized server results and expose sequential result callbacks; preserve the concise address/port constructor and cooperative stop behavior.
- Preserve expanded request metadata and native getter receipts while keeping passwords outside configuration/artifact metadata. Existing artifacts with the original configuration fields remain readable.
Finite experiments and assessments¶
- Add finite parameter sweeps with preflight budgets, recorded cell order, per-cell warm-ups and measured trials, shared sequential execution, and full failure retention. Verify declared axes and native rate allocations before qualifying receiver medians or explicit method/direction comparisons.
- Add strict sweep-v1 reports preserving every artifact, setting check and exclusion; validate frozen selection and arithmetic without rerunning analysis.
- Add finite sequential trial plans with detached native settings, explicit admission budgets, warm-up runs, between-run pauses, retained failures and unstarted records, and no hidden retries.
- Add median bytes/time assessments with minimum sample counts, retained baselines, explicit compatibility policies and absolute/relative tolerance. Separate performance acceptance from execution success and provide pure CI classification plus strict report-v1 JSON, text and JUnit output.
Configuration intent and capability evidence¶
- Add explicit per-stream/aggregate-per-direction rate intent, exact SI unit parsing, native allocation provenance, and sequential admission estimates. Preserve the original request in an artifact extension and record the resolved low-level config separately from verified native settings.
- Add capability reports separating wrapper coverage, ABI declarations, native symbols, tested environments, and supplied execution evidence. Offline import and reports do not load libiperf; legacy capability flags remain lazy.
Measurement analysis¶
- Add duration-weighted interval stability, measured bytes/time throughput, stream balance/scaling, explicit comparison policies and directional asymmetry.
- Preserve qualified TCP seconds/bytes and endpoint process CPU evidence with exact provenance in the artifact-v1 format published with 0.3.0.
- Keep omissions, coverage gaps, unqualified producers and insufficient data explicit. Analysis uses the standard library and does not execute benchmarks.
Canonical results and artifacts¶
- Replace Pydantic runtime models with standard-library dataclasses and explicit
ClientConfigvalidation. Runtime dependencies now consist of CFFI. - Add normalized directional flow and interval models alongside the original
native JSON, execution metadata, and a
to_dict()helper. - Add strict version-1 JSON artifacts with producer identity, portable import, explicit legacy snapshot conversion, configuration evidence, structured diagnostics, per-stream summaries, and interval bytes/duration/warm-up state.
- Snapshot and revalidate configuration before each client run. Preserve native failure JSON and record observed UTC and monotonic timing separately from estimates derived from saved native output.
- Qualify both reporting endpoints across TCP, UDP, and SCTP directions and warm-up intervals. Keep mixed UDP stream summaries unattributed and mark unsupported SCTP retransmission values unavailable on qualified native versions.
Operational metrics and result correctness¶
- Add a dependency-free Prometheus renderer and atomic textfile writer.
- Emit each Prometheus metric family's metadata once, group its samples, and reject reserved caller labels and duplicate samples. Preserve existing files on failed atomic replacement.
- Read libiperf's native
bidirflag so simultaneous bidirectional runs retain both flows. Keep thebidirectionalspelling compatible and reject conflicts. - Preserve missing throughput and interval boundaries as
None, retain measured zero values, and omit unavailable Prometheus measurements. Keep reverse summary directions consistent and diagnose ambiguous bidirectional stream mappings. Saved native errors and incomplete output no longer appear successful. - Add a Kubernetes/Grafana example with native JSON-to-metric comparison and success/failure freshness checks.
Development tooling¶
- Add installed-package checks and retained wheel/sdist artifacts to release CI.
- Reuse a stable staging directory for local Docker validation.
- Refresh development dependencies and use current stable uv in CI and Docker.
- Adopt YAGA commit, workflow, repository, and source/test-change policies here.
- Add a Zensical documentation site with GitHub Pages deployment and link checks.
Migration from 0.2.0¶
The dedicated migration guide gives API substitutions, strict-input examples, and separate paths for native JSON, Pydantic dumps, development snapshots, and versioned artifacts.
Pydantic APIs such as model_dump(), model_validate(), and Pydantic validation
errors are no longer provided by these models. Use dataclass constructors,
Result.to_dict(), or dataclasses.asdict() as appropriate. Configuration
validation raises TypeError or ValueError; unsupported native features raise
UnsupportedFeatureError when applied. Numeric strings and booleans are not
accepted as integer configuration values. See configuration.
SumStats.bits_per_second and interval boundaries can now be None when
native measurements are absent. Check for None before arithmetic. The
legacy summary_mbps property still falls back to 0.0 when unavailable,
but it preserves a genuine zero instead of skipping to another endpoint.
Saved native errors and empty/incomplete documents produce failed results.
Applications importing bidirectional JSON without reporting-endpoint evidence
can pass reporting_role="client" or "server"; unproven stream direction
is reported as "unknown" with diagnostics.
Result.to_dict() is a new unversioned dataclass snapshot helper, including
native JSON. Use the artifact API for durable storage.
artifact_from_legacy_dict() imports only the documented historical development
snapshot shape; published Pydantic dumps need an explicit migration preserving
their original outcome. Timing is new since published 0.2.0. Saved native JSON
keeps inferred completion separately in execution.timing; Prometheus freshness
requires an observed completion event. Unverified completion fields in older
development snapshots remain estimates after conversion.
0.2.0 — 2026-07-22¶
- Correctly apply and verify TCP, UDP, and SCTP selection.
- Fix server bind-address handling, lazy-load libiperf, and keep JSON output out of the host process's stdout.
- Validate native option limits and reject unsupported MPTCP and streaming JSON.
- Add Python 3.14 and libiperf 3.21 support, refreshed dependencies, reproducible CI/release tooling, and stronger native integration coverage.
This release uses Pydantic configuration and result models. See the tagged README.
0.1.0¶
- Initial CFFI ABI wrapper for libiperf clients and servers.
- Pydantic configuration/results and asynchronous convenience methods.
- Docker compatibility tests and PyPI release automation.