pepe-http 0.39.0 → 0.40.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -6,6 +6,108 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
8
  ## [Unreleased]
9
+ ## [0.40.0](https://github.com/omarmhaimdat/pepe/compare/v0.39.1...v0.40.0) - 2026-10-12
10
+
11
+ ### Added
12
+
13
+ - *(store)* recorded runs: --record, w on the dashboard, pepe history, pepe rerun, pepe compare NAME ([#177](https://github.com/omarmhaimdat/pepe/pull/177))
14
+
15
+ ## What
16
+
17
+ A saved test keeps its results too, when asked, and pepe can read them
18
+ back.
19
+
20
+ - `--record` on a run of a saved test writes the report when it ends, as
21
+ `.pepe/runs/NAME/<moment>.json`, in every path: `--json`, headless, the
22
+ dashboard and the ramp screen. It refuses a run that is not a saved test
23
+ (`--load NAME`, or `--keep NAME`), and modes other than a run or a ramp.
24
+ - `w` on the dashboard and the ramp screen records the run once it has
25
+ ended, with a notice saying where.
26
+ - Every report carries `test` and `command`, the command with header
27
+ secrets masked, so a recorded run can be run again from the file alone.
28
+ Both JSON schemas gained the two fields.
29
+
30
+ ```
31
+ $ pepe -n 1000 -c 10 https://api.example.com/health --keep api-health
32
+ --record --json
33
+ saved .pepe/tests/api-health.toml · `pepe --load api-health` runs it
34
+ recorded .pepe/runs/api-health/2026-10-12T22-55-04Z.json · pepe history
35
+ api-health
36
+ ```
37
+
38
+ - `pepe history` lists the saved tests with their run counts and last
39
+ run; `pepe history NAME` lists a test's runs, each against the one
40
+ before. Both take `--json`.
41
+ - `pepe rerun NAME` is `--load NAME --record` followed by the comparison
42
+ with the previous run; with `--json` the comparison is what gets
43
+ printed, the run's own report being on disk; `--gate` exits 1 on a
44
+ regression.
45
+ - `pepe compare NAME` holds a test's last two recorded runs against each
46
+ other. Two runs recorded in the same second are told apart and kept in
47
+ order.
48
+ - In the library, each test shows its last run (rps, p99, failures, age)
49
+ when the terminal is wide enough, and `h` opens its history: the runs
50
+ newest first, with a card saying what moved since the run before. Mouse
51
+ and wheel work there as everywhere.
52
+ - The plan screen's parameters pane takes clicks: one picks a parameter,
53
+ a second edits it.
54
+
55
+ The reference, completions and man pages know the two commands and the
56
+ flag; the load-test, compare, dashboard and agents pages document them.
57
+
58
+ ## Why
59
+
60
+ v0.37 to v0.39 gave pepe saved tests, a library to pick from, and a way
61
+ to keep any run. The payoff of the store is results next to the test
62
+ they came from: a trend over time instead of two files on a desk, and
63
+ "did my change regress" as one command that CI can gate on. The report
64
+ carrying its own invocation means no result is ever an orphan.
65
+
66
+ ## Checked
67
+
68
+ - `cargo test`, `cargo clippy --all-targets -- -D warnings`, `cargo fmt
69
+ --check`
70
+ - `UPDATE_CONTRIB=1 cargo test contrib` and `python3 site/build-docs.py`
71
+ - Against a local HTTP server: `--keep … --record --json` (report
72
+ carries `test` and the masked command), a headless `--load … --record`,
73
+ `pepe history` in both forms and as JSON, `pepe compare NAME`, `pepe
74
+ rerun NAME` as text and as JSON, the refusals for an unsaved run and an
75
+ unknown name, and two runs in one second kept in order.
76
+
77
+
78
+ ## [0.39.1](https://github.com/omarmhaimdat/pepe/compare/v0.39.0...v0.39.1) - 2026-10-12
79
+
80
+ ### Fixed
81
+
82
+ - *(dashboard)* the filter bar over the requests is clickable, part by part ([#174](https://github.com/omarmhaimdat/pepe/pull/174))
83
+
84
+ ## What
85
+
86
+ The requests tab's filter bar, the line with STATUS, LATENCY and SEARCH
87
+ over the table, takes the mouse like the rest of the dashboard:
88
+
89
+ - a group's name or its key letter (`f`, `l`, `/`) presses that key, so
90
+ STATUS cycles the status filter and SEARCH opens the search for typing;
91
+ - a status or a latency choice sets that filter outright, rather than
92
+ cycling to it;
93
+ - the ENDPOINT chip, when an endpoint filter is on, lets it go.
94
+
95
+ ## Why
96
+
97
+ v0.38.0 made every screen clickable through regions registered as they
98
+ are drawn. The filter bar drew its hints and choices as plain text and
99
+ registered nothing, so the three controls a user reaches for most on
100
+ that tab were the ones that took no click.
101
+
102
+ ## Checked
103
+
104
+ - `cargo test`, `cargo clippy --all-targets -- -D warnings`, `cargo fmt
105
+ --check`
106
+ - `python3 site/build-docs.py`
107
+ - A test renders the requests tab, clicks each part and checks the
108
+ filter it sets, then checks the regions are gone on another tab.
109
+
110
+
9
111
  ## [0.39.0](https://github.com/omarmhaimdat/pepe/compare/v0.38.0...v0.39.0) - 2026-10-12
10
112
 
11
113
  ### Added
package/completions/_pepe CHANGED
@@ -60,6 +60,7 @@ _pepe() {
60
60
  '--dry-run[Say what would be sent, to where and how much, and send nothing; as JSON with --json]' \
61
61
  '-i[Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)]' \
62
62
  '--setup[Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)]' \
63
+ '--record[Keep the run'\''s report under its saved test when it ends, as ./.pepe/runs/NAME/<moment>.json; the run has to be a saved test (--load NAME, or --keep NAME)]' \
63
64
  '-V[Print version]' \
64
65
  '--version[Print version]' \
65
66
  '::url -- HTTP url to request:_default' \
@@ -147,6 +148,7 @@ fail\:"A failure"))' \
147
148
  '--dry-run[Say what would be sent, to where and how much, and send nothing; as JSON with --json]' \
148
149
  '-i[Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)]' \
149
150
  '--setup[Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)]' \
151
+ '--record[Keep the run'\''s report under its saved test when it ends, as ./.pepe/runs/NAME/<moment>.json; the run has to be a saved test (--load NAME, or --keep NAME)]' \
150
152
  '*::targets -- What to ping\: URLs or hosts (https unless a port is given), host\:port, aws\:REGION, a range like 10.0.0.0/29, or commands with --cmd; several are graphed together:_default' \
151
153
  && ret=0
152
154
  ;;
@@ -201,6 +203,7 @@ _arguments "${_arguments_options[@]}" : \
201
203
  '--dry-run[Say what would be sent, to where and how much, and send nothing; as JSON with --json]' \
202
204
  '-i[Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)]' \
203
205
  '--setup[Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)]' \
206
+ '--record[Keep the run'\''s report under its saved test when it ends, as ./.pepe/runs/NAME/<moment>.json; the run has to be a saved test (--load NAME, or --keep NAME)]' \
204
207
  '::url -- HTTP url to request; without one, the setup screen opens:_default' \
