Skip to content

Releases

v1.2.0

Choose a tag to compare

@github-actions github-actions released this 09 Nov 07:06
d565544

Added

  • Journeys: your users' real paths, saved in your repo. A journey file
    (prescale/journeys/<name>.yaml) lists the requests a user's path makes (log in, add to
    cart, place an order), carrying tokens and IDs from one step to the next.
    prescale journeys lists them; prescale journeys verify <url> replays each once, as one
    user, and names the step that no longer answers as expected (the journey is stale, or the
    app is broken). It exits non-zero, so it works as a CI check.
    • Secrets come from environment variables ({{env.NAME}}); a literal password, token or
      API key in a journey file is refused.
    • Journeys that change data only run against local hosts or hosts you allow with
      --allow-writes; journeys that send messages or delete data are never replayed.
    • The example shop has a JSON API and three example journeys in examples/journeys/
      (browse, checkout behind a 25-connection pool, and a flash sale on one product).
  • prescale run replays journeys at load. When prescale/journeys/ has journeys, virtual
    users walk whole journeys (with each step's think time and their own cookies) instead of hitting
    single URLs. Each journey is ramped on its own; the report names the journey and the step that
    break first, with per-step timings, and saved runs carry a journeys field (plus
    verdict.culprit_journey). Stale journeys are skipped with the reason. --journey picks
    journeys; --urls tests URLs as before.
  • Journeys together, and interference. After ramping each journey alone, prescale run
    ramps them all together, the users split between journeys by weight, and flags a journey that
    breaks with no more of its own users than it held alone: it competes with the others for
    something they share (a database pool, CPU, a cache). Saved runs carry a combined field.
    --no-combined skips it.
  • Journeys everywhere. The --html report shows each journey, the combined run and
    --expect; the MCP tools' run summaries list each journey's verdict; and prescale compare
    diffs each journey by name (terminal, --json, --markdown). A drop past the threshold in any
    journey counts as a regression for --fail-on-regression, even when it isn't the weakest journey.
  • Journeys in CI. prescale ci and the GitHub Action replay the checkout's journeys when
    prescale/journeys/ exists. The PR comment shows each journey's verdict, interference, and
    journeys that no longer replay (listed always; --stale fail / stale: fail fails the check).
    A journey that gets no answer, or a 5xx with a single user, always fails the check (that's the
    app, not a stale file). Response bodies never reach the PR comment or uploads; locally,
    journeys verify shows them with every secret the journeys read masked.
    New Action inputs: stale and allow-writes (the action only passes them when set, so a
    pinned older prescale-version keeps working). A journey run is only ever compared with a
    journey baseline (and a URL run with a URL baseline); if the dashboard can't say it compared
    like with like, the PR comment shows no change instead of a possibly misleading one.
  • How many at once, and one-at-a-time bottlenecks. For the journey step that breaks first,
    investigate now counts how many requests it serves at once (its most completions per second
    times its 1-user time, once those completions stop rising while users keep rising) and says so:
    "~25 requests served at once" is often the pool or worker count you're hitting. About one at a
    time gets a new class, serialized: a lock on one shared row (one product's stock in a flash
    sale), a global lock, or a single worker, with fixes for each. The example shop has a
    flash-sale journey that PreScale names this way.
  • A fix prompt for your coding agent. Every diagnosis now comes with fix_prompt: plain
    text that says where it broke, at how many users, the likely cause, the evidence and the
    fixes, and asks the agent for the smallest fix and to re-run PreScale to confirm. It's built
    from the run itself, with no model, and never includes response bodies, secrets or
    credentials from the URL. investigate prints it, --json and saved runs carry it, the
    HTML report (show --html) has a Diagnosis section with a Copy button, MCP's investigate
    returns it, and the PR comment folds it under the diagnosis.
  • Journey runs in CI are diagnosed. prescale ci and the GitHub Action now probe the
    journey step that broke first (as URL runs already were), so the PR comment says why it broke
    and how to fix it, not just where.
  • investigate diagnoses the journey step that breaks first. With journeys in
    prescale/journeys/, prescale investigate ramps them like run, then probes the step that
    broke first with the journey's own state (its 1-user latency comes from replaying the journey
    from the start), compares it with the journey's other steps, and names the bottleneck and the
    fix: culprit checkout, step 3 place order · connection_pool (high confidence). If the
    journeys ramped together starved that journey, the evidence says so; if every journey held alone
    but they broke together, the step that broke together is diagnosed. A step that answers an
    unexpected 4xx under load gets a new class, unexpected_answer (users conflicting over shared
    data, or sessions failing under load). The investigation field gains culprit_journey,
    culprit_step and interference. --urls investigates URLs as before.
  • --expect N on run says whether you'd hold N users at peak. In a journey run, N is split
    across journeys by weight: each must hold its share alone, and all together must hold N.

