From e79c4d672747326b4ebf225085e6ab5d5b9a0010 Mon Sep 17 00:00:00 2001 From: AamiriYouness Date: Thu, 6 Aug 2026 11:04:44 +0100 Subject: [PATCH] Release v0.4.0-alpha.1 Consolidates CHANGELOG.md's [Unreleased] section into a dated [0.4.0-alpha.1] entry and bumps README.md's Status line and install version. No functional code changes. Closes out the v0.4.0 "Compare" milestone: Core.Comparison foundation (#21, #30), BenchmarkComparisonEngine (#26), RegressionEvaluator refactored onto ComparisonResult with the old Evaluate(observations, baseline, policy) overload removed (#27), Console/JSON/Markdown comparison reporters (#28), and the benchmark-gate compare command (#29) -- plus ADR-0004 (versioned artifacts) and ADR-0005 (comparison facts vs. evaluation verdicts) documenting the resulting architecture. Breaking changes (pre-1.0, no migration path): - RegressionEvaluator.Evaluate(observations, baseline, policy) removed - MetricValue.Unit changed from string to string? --- CHANGELOG.md | 42 ++++++++++++++++++++++++++---------------- README.md | 4 ++-- 2 files changed, 28 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e4e6942..c3be4a7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ All notable changes to BenchmarkGate are documented here. ## [Unreleased] +## [0.4.0-alpha.1] - 06/08/2026 + ### Added - `Core.Comparison` namespace: `MetricDescriptor`, `OptimizationDirection`, `ChangeDirection` vocabulary types, `PercentDeltaCalculator` / @@ -23,38 +25,46 @@ All notable changes to BenchmarkGate are documented here. matching, metric matching, and delta calculation happen for the v0.4.0 `compare` pipeline. Deterministic output ordering via a new `Core.Identity.BenchmarkIdentityComparer`. Policy-free — no threshold or - pass/fail vocabulary. + pass/fail vocabulary (#26). - `Reporting.ConsoleComparisonReporter`, `Reporting.JsonComparisonReporter`, `Reporting.MarkdownComparisonReporter` — console, JSON (`schemaVersion=1`, independently versioned, full precision preserved), and Markdown output for `ComparisonResult`. No JUnit — no test verdict exists for a - policy-free comparison. No pass/fail vocabulary in any of the three. + policy-free comparison. No pass/fail vocabulary in any of the three (#28). - `Reporting.MarkdownBuilder.CodeSpan` — CommonMark-safe backtick-delimited - code spans. + code spans (#28). - `benchmark-gate compare` command — reports what changed between a baseline and a set of results (matching, deltas, direction) without requiring a `policy.json` or producing a pass/fail verdict. Supports `console` (default), `json`, and `markdown` output via `--format`; `--output ` writes to a file instead of stdout (required for - `json`/`markdown`, since those reporters only write to a path). Always - exits `Passed` (0) once it successfully produces a comparison — an - added/removed benchmark or a slower metric is a comparison result, not - a process failure. + `json`/`markdown`). Always exits `Passed` (0) once it successfully + produces a comparison (#29). +- `docs/adr/0004-versioned-artifacts.md` — the `schemaVersion` convention + across every persisted artifact. +- `docs/adr/0005-comparison-facts-vs-evaluation-verdicts.md` — the + `BenchmarkComparisonEngine`/`RegressionEvaluator` architectural split + underlying this release. ### Changed +- `RegressionEvaluator.Evaluate(observations, baseline, policy)` replaced + with `Evaluate(comparison, policy)` — the old signature is deleted + entirely, no forwarding overload. All benchmark matching, metric + matching, and delta calculation moved to `BenchmarkComparisonEngine`; + `RegressionEvaluator`'s only remaining job is policy interpretation over + precomputed comparison facts. A policy metric with a non-finite value + now produces no `MetricDecision` (deliberate behavior change from the + pre-v0.4.0 evaluator, which silently computed a NaN-arithmetic verdict). + `SuiteDecision.Benchmarks` now follows canonical identity order rather + than caller-supplied insertion order (#27). - `Core.Comparison.MetricValue.Unit` is now `string?` rather than `string`. `MetricComparisonStatus.UnitMismatch` is documented as reserved and not currently producible — neither `BenchmarkObservation` nor `BaselineEntry` carries a per-value source unit today, only `MetricCatalog`'s per-metric-name - semantic unit, which can't disagree with itself. -- `Tool.Commands.CheckCommand` updated to call `BenchmarkComparisonEngine.Compare` - then `RegressionEvaluator.Evaluate(comparison, policy)`, replacing the deleted - `Evaluate(observations, baseline, policy)` overload. Minimal compile-fix only — - `CheckCommand`'s full rewrite into pure orchestration is still #29's scope. -- `Tool.Commands.CheckCommand` documentation updated to reflect its actual - orchestration (`BenchmarkComparisonEngine.Compare` then - `RegressionEvaluator.Evaluate`) — no behavior change; the real - refactor happened during #27's compile-fix. + semantic unit, which can't disagree with itself (#26). +- `Tool.Commands.CheckCommand` now calls `BenchmarkComparisonEngine.Compare` + then `RegressionEvaluator.Evaluate(comparison, policy)`, replacing the + deleted `Evaluate(observations, baseline, policy)` overload (#27, #29). ## [0.3.0-alpha.1] - 03/08/2026 diff --git a/README.md b/README.md index 0fff6c9..e96676c 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ --- -**Status:** `v0.3.0-alpha.1`. See [ROADMAP.md](docs/ROADMAP.md) for what's +**Status:** `v0.4.0-alpha.1`. See [ROADMAP.md](docs/ROADMAP.md) for what's shipped and what's next. ## What this is @@ -33,7 +33,7 @@ performance contract: ## Install ```bash -dotnet tool install --global Bijecta.BenchmarkGate.Tool --version 0.3.0-alpha.1 +dotnet tool install --global Bijecta.BenchmarkGate.Tool --version 0.4.0-alpha.1 ``` ## Quick start