Skip to content

Releases

v0.1.3

Choose a tag to compare

@github-actions github-actions released this 16 Nov 20:10
5656024

Changed

  • record.ReadRaw now returns an error that wraps the new record.ErrNotRaw when its input is not raw data at all: an empty input, or a line without a type field such as an aggregated JSON result. Such input used to read as a run without records, so this may affect code that relied on reading an empty input; a stream that holds only the meta line still reads as a run without requests. As a result jotaro export, -raw of jotaro report / merge / check / compare and the MCP tools with raw: true fail with a message that asks for the output of Plan.Raw, instead of printing an empty result or no data.
  • Plan.Raw now streams: each record is written to it as it arrives (record.RawWriter) instead of being kept in memory and written at the end, so memory stays constant with Plan.Raw too. The Report that Run returns is aggregated incrementally in that case as well, so its percentiles are within 1% relative error (they were exact before); re-aggregate the raw data with jotaro report -raw or report.FromRaw for exact ones. Lines are now in arrival order and the stream ends with a second meta line holding the final dropped and elapsed_ns; ReadRaw (including older versions) reads it unchanged, and RawVersion stays 1.

Added

  • examples/mix: a small load test that shows Plan.Scenarios, UserStages with RepeatUserStages and StartUsers, AbortOn, Progress, MetricsAddr, ExpectStatusIn / ExpectJSON / Response.JSON and thresholds per scenario, laid out the way the README recommends for a project. There are also godoc Examples for RepeatUserStages, Plan.UserStages, Plan.Scenarios, Plan.AbortOn, Response.JSON and Response.ExpectJSON, and the examples README walks through running a test, checking it with jotaro check and reading it with jotaro report. The checkout and marketplace examples now print the report when Run returns one together with an error.
  • report.Aggregator.Snapshot(elapsed): a Report without the per-second Series, for polling a run in progress. It takes about the same time however long the run is, while Report walks every second of it. AbortOn and MetricsAddr use it, so they hold the aggregator's lock only briefly.
  • jotaro mcp: the guide covers Plan.Scenarios / Weighted, the Expect* checks and Response.JSON, its skeleton saves results/result.json and handles ErrAborted, and it has a section on where the files of a load test go. The thresholds document recommends dropped<1 next to corrected_*, and the write_scenario prompt ends with how to run the scenario and read the result.
  • jotaro mcp: the jotaro://result resource explains how to save a result and how to read it (structure, what each number and error kind means, what to check first).
  • jotaro mcp: the summarize_result tool returns the key numbers of a saved result file (throughput, error rate, latency per step, dropped arrivals, the worst second) and warnings such as a saturated load generator, without the histograms and the per-second series.
  • jotaro mcp: the check_result tool judges a saved result file (JSON, or raw data with raw: true) against thresholds, like jotaro check, and returns pass or fail per threshold with the measured value.
  • The text report now prints a warning: line under dropped: when arrivals were dropped by the Plan.MaxUsers cap ("I'll tell you exactly what just happened: N arrivals were dropped..."), so drops are hard to miss. Nothing changes when no arrival was dropped.
  • Plan.MetricsAddr: serve the live state of a run at /metrics in the Prometheus text format (requests, responses by status class, errors, throughput, latency quantiles), so Grafana and similar tools can chart it during the run. It is written by hand, adds no dependency, and stops when Run returns.
  • jotaro export -format vegeta|csv [-o file] <raw.jsonl | ->, report.WriteVegeta and Report.WriteSeriesCSV: convert raw data (the output of Plan.Raw) to vegeta's JSON result lines, which vegeta report -type=json and vegeta plot can read, or to a CSV of per-second request counts, errors, connections, concurrency and latency percentiles. The vegeta format cannot carry scenario or step details, so the attack name is <scenario>/<step>.
  • Scenario-level latency in thresholds: iteration_p95, iteration_active_p99 and the other iteration_[active_]<stat> metrics judge the time of a whole scenario iteration (with or without Think time), for the whole run or per scenario with {scenario=...}. The distribution was already in the report as IterationStats.Total / Active; this makes it usable in jotaro check and in AbortOn rules.
  • Plan.Scenarios and Weighted: run a weighted mix of scenarios in one plan (for example 70% browse, 30% checkout). Each iteration (closed model) or arrival (open model) picks one scenario at random in proportion to its weight. It is mutually exclusive with Plan.Scenario, and the scenarios must have distinct names. Reports and thresholds already separate results by scenario name. jotaro mcp's lint accepts the new field.
  • Richer response checks: Response.ExpectStatusIn, ExpectHeader, ExpectBodyContains and ExpectJSON(path, want), all reported as expect_mismatch like ExpectStatus, and Response.JSON(path) to pull one value out of a JSON body with a dot path such as data.items.0.id, without a struct. ExpectError gains a Detail field for non-status mismatches (Want is 0 for them). No new dependencies.
  • jotaro compare base.json new.json and report.Compare: per-step and overall diffs (rps, p50/p95/p99, error rate) between two results, with -max-p95-regression <percent> to exit with code 1 on a regression.
  • Plan.AbortOn and AbortRule: stop a run early when a condition holds, for example {When: "http_5xx_rate>50%", For: 5 * time.Second}, so a broken server is not hit for the whole Duration. When uses the threshold syntax (report.ParseThreshold) but names the state to stop at. It is evaluated every second against the whole run so far (not a sliding window), and For is how long it must hold without a break. On abort no new iterations start and running ones get Grace counted from the abort. Run returns the partial report (and writes Plan.Raw) together with an error wrapping the new ErrAborted, and writes an aborted: ... line to Plan.Progress if it is set.
  • Plan.Progress: an io.Writer that receives one line per second while a run is in progress, such as 12s/60s rps=480 p95=38ms err=0.2% (elapsed/duration, throughput of the last second, and p95 and error rate over the run so far). It works with and without Plan.Raw, adds no recording cost, and writes nothing after Run returns.
  • RepeatUserStages(n, stages...): repeats a sequence of UserStage n times, so a load shape that goes up and down several times (waves, spikes) does not have to be written out by hand. Join it with other stages using append.
  • Plan.StartUsers: how many users are already running when the first stage of Plan.UserStages begins (default 0), so a run can start at full load instead of ramping up from 0. It can only be set together with UserStages.
  • Plan.UserStages and UserStage: change the number of concurrent users over time in the closed model (for example ramp up to 100 users, hold, ramp down), like k6's ramping-vus. It is mutually exclusive with Plan.Users and Plan.Arrival. Users keep their User.ID and iteration count across stops and restarts; a user stopped by a lower target finishes its running iteration first. Series.Concurrency shows the resulting load shape. jotaro mcp's lint and authoring guide know the new field.