Changed

  • With journey files, run, investigate and ci test journeys. If prescale/journeys/
    exists in the directory you run from, these commands replay its journeys instead of URLs. Add
    --urls to test URLs as before. Without that directory nothing changes.

Fixed

  • prescale mcp works on a fresh install again. pip install 'prescale[mcp]' picked up the new
    mcp 2.x, which renamed the server class PreScale uses, so the MCP server wouldn't start and told
    you to install the extra you already had. The extra now installs mcp 1.x, and if an unsupported
    mcp is already installed, prescale mcp says so and shows the command that fixes it.

What's Changed

  • chore: jeebzstack ship config (checks, proof, risky paths, deploy, release) by @pyjeebz in #5
  • fix(mcp): pin mcp below 2 and say when the installed mcp is unsupported by @pyjeebz in #6
  • feat(journeys): journey file format and prescale journeys verify by @pyjeebz in #7
  • feat(journeys): prescale run replays journeys at load by @pyjeebz in #8
  • feat(journeys): ramp journeys together to catch interference, and --expect by @pyjeebz in #9
  • feat(journeys): journeys in the HTML report, compare and MCP summaries by @pyjeebz in #10
  • feat(journeys): prescale ci and the Action replay journeys, with --stale by @pyjeebz in #11
  • feat(journeys): investigate diagnoses the journey step that breaks first by @pyjeebz in #12
  • feat(journeys): the diagnosis in CI and the HTML report, plus a fix prompt for coding agents by @pyjeebz in #13
  • feat(journeys): count how many requests a step serves at once, and name one-at-a-time bottlenecks by @pyjeebz in #14
  • chore: release 1.2.0 by @pyjeebz in #15

Full Changelog: v1.1.3...v1.2.0

v1.1.3

Choose a tag to compare

@github-actions github-actions released this 23 Oct 13:19

Added

  • The ramp is never silent in CI. In GitHub Actions logs, pipes and anywhere a live table
    can't redraw, run, investigate and ci now print one line per finished stage (users,
    req/s, p95, errors; red once it crosses the latency wall) and say when they start diagnosing
    the culprit route. In a terminal you still get the live table; --json stays quiet.

Full Changelog: v1.1.2...v1.1.3

v1.1.2

Choose a tag to compare

@github-actions github-actions released this 22 Oct 04:35

Fixed

  • The right route gets the blame when everything slows down together. In a Node app (or
    any single process), one slow route makes every route queue, and the cheap ones can cross
    the latency wall first. When several routes cross it at once, PreScale now names the one
    that was already slowest at light load: the route doing the work.
  • In replica mode, the PR comment says it measured a build of the commit in CI ("this build"),
    not a preview deploy.

Full Changelog: v1.1.1...v1.1.2

v1.1.1

Choose a tag to compare

@github-actions github-actions released this 22 Oct 04:26

Fixed

  • The GitHub Action loads again. An example in an input's description used a
    secrets expression, which GitHub evaluates and rejects, so pyjeebz/prescale/action@v1
    failed before running. The description no longer contains one.
  • In replica mode, prescale ci no longer warns that previews share production's database:
    the load reaches whatever the job's environment points your app at.

Full Changelog: v1.1.0...v1.1.1

v1.1.0

Choose a tag to compare

@github-actions github-actions released this 22 Oct 01:43

Added

  • Replica mode: test your app, not your host. --app "npm run build && npm start" on
    run, investigate and ci starts your app's own build, waits until the local URL answers,
    runs the test on localhost, and stops the app and everything it started (also on errors and
    Ctrl-C). No host is involved, so no host's load-testing rules apply and no CDN shapes the
    result.
    • Only local URLs; it refuses if something is already answering there, and shows the end of
      the app's log if it crashes or never comes up. --app-timeout (default 600s) covers slow
      builds.
    • Results carry config.replica: true and say they were measured on a local replica (no
      serverless cold starts). The command is never saved or uploaded.
  • The GitHub Action runs on pull requests with no deploy: the new app input builds and
    tests the PR in the job (app-timeout and working-directory too). Pushes to main give PRs
    their baseline.