205
208
  && ret=0
206
209
  ;;
@@ -252,8 +255,110 @@ _arguments "${_arguments_options[@]}" : \
252
255
  '--dry-run[Say what would be sent, to where and how much, and send nothing; as JSON with --json]' \
253
256
  '-i[Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)]' \
254
257
  '--setup[Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)]' \
255
- ':before -- The earlier report (`pepe --json`, `--snapshot`, or a ramp'\''s):_files' \
256
- ':after -- The later one, of the same test:_files' \
258
+ '--record[Keep the run'\''s report under its saved test when it ends, as ./.pepe/runs/NAME/<moment>.json; the run has to be a saved test (--load NAME, or --keep NAME)]' \
259
+ ':before -- The earlier report (`pepe --json`, `--snapshot`, or a ramp'\''s), or the name of a saved test, whose last two recorded runs are compared:_files' \
260
+ '::after -- The later one, of the same test:_files' \
261
+ && ret=0
262
+ ;;
263
+ (rerun)
264
+ _arguments "${_arguments_options[@]}" : \
265
+ '-n+[Number of requests to perform]:NUMBER:_default' \
266
+ '--number=[Number of requests to perform]:NUMBER:_default' \
267
+ '-z+[Duration of the test, e.g. 10s, 3m, 2h (mutually exclusive with -n)]:DURATION:_default' \
268
+ '--duration=[Duration of the test, e.g. 10s, 3m, 2h (mutually exclusive with -n)]:DURATION:_default' \
269
+ '-m+[HTTP method, e.g. GET, POST, PUT, DELETE]:METHOD:_default' \
270
+ '--method=[HTTP method, e.g. GET, POST, PUT, DELETE]:METHOD:_default' \
271
+ '*-H+[HTTP headers, e.g. -H '\''Accept\: application/json'\'']:HEADERS:_default' \
272
+ '*--headers=[HTTP headers, e.g. -H '\''Accept\: application/json'\'']:HEADERS:_default' \
273
+ '-t+[Time in seconds to wait for a response]:TIMEOUT:_default' \
274
+ '--timeout=[Time in seconds to wait for a response]:TIMEOUT:_default' \
275
+ '--warmup=[Send for this long before measuring, e.g. 5s\: connections open, caches fill and JITs settle without counting against the run]:TIME:_default' \
276
+ '--threads=[Threads sending requests (default 1), or "auto" to add one whenever those sending are all busy. One sends 100k requests a second or more; the dashboard says when it is the limit]:N|auto:_default' \
277
+ '--rate=[Start this many requests a second, spread evenly, instead of as many as the concurrency allows; -c is then the most in flight at once, and pepe says when it holds the rate back]:PER_SECOND:_default' \
278
+ '-d+[HTTP request body]:BODY:_default' \
279
+ '--body=[HTTP request body]:BODY:_default' \
280
+ '-p+[Proxy server URL\: http\://user\:pass@host\:port or socks5\://host\:port]:PROXY:_default' \
281
+ '--proxy=[Proxy server URL\: http\://user\:pass@host\:port or socks5\://host\:port]:PROXY:_default' \
282
+ '--trace-header=[Response header holding the request id to show for the slowest requests and in the inspector, so they can be found in the server'\''s logs; without it, X-Request-Id, traceparent, CF-Ray, X-Amzn-Trace-Id and other common ones are looked for]:NAME:_default' \
283
+ '--snapshot=[Write the JSON report so far to this file every minute while the run goes, and once more when it ends, so a long run'\''s numbers survive a crash or a lost terminal; it has a minute-by-minute timeline of the whole run]:FILE:_files' \
284
+ '*--allow-host=[Refuse to send anywhere but these hosts\: api.example.com exactly, or .example.com for it and its subdomains; repeat for more. Every target is checked before anything is sent]:HOST:_default' \
285
+ '--max-requests=[Refuse a run that would send more requests than this\: -n above it, or -z without a --rate that bounds it]:N:_default' \
286
+ '--max-rate=[Refuse a --rate above this, and a run with no --rate at all, which sends as fast as the target answers]:PER_SECOND:_default' \
287
+ '--max-concurrency=[Refuse a concurrency above this]:N:_default' \
288
+ '*--fail-if=[End with exit code 4 when the run crosses this, for CI and scripts\: '\''p99 > 300ms'\'', '\''errors > 1%'\''; repeat for more. The report is still printed. (pepe ping has --slo for the same.)]:CONDITION:_default' \
289
+ '--metrics=[Serve the live numbers for Prometheus at http\://ADDR/metrics while the run goes, e.g. \:9100 or 127.0.0.1\:9100, so a soak run or a long ping shows up in Grafana next to the server'\''s own]:ADDR:_default' \
290
+ '--config=[Read settings from this file instead of ./pepe.toml; flags on the command line win over it]:FILE:_files' \
291
+ '--write-config=[Write the settings as they stand to this file, as a pepe.toml, and exit]:FILE:_files' \
292
+ '(--config)--load=[Run a test saved on the setup screen (ctrl-s)\: ./.pepe/tests/NAME.toml; flags on the command line win over it]:NAME:_default' \
293
+ '--keep=[Keep the settings as they stand as a saved test, ./.pepe/tests/NAME.toml, then run. With --load and no NAME, the loaded test is updated in place; with another NAME, it'\''s copied]::NAME:_default' \
294
+ '-c+[Number of concurrent requests at a time]:CONCURRENCY:_default' \
295
+ '--concurrency=[Number of concurrent requests at a time]:CONCURRENCY:_default' \
296
+ '-u+[User-Agent string, default is pepe/{version}]:USER_AGENT:_default' \
297
+ '--user-agent=[User-Agent string, default is pepe/{version}]:USER_AGENT:_default' \
298
+ '--gate[Exit 1 when the verdict is Slower or Worse, for CI]' \
299
+ '-h[Print help]' \
300
+ '--help[Print help]' \
301
+ '-k[Accept invalid TLS certificates (self-signed, expired, wrong host)]' \
302
+ '--insecure[Accept invalid TLS certificates (self-signed, expired, wrong host)]' \
303
+ '--disable-compression[Disable HTTP compression, e.g. gzip]' \
304
+ '--disable-keepalive[Disable HTTP keepalive, e.g. Connection\: close]' \
305
+ '--disable-redirects[Prevent http redirects]' \
306
+ '--json[Output results in JSON format]' \
307
+ '--dry-run[Say what would be sent, to where and how much, and send nothing; as JSON with --json]' \
308
+ '-i[Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)]' \
309
+ '--setup[Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)]' \
310
+ '--record[Keep the run'\''s report under its saved test when it ends, as ./.pepe/runs/NAME/<moment>.json; the run has to be a saved test (--load NAME, or --keep NAME)]' \
311
+ ':name -- The saved test, as `pepe history` lists them:_default' \
312
+ && ret=0
313
+ ;;
314
+ (history)
315
+ _arguments "${_arguments_options[@]}" : \
316
+ '-n+[Number of requests to perform]:NUMBER:_default' \
317
+ '--number=[Number of requests to perform]:NUMBER:_default' \
318
+ '-z+[Duration of the test, e.g. 10s, 3m, 2h (mutually exclusive with -n)]:DURATION:_default' \
319
+ '--duration=[Duration of the test, e.g. 10s, 3m, 2h (mutually exclusive with -n)]:DURATION:_default' \
320
+ '-m+[HTTP method, e.g. GET, POST, PUT, DELETE]:METHOD:_default' \
321
+ '--method=[HTTP method, e.g. GET, POST, PUT, DELETE]:METHOD:_default' \
322
+ '*-H+[HTTP headers, e.g. -H '\''Accept\: application/json'\'']:HEADERS:_default' \
323
+ '*--headers=[HTTP headers, e.g. -H '\''Accept\: application/json'\'']:HEADERS:_default' \
324
+ '-t+[Time in seconds to wait for a response]:TIMEOUT:_default' \
325
+ '--timeout=[Time in seconds to wait for a response]:TIMEOUT:_default' \
326
+ '--warmup=[Send for this long before measuring, e.g. 5s\: connections open, caches fill and JITs settle without counting against the run]:TIME:_default' \
327
+ '--threads=[Threads sending requests (default 1), or "auto" to add one whenever those sending are all busy. One sends 100k requests a second or more; the dashboard says when it is the limit]:N|auto:_default' \
328
+ '--rate=[Start this many requests a second, spread evenly, instead of as many as the concurrency allows; -c is then the most in flight at once, and pepe says when it holds the rate back]:PER_SECOND:_default' \
329
+ '-d+[HTTP request body]:BODY:_default' \
330
+ '--body=[HTTP request body]:BODY:_default' \
331
+ '-p+[Proxy server URL\: http\://user\:pass@host\:port or socks5\://host\:port]:PROXY:_default' \
332
+ '--proxy=[Proxy server URL\: http\://user\:pass@host\:port or socks5\://host\:port]:PROXY:_default' \
333
+ '--trace-header=[Response header holding the request id to show for the slowest requests and in the inspector, so they can be found in the server'\''s logs; without it, X-Request-Id, traceparent, CF-Ray, X-Amzn-Trace-Id and other common ones are looked for]:NAME:_default' \
334
+ '--snapshot=[Write the JSON report so far to this file every minute while the run goes, and once more when it ends, so a long run'\''s numbers survive a crash or a lost terminal; it has a minute-by-minute timeline of the whole run]:FILE:_files' \
335
+ '*--allow-host=[Refuse to send anywhere but these hosts\: api.example.com exactly, or .example.com for it and its subdomains; repeat for more. Every target is checked before anything is sent]:HOST:_default' \
336
+ '--max-requests=[Refuse a run that would send more requests than this\: -n above it, or -z without a --rate that bounds it]:N:_default' \
337
+ '--max-rate=[Refuse a --rate above this, and a run with no --rate at all, which sends as fast as the target answers]:PER_SECOND:_default' \
338
+ '--max-concurrency=[Refuse a concurrency above this]:N:_default' \
339
+ '*--fail-if=[End with exit code 4 when the run crosses this, for CI and scripts\: '\''p99 > 300ms'\'', '\''errors > 1%'\''; repeat for more. The report is still printed. (pepe ping has --slo for the same.)]:CONDITION:_default' \
340
+ '--metrics=[Serve the live numbers for Prometheus at http\://ADDR/metrics while the run goes, e.g. \:9100 or 127.0.0.1\:9100, so a soak run or a long ping shows up in Grafana next to the server'\''s own]:ADDR:_default' \
341
+ '--config=[Read settings from this file instead of ./pepe.toml; flags on the command line win over it]:FILE:_files' \
342
+ '--write-config=[Write the settings as they stand to this file, as a pepe.toml, and exit]:FILE:_files' \
343
+ '(--config)--load=[Run a test saved on the setup screen (ctrl-s)\: ./.pepe/tests/NAME.toml; flags on the command line win over it]:NAME:_default' \
344
+ '--keep=[Keep the settings as they stand as a saved test, ./.pepe/tests/NAME.toml, then run. With --load and no NAME, the loaded test is updated in place; with another NAME, it'\''s copied]::NAME:_default' \
345
+ '-c+[Number of concurrent requests at a time]:CONCURRENCY:_default' \
346
+ '--concurrency=[Number of concurrent requests at a time]:CONCURRENCY:_default' \
347
+ '-u+[User-Agent string, default is pepe/{version}]:USER_AGENT:_default' \
348
+ '--user-agent=[User-Agent string, default is pepe/{version}]:USER_AGENT:_default' \
349
+ '-h[Print help]' \
350
+ '--help[Print help]' \
351
+ '-k[Accept invalid TLS certificates (self-signed, expired, wrong host)]' \
352
+ '--insecure[Accept invalid TLS certificates (self-signed, expired, wrong host)]' \
353
+ '--disable-compression[Disable HTTP compression, e.g. gzip]' \
354
+ '--disable-keepalive[Disable HTTP keepalive, e.g. Connection\: close]' \
355
+ '--disable-redirects[Prevent http redirects]' \
356
+ '--json[Output results in JSON format]' \
357
+ '--dry-run[Say what would be sent, to where and how much, and send nothing; as JSON with --json]' \
358
+ '-i[Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)]' \
359
+ '--setup[Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)]' \
360
+ '--record[Keep the run'\''s report under its saved test when it ends, as ./.pepe/runs/NAME/<moment>.json; the run has to be a saved test (--load NAME, or --keep NAME)]' \
361
+ '::name -- One saved test\: its recorded runs, the latest last. Without it, every saved test with its last run:_default' \
257
362
  && ret=0