Fixed

  • A descending Ramp (for example Ramp(11, 0, time.Second, 10*time.Second)) could compute NaN for its last arrival because of rounding. That arrival then started immediately with the start of the ramp as its scheduled time, which overstated the corrected latency (its max became as long as the ramp), and inside Stages one arrival too many was started. The last arrival now lands at the end of the ramp.
  • The documentation said that error_rate includes failed Expect* checks. It never did: error_rate is the share of requests that ended in a transport-level error (timeout, connection refused, DNS failure and so on). A failed Expect* check fails the step with expect_mismatch and reaches iteration_fail_rate when the scenario returns that error. The README, docs/result.md, the godoc of AbortRule and Threshold and the MCP documents now say so, and say how to fail a run on wrong responses. The behavior is unchanged.
  • The HTML report shows the load model as closed or open. It showed closed (Users) / open (Rate), which was wrong for UserStages, Ramp and Stages.
  • README.md, docs/result.md and DESIGN.md (and their Japanese versions) described features as missing or planned that exist (stopping a run early, scenario-level latency, vegeta export, /metrics), and other details that no longer matched the code. They are brought in line with the implementation, and the README gains a section on how to lay out a load test project.
  • jotaro mcp: check_scenario no longer reports an error for a Plan whose Users, UserStages or Arrival is assigned after the literal (for example plan.Users = 20), as examples/checkout does.
  • jotaro mcp: without dir, check_scenario type-checks against the jotaro version of the running binary (the latest one only for a development build), so code that follows the embedded guide no longer fails with unknown field when the latest release is older than the binary.
  • jotaro mcp: the server reports its real version to the client instead of v0.1.0, and validate_threshold errors no longer start with jotaro: .
  • Aggregator.Report returned the aggregator's live Status and Errors maps, so a report taken while r...
Read more

v0.1.2

Choose a tag to compare

@github-actions github-actions released this 12 Nov 03:03
723a68a

Changed

  • Run without Plan.Raw now aggregates incrementally: records are folded into histograms as they arrive instead of being kept, so memory no longer grows with the number of requests (5 million requests: about 1165 MB → 9 MB of collector heap in one measurement). As a result, P50–P99 in that report are approximations within 1% relative error; count, min, max and mean stay exact. With Plan.Raw set, every record is kept and the percentiles are exact as before. BuildReport and FromRaw are unchanged.

Added

  • report.Aggregator, an incremental alternative to BuildReport; record.Observer and record.NewStreamingCollector, a Collector that hands records to an observer instead of keeping them.

v0.1.1

Choose a tag to compare

@github-actions github-actions released this 01 Nov 17:50
ab7fb77

Added

  • jotaro version (also -version / --version) prints the version. Release binaries report the release tag and commit; go install ...@vX.Y.Z reports the module version; other builds report dev.

Fixed

  • The GitHub Release is now published with the matching CHANGELOG.md section as its notes. The v0.1.0 release was published with an empty body because the GoReleaser configuration skipped the release notes file.

v0.1.0

Choose a tag to compare

@github-actions github-actions released this 01 Nov 16:47
1975b6c

First public release.

Added

  • Scenarios written as plain Go code (Scenario / User / Step), with request builders (Get / Post / ..., headers, query, JSON / form bodies, Decode, ExpectStatus) and think time.
  • Closed model (Users) and open model (Rate / Ramp / Stages) load, with Coordinated Omission correction in the open model.
  • Feeder and LoadCSV to hand out per-user data.
  • Per-step latency (p50 / p90 / p95 / p99 / max), error breakdown, throughput, TTFB, DNS / TCP / TLS time and connection reuse rate; a per-second time series and the health of the load generator (CPU, goroutines).
  • Reports as text, JSON and a self-contained HTML file; raw data as JSON Lines (Plan.Raw).
  • jotaro CLI: report, merge and check (thresholds such as p95<200ms, exit code 1 when not met).
  • jotaro mcp: an MCP server (stdio) that helps write scenarios. It serves the authoring guide and the threshold syntax as resources, a write_scenario prompt, and the tools check_scenario (syntax, jotaro-specific lint, type check; nothing is executed) and validate_threshold.
  • THIRD_PARTY_NOTICES.md (license texts of the bundled modules) is included in the release archives.
  • Runs on Go 1.25 or later; CI on Linux, macOS and Windows.