Repository navigation
Releases
Releases · pyjeebz/PreScale
v1.2.0
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 journeyslists 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).
- Secrets come from environment variables (
prescale runreplays journeys at load. Whenprescale/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 ajourneysfield (plus
verdict.culprit_journey). Stale journeys are skipped with the reason.--journeypicks
journeys;--urlstests URLs as before.- Journeys together, and interference. After ramping each journey alone,
prescale run
ramps them all together, the users split between journeys byweight, 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 acombinedfield.
--no-combinedskips it. - Journeys everywhere. The
--htmlreport shows each journey, the combined run and
--expect; the MCP tools' run summaries list each journey's verdict; andprescale 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 ciand 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: failfails 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 verifyshows them with every secret the journeys read masked.
New Action inputs:staleandallow-writes(the action only passes them when set, so a
pinned olderprescale-versionkeeps 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,
investigatenow 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-salejourney 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.investigateprints it,--jsonand saved runs carry it, the
HTML report (show --html) has a Diagnosis section with a Copy button, MCP'sinvestigate
returns it, and the PR comment folds it under the diagnosis. - Journey runs in CI are diagnosed.
prescale ciand 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. investigatediagnoses the journey step that breaks first. With journeys in
prescale/journeys/,prescale investigateramps them likerun, 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). Theinvestigationfield gainsculprit_journey,
culprit_stepandinterference.--urlsinvestigates URLs as before.--expect Nonrunsays 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,investigateandcitest journeys. Ifprescale/journeys/
exists in the directory you run from, these commands replay its journeys instead of URLs. Add
--urlsto test URLs as before. Without that directory nothing changes.
Fixed
prescale mcpworks 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 mcpsays 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
Added
- The ramp is never silent in CI. In GitHub Actions logs, pipes and anywhere a live table
can't redraw,run,investigateandcinow 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;--jsonstays quiet.
Full Changelog: v1.1.2...v1.1.3
v1.1.2
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
Fixed
- The GitHub Action loads again. An example in an input's description used a
secretsexpression, which GitHub evaluates and rejects, sopyjeebz/prescale/action@v1
failed before running. The description no longer contains one. - In replica mode,
prescale cino 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
Added
- Replica mode: test your app, not your host.
--app "npm run build && npm start"on
run,investigateandcistarts 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: trueand say they were measured on a local replica (no
serverless cold starts). The command is never saved or uploaded.
- Only local URLs; it refuses if something is already answering there, and shows the end of
- The GitHub Action runs on pull requests with no deploy: the new
appinput builds and
tests the PR in the job (app-timeoutandworking-directorytoo). Pushes tomaingive PRs
their baseline.
Full Changelog: v1.0.2...v1.1.0
v1.0.2
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,
runandinvestigateexplain the rule and ask (the default is no). - In
--jsonmode and scripts, pass--host-permission(orPRESCALE_HOST_PERMISSION=1). prescale ciand the GitHub Action skip these deploys, say why in the PR comment and the
job summary, and pass the check. Sethost-permission: trueif you have permission.- The MCP server refuses them unless it was started with
PRESCALE_HOST_PERMISSION=1.
- In a terminal,
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. investigatereports these asedge_protectionwith fixes that apply, instead of a
concurrency ceiling.
- Responses marked by the CDN's firewall (
Full Changelog: v1.0.1...v1.0.2
v1.0.1
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. investigatereports these asedge_protectionwith fixes that apply, instead of a
concurrency ceiling.
- Responses marked by the CDN's firewall (
Full Changelog: v1.0.0...v1.0.1
v1.0.0
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 loginis approved
in your browser. - Still local first. Nothing is uploaded unless you ask, and
prescale upload --dry-runshows the exact payload first.
Added
- One-line install, no Python setup:
curl -fsSL https://prescale.dev/install | sh
(macOS, Linux) orirm https://prescale.dev/install.ps1 | iex(Windows). Installs into
its own environment with uv.pip install prescalestill works. prescale login/logout: connect to your dashboard by approving the login in your
browser, no token to copy (--no-browserprints the link; over SSH it does by default).
--pastetakes a token from Connect instead,--tokenfor scripts. The token is saved
readable only by you.PRESCALE_TOKEN/PRESCALE_URLfor CI.--uploadonrunandinvestigate, andprescale upload [run] [--dry-run].
The upload is the saved Result file, unchanged;--dry-runprints exactly that.-H/--headeronrun,investigateandci: 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-regressionfails the job on a confirmed drop. Skips production deploys.- GitHub Action
pyjeebz/prescale/action@v1, a thin wrapper aroundprescale 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,compareand 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),compareand
compare --mddraw 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_BRANCHoverride the detected git info.- Result schema: optional
auditfindings (stillschema_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
A small patch release.
Fixed
prescale mcpwithout 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
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/showre-open them,prescale schemadocuments the format.run --jsonand 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 Nand--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-huntframes the verdict as "would survive a Product Hunt #1 launch".
Changed
--jsonnow 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