258
363
  ;;
259
364
  (api)
@@ -310,6 +415,7 @@ _arguments "${_arguments_options[@]}" : \
310
415
  '--dry-run[Say what would be sent, to where and how much, and send nothing; as JSON with --json]' \
311
416
  '-i[Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)]' \
312
417
  '--setup[Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)]' \
418
+ '--record[Keep the run'\''s report under its saved test when it ends, as ./.pepe/runs/NAME/<moment>.json; the run has to be a saved test (--load NAME, or --keep NAME)]' \
313
419
  '::spec -- The OpenAPI spec\: a file, a URL or the document itself, JSON or YAML (or `spec` in pepe.toml). Without it, the setup screen asks:_default' \
314
420
  && ret=0
315
421
  ;;
@@ -359,6 +465,7 @@ _arguments "${_arguments_options[@]}" : \
359
465
  '--dry-run[Say what would be sent, to where and how much, and send nothing; as JSON with --json]' \
360
466
  '-i[Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)]' \
361
467
  '--setup[Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)]' \
468
+ '--record[Keep the run'\''s report under its saved test when it ends, as ./.pepe/runs/NAME/<moment>.json; the run has to be a saved test (--load NAME, or --keep NAME)]' \
362
469
  ':file -- The flow\: a TOML file of \[\[step\]\]s (see the README):_files' \