Full Changelog: v1.0.2...v1.1.0

v1.0.2

Choose a tag to compare

@github-actions github-actions released this 22 Oct 01:14

Added

  • PreScale checks your host's rules before sending load. Vercel only permits load
    testing on Enterprise plans with prior notice, Netlify needs its express permission, and
    Cloudflare blocks load tests unless arranged. PreScale recognises these hosts from the first
    response and won't send load until you confirm you have permission:
    • In a terminal, run and investigate explain the rule and ask (the default is no).
    • In --json mode and scripts, pass --host-permission (or PRESCALE_HOST_PERMISSION=1).
    • prescale ci and the GitHub Action skip these deploys, say why in the PR comment and the
      job summary, and pass the check. Set host-permission: true if you have permission.
    • The MCP server refuses them unless it was started with PRESCALE_HOST_PERMISSION=1.

Changed

  • When a CDN's firewall blocks a test, PreScale now suggests testing locally or on staging
    you're allowed to load, or arranging the test with your host, instead of exempting your IP.

Fixed

  • Sites behind a CDN no longer get blamed for the CDN's limits. Load-testing a site on
    Vercel or Cloudflare from one machine can trip the CDN's DDoS protection, or measure its
    cache instead of your app. PreScale now tells you:
    • Responses marked by the CDN's firewall (x-vercel-mitigated, cf-mitigated) count as
      blocked by Vercel's firewall (or Cloudflare's), not as fast successes, and the report
      says from which level and how to exempt your IP for the test.
    • If the first request is already blocked, PreScale stops before sending any load.
    • Routes answered from the CDN's cache (x-vercel-cache, cf-cache-status, x-cache)
      are called out: a slowdown there is the CDN limiting one IP, not your app's capacity.
    • investigate reports these as edge_protection with fixes that apply, instead of a
      concurrency ceiling.

Full Changelog: v1.0.1...v1.0.2

v1.0.1

Choose a tag to compare

@github-actions github-actions released this 21 Oct 04:13

Fixed

  • Sites behind a CDN no longer get blamed for the CDN's limits. Load-testing a site on
    Vercel or Cloudflare from one machine can trip the CDN's DDoS protection, or measure its
    cache instead of your app. PreScale now tells you:
    • Responses marked by the CDN's firewall (x-vercel-mitigated, cf-mitigated) count as
      blocked by Vercel's firewall (or Cloudflare's), not as fast successes, and the report
      says from which level and how to exempt your IP for the test.
    • If the first request is already blocked, PreScale stops before sending any load.
    • Routes answered from the CDN's cache (x-vercel-cache, cf-cache-status, x-cache)
      are called out: a slowdown there is the CDN limiting one IP, not your app's capacity.
    • investigate reports these as edge_protection with fixes that apply, instead of a
      concurrency ceiling.

Full Changelog: v1.0.0...v1.0.1

v1.0.0

Choose a tag to compare

@github-actions github-actions released this 21 Oct 00:19

PreScale 1.0: the CLI can now send runs to your PreScale dashboard and check every
deploy from CI. It still works fully offline, and nothing is uploaded unless you ask.

Highlights

  • A capacity check on every pull request. The GitHub Action load-tests each preview
    deploy and keeps one comment on the PR: how many users this deploy survives compared with
    main, what breaks first, why, and the fix.
  • A free dashboard at prescale.dev/dashboard. Each site
    gets a capacity timeline that names the commit where a regression started. Runs are private
    until you share one.
  • Launch Guard. Pick a launch (Product Hunt, Hacker News, Black Friday) and get GO, RISKY
    or NO-GO, with the fix when it isn't GO. Sign off a GO and add a live README badge that
    turns red if capacity drops.
  • Capacity as traffic. Every verdict says what "survives ~N users" means in requests per
    second and roughly how many real visitors that is.
  • One-line install, one-click login. No Python setup, and prescale login is approved
    in your browser.
  • Still local first. Nothing is uploaded unless you ask, and
    prescale upload --dry-run shows the exact payload first.