363
470
  && ret=0
364
471
  ;;
@@ -411,6 +518,7 @@ _arguments "${_arguments_options[@]}" : \
411
518
  '--dry-run[Say what would be sent, to where and how much, and send nothing; as JSON with --json]' \
412
519
  '-i[Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)]' \
413
520
  '--setup[Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)]' \
521
+ '--record[Keep the run'\''s report under its saved test when it ends, as ./.pepe/runs/NAME/<moment>.json; the run has to be a saved test (--load NAME, or --keep NAME)]' \
414
522
  ':log -- The log\: nginx or Apache (common or combined), Caddy JSON, AWS ALB, or one URL or path per line:_files' \
415
523
  && ret=0
416
524
  ;;
@@ -466,6 +574,7 @@ _arguments "${_arguments_options[@]}" : \
466
574
  '--dry-run[Say what would be sent, to where and how much, and send nothing; as JSON with --json]' \
467
575
  '-i[Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)]' \
468
576
  '--setup[Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)]' \
577
+ '--record[Keep the run'\''s report under its saved test when it ends, as ./.pepe/runs/NAME/<moment>.json; the run has to be a saved test (--load NAME, or --keep NAME)]' \
469
578
  '*::files -- Access and error logs, rotated ones too; `-` or nothing reads what is piped in, and with nothing at all nginx'\''s own in /var/log/nginx:_files' \
470
579
  && ret=0
471
580
  ;;
@@ -515,6 +624,7 @@ _arguments "${_arguments_options[@]}" : \
515
624
  '--dry-run[Say what would be sent, to where and how much, and send nothing; as JSON with --json]' \
516
625
  '-i[Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)]' \
517
626
  '--setup[Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)]' \
627
+ '--record[Keep the run'\''s report under its saved test when it ends, as ./.pepe/runs/NAME/<moment>.json; the run has to be a saved test (--load NAME, or --keep NAME)]' \
518
628
  '::which -- Which report\: run, ramp, ping or compare:_default' \
519
629
  && ret=0
520
630
  ;;
@@ -564,6 +674,7 @@ _arguments "${_arguments_options[@]}" : \
564
674
  '--dry-run[Say what would be sent, to where and how much, and send nothing; as JSON with --json]' \
565
675
  '-i[Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)]' \
566
676
  '--setup[Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)]' \
677
+ '--record[Keep the run'\''s report under its saved test when it ends, as ./.pepe/runs/NAME/<moment>.json; the run has to be a saved test (--load NAME, or --keep NAME)]' \
567
678
  && ret=0
568
679
  ;;
569
680
  (self-update)
@@ -614,6 +725,7 @@ _arguments "${_arguments_options[@]}" : \
614
725
  '--dry-run[Say what would be sent, to where and how much, and send nothing; as JSON with --json]' \