Added

  • One-line install, no Python setup: curl -fsSL https://prescale.dev/install | sh
    (macOS, Linux) or irm https://prescale.dev/install.ps1 | iex (Windows). Installs into
    its own environment with uv. pip install prescale still works.
  • prescale login / logout: connect to your dashboard by approving the login in your
    browser, no token to copy (--no-browser prints the link; over SSH it does by default).
    --paste takes a token from Connect instead, --token for scripts. The token is saved
    readable only by you. PRESCALE_TOKEN / PRESCALE_URL for CI.
  • --upload on run and investigate, and prescale upload [run] [--dry-run].
    The upload is the saved Result file, unchanged; --dry-run prints exactly that.
  • -H / --header on run, investigate and ci: extra request headers (for
    example a Vercel protection bypass). Sent to your site only, never saved or uploaded.
  • prescale ci: check a deploy from CI. Investigates the deploy URL, uploads, compares
    with your baseline branch, writes the job summary and keeps one PR comment up to date.
    --fail-on-regression fails the job on a confirmed drop. Skips production deploys.
  • GitHub Action pyjeebz/prescale/action@v1, a thin wrapper around prescale ci.
  • investigate --profile <name> (ramps to 1.5x the launch's peak) and --audit
    (the HTTP hygiene checks in the same run): everything Launch Guard needs in one command.
  • Capacity as traffic: every verdict now says what "survives ~N users" means in load:
    requests per second at the highest stage that held, and a rough real-visitor equivalent
    (assuming one request per visitor every 10s). In the readiness report, compare and the PR
    comment (with the baseline's figure alongside).
  • PreScale's bars in text (░ → ▒ → █, ┆ for a threshold): the load-ramp and
    per-route tables gain a p95 bar toward the latency wall (live and final), the readiness
    panel shows how far up the ramp you got (and capacity vs a launch's peak), compare and
    compare --md draw old vs new, and the PR comment draws the baseline vs this deploy plus
    the routes at the breaking stage.
  • PRESCALE_GIT_COMMIT / PRESCALE_GIT_BRANCH override the detected git info.
  • Result schema: optional audit findings (still schema_version: 1).

Changed

  • Confidence bands no longer collapse to 0 on small, error-free early stages, so
    regressions on slow or short runs can be confirmed.
  • compare: a run that held to its max below the old level is reported as
    inconclusive instead of a regression. It wasn't pushed far enough to tell.

Full Changelog: v0.2.1...v1.0.0

v0.2.1

Choose a tag to compare

@github-actions github-actions released this 30 Jun 06:24

A small patch release.

Fixed

  • prescale mcp without the optional extra printed the wrong install command (pip install 'prescale' instead of 'prescale[mcp]') — rich was interpreting [mcp] as console markup. It now prints the correct command, with a regression test.

Docs

  • Rewrote the README and refreshed the PyPI description for the full 0.2.x toolkit: load test → confidence band → investigate → MCP server → regression/CI → launch profiles.

Install: pip install prescale (add [mcp] for the agent server).

Full Changelog: v0.2.0...v0.2.1

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 30 Jun 05:05

PreScale grew from a single load-test command into a full toolkit.

Added

  • Saved runs & a versioned result contract — every run is stored under .prescale/runs/; prescale history / show re-open them, prescale schema documents the format. run --json and the saved file share one shape.
  • A trustworthy verdict — a deterministic confidence band ("survives ~90 (80–110)") with a stable/uncertain flag, at no extra cost. Warmup runs by default (--no-warmup), plus --repeat N and --think-time S.
  • prescale investigate — finds the route that breaks first, then probes it to diagnose why (a bottleneck class with confidence + evidence) and prescribe a fix. Fully local, no LLM.
  • MCP server (prescale mcp) — load-test from a coding agent (Claude Code, Cursor). pip install 'prescale[mcp]'. Safe by default — local hosts only unless allowlisted.
  • Regression + CI — --fail-under N, prescale compare (capacity diff of two runs), and --fail-on-regression (band-aware), plus a copy-paste GitHub Actions workflow.
  • Launch profiles — prescale run --profile product-hunt frames the verdict as "would survive a Product Hunt #1 launch".

Changed

  • --json now emits the full versioned Result and is robust to long lines.

Install: pip install prescale (add [mcp] for the agent server).

Full Changelog: v0.1.0...v0.2.0