615
726
  '-i[Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)]' \
616
727
  '--setup[Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)]' \
728
+ '--record[Keep the run'\''s report under its saved test when it ends, as ./.pepe/runs/NAME/<moment>.json; the run has to be a saved test (--load NAME, or --keep NAME)]' \
617
729
  && ret=0
618
730
  ;;
619
731
  (completions)
@@ -663,6 +775,7 @@ _arguments "${_arguments_options[@]}" : \
663
775
  '--json[Output results in JSON format]' \
664
776
  '-i[Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)]' \
665
777
  '--setup[Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)]' \
778
+ '--record[Keep the run'\''s report under its saved test when it ends, as ./.pepe/runs/NAME/<moment>.json; the run has to be a saved test (--load NAME, or --keep NAME)]' \
666
779
  '::shell -- bash, zsh, fish or powershell; the current shell when left out:(bash zsh fish powershell)' \
667
780
  && ret=0
668
781
  ;;
@@ -690,6 +803,14 @@ _arguments "${_arguments_options[@]}" : \
690
803
  _arguments "${_arguments_options[@]}" : \
691
804
  && ret=0
692
805
  ;;
806
+ (rerun)
807
+ _arguments "${_arguments_options[@]}" : \
808
+ && ret=0
809
+ ;;
810
+ (history)
811
+ _arguments "${_arguments_options[@]}" : \
812
+ && ret=0
813
+ ;;
693
814
  (api)
694
815
  _arguments "${_arguments_options[@]}" : \
695
816
  && ret=0
@@ -741,6 +862,8 @@ _pepe_commands() {
741
862
  'ping:Ping a URL\: a request a second, each split into DNS, connect, TLS, first byte and download, on a graph' \
742
863
  'ramp:Raise the load step by step to find where the target stops keeping up' \
743
864
  'compare:Hold a run'\''s JSON report against an earlier one and say what moved' \
865
+ 'rerun:Run a saved test again, record the run, and say what moved since the run before' \
866
+ 'history:The saved tests and their recorded runs' \
744
867
  'api:Load-test every endpoint of an OpenAPI spec' \
745
868
  'flow:Run a sequence of requests from a flow file, each step fed by the last' \
746
869
  'replay:Send the URLs of an access log in their real proportions' \
@@ -779,6 +902,8 @@ _pepe__subcmd__help_commands() {
779
902
  'ping:Ping a URL\: a request a second, each split into DNS, connect, TLS, first byte and download, on a graph' \
780
903
  'ramp:Raise the load step by step to find where the target stops keeping up' \
781
904
  'compare:Hold a run'\''s JSON report against an earlier one and say what moved' \
905
+ 'rerun:Run a saved test again, record the run, and say what moved since the run before' \
906
+ 'history:The saved tests and their recorded runs' \
782
907
  'api:Load-test every endpoint of an OpenAPI spec' \
783
908
  'flow:Run a sequence of requests from a flow file, each step fed by the last' \
784
909
  'replay:Send the URLs of an access log in their real proportions' \
@@ -816,6 +941,11 @@ _pepe__subcmd__help__subcmd__help_commands() {
816
941
  local commands; commands=()
817
942
  _describe -t commands 'pepe help help commands' commands "$@"
818
943
  }
944
+ (( $+functions[_pepe__subcmd__help__subcmd__history_commands] )) ||
945
+ _pepe__subcmd__help__subcmd__history_commands() {
946
+ local commands; commands=()
947
+ _describe -t commands 'pepe help history commands' commands "$@"
948
+ }
819
949
  (( $+functions[_pepe__subcmd__help__subcmd__logs_commands] )) ||
820
950
  _pepe__subcmd__help__subcmd__logs_commands() {
821
951
  local commands; commands=()
@@ -841,6 +971,11 @@ _pepe__subcmd__help__subcmd__replay_commands() {
841
971
  local commands; commands=()
842
972
  _describe -t commands 'pepe help replay commands' commands "$@"
843
973
  }
974
+ (( $+functions[_pepe__subcmd__help__subcmd__rerun_commands] )) ||
975
+ _pepe__subcmd__help__subcmd__rerun_commands() {
976
+ local commands; commands=()
977
+ _describe -t commands 'pepe help rerun commands' commands "$@"
978
+ }
844
979
  (( $+functions[_pepe__subcmd__help__subcmd__schema_commands] )) ||
845
980
  _pepe__subcmd__help__subcmd__schema_commands() {
846
981
  local commands; commands=()
@@ -851,6 +986,11 @@ _pepe__subcmd__help__subcmd__self-update_commands() {
851
986
  local commands; commands=()
852
987
  _describe -t commands 'pepe help self-update commands' commands "$@"
853
988
  }
989
+ (( $+functions[_pepe__subcmd__history_commands] )) ||
990
+ _pepe__subcmd__history_commands() {
991
+ local commands; commands=()
992
+ _describe -t commands 'pepe history commands' commands "$@"
993
+ }
854
994
  (( $+functions[_pepe__subcmd__logs_commands] )) ||
855
995
  _pepe__subcmd__logs_commands() {
856
996
  local commands; commands=()
@@ -876,6 +1016,11 @@ _pepe__subcmd__replay_commands() {
876
1016
  local commands; commands=()
877
1017
  _describe -t commands 'pepe replay commands' commands "$@"
878
1018
  }
1019
+ (( $+functions[_pepe__subcmd__rerun_commands] )) ||
1020
+ _pepe__subcmd__rerun_commands() {
1021
+ local commands; commands=()
1022
+ _describe -t commands 'pepe rerun commands' commands "$@"
1023
+ }
879
1024
  (( $+functions[_pepe__subcmd__schema_commands] )) ||
880
1025
  _pepe__subcmd__schema_commands() {
881
1026
  local commands; commands=()