pepe-http 0.39.1 → 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.
@@ -1,6 +1,6 @@
1
1
  # Print an optspec for argparse to handle cmd's options that are independent of any subcommand.
2
2
  function __fish_pepe_global_optspecs
3
- string join \n h/help n/number= z/duration= curl m/method= H/headers= t/timeout= warmup= threads= rate= d/body= p/proxy= k/insecure disable-compression disable-keepalive disable-redirects json trace-header= snapshot= allow-host= max-requests= max-rate= max-concurrency= dry-run fail-if= metrics= i/setup config= write-config= load= keep= c/concurrency= u/user-agent= V/version
3
+ string join \n h/help n/number= z/duration= curl m/method= H/headers= t/timeout= warmup= threads= rate= d/body= p/proxy= k/insecure disable-compression disable-keepalive disable-redirects json trace-header= snapshot= allow-host= max-requests= max-rate= max-concurrency= dry-run fail-if= metrics= i/setup config= write-config= load= keep= record c/concurrency= u/user-agent= V/version
4
4
  end
5
5
 
6
6
  function __fish_pepe_needs_command
@@ -57,10 +57,13 @@ complete -c pepe -n "__fish_pepe_needs_command" -l disable-redirects -d 'Prevent
57
57
  complete -c pepe -n "__fish_pepe_needs_command" -l json -d 'Output results in JSON format'
58
58
  complete -c pepe -n "__fish_pepe_needs_command" -l dry-run -d 'Say what would be sent, to where and how much, and send nothing; as JSON with --json'
59
59
  complete -c pepe -n "__fish_pepe_needs_command" -s i -l setup -d 'Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)'
60
+ complete -c pepe -n "__fish_pepe_needs_command" -l record -d '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)'
60
61
  complete -c pepe -n "__fish_pepe_needs_command" -s V -l version -d 'Print version'
61
62
  complete -c pepe -n "__fish_pepe_needs_command" -a "ping" -d 'Ping a URL: a request a second, each split into DNS, connect, TLS, first byte and download, on a graph'
62
63
  complete -c pepe -n "__fish_pepe_needs_command" -a "ramp" -d 'Raise the load step by step to find where the target stops keeping up'
63
64
  complete -c pepe -n "__fish_pepe_needs_command" -a "compare" -d 'Hold a run\'s JSON report against an earlier one and say what moved'
65
+ complete -c pepe -n "__fish_pepe_needs_command" -a "rerun" -d 'Run a saved test again, record the run, and say what moved since the run before'
66
+ complete -c pepe -n "__fish_pepe_needs_command" -a "history" -d 'The saved tests and their recorded runs'
64
67
  complete -c pepe -n "__fish_pepe_needs_command" -a "api" -d 'Load-test every endpoint of an OpenAPI spec'
65
68
  complete -c pepe -n "__fish_pepe_needs_command" -a "flow" -d 'Run a sequence of requests from a flow file, each step fed by the last'
66
69
  complete -c pepe -n "__fish_pepe_needs_command" -a "replay" -d 'Send the URLs of an access log in their real proportions'
@@ -129,6 +132,7 @@ complete -c pepe -n "__fish_pepe_using_subcommand ping" -l disable-redirects -d
129
132
  complete -c pepe -n "__fish_pepe_using_subcommand ping" -l json -d 'Output results in JSON format'
130
133
  complete -c pepe -n "__fish_pepe_using_subcommand ping" -l dry-run -d 'Say what would be sent, to where and how much, and send nothing; as JSON with --json'
131
134
  complete -c pepe -n "__fish_pepe_using_subcommand ping" -s i -l setup -d 'Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)'
135
+ complete -c pepe -n "__fish_pepe_using_subcommand ping" -l record -d '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)'
132
136
  complete -c pepe -n "__fish_pepe_using_subcommand ramp" -l from -d 'Concurrency of the first step' -r
133
137
  complete -c pepe -n "__fish_pepe_using_subcommand ramp" -l to -d 'Concurrency of the last step' -r
134
138
  complete -c pepe -n "__fish_pepe_using_subcommand ramp" -l step -d 'Concurrency added at each step' -r
@@ -166,6 +170,7 @@ complete -c pepe -n "__fish_pepe_using_subcommand ramp" -l disable-redirects -d
166
170
  complete -c pepe -n "__fish_pepe_using_subcommand ramp" -l json -d 'Output results in JSON format'
167
171
  complete -c pepe -n "__fish_pepe_using_subcommand ramp" -l dry-run -d 'Say what would be sent, to where and how much, and send nothing; as JSON with --json'
168
172
  complete -c pepe -n "__fish_pepe_using_subcommand ramp" -s i -l setup -d 'Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)'
173
+ complete -c pepe -n "__fish_pepe_using_subcommand ramp" -l record -d '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)'
169
174
  complete -c pepe -n "__fish_pepe_using_subcommand compare" -l svg -d 'Also write the verdict as a card, an SVG for a README or a page' -r -F
170
175
  complete -c pepe -n "__fish_pepe_using_subcommand compare" -s n -l number -d 'Number of requests to perform' -r
171
176
  complete -c pepe -n "__fish_pepe_using_subcommand compare" -s z -l duration -d 'Duration of the test, e.g. 10s, 3m, 2h (mutually exclusive with -n)' -r
@@ -200,6 +205,74 @@ complete -c pepe -n "__fish_pepe_using_subcommand compare" -l disable-redirects
200
205
  complete -c pepe -n "__fish_pepe_using_subcommand compare" -l json -d 'Output results in JSON format'
201
206
  complete -c pepe -n "__fish_pepe_using_subcommand compare" -l dry-run -d 'Say what would be sent, to where and how much, and send nothing; as JSON with --json'
202
207
  complete -c pepe -n "__fish_pepe_using_subcommand compare" -s i -l setup -d 'Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)'
208
+ complete -c pepe -n "__fish_pepe_using_subcommand compare" -l record -d '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)'
209
+ complete -c pepe -n "__fish_pepe_using_subcommand rerun" -s n -l number -d 'Number of requests to perform' -r
210
+ complete -c pepe -n "__fish_pepe_using_subcommand rerun" -s z -l duration -d 'Duration of the test, e.g. 10s, 3m, 2h (mutually exclusive with -n)' -r
211
+ complete -c pepe -n "__fish_pepe_using_subcommand rerun" -s m -l method -d 'HTTP method, e.g. GET, POST, PUT, DELETE' -r
212
+ complete -c pepe -n "__fish_pepe_using_subcommand rerun" -s H -l headers -d 'HTTP headers, e.g. -H \'Accept: application/json\'' -r
213
+ complete -c pepe -n "__fish_pepe_using_subcommand rerun" -s t -l timeout -d 'Time in seconds to wait for a response' -r
214
+ complete -c pepe -n "__fish_pepe_using_subcommand rerun" -l warmup -d 'Send for this long before measuring, e.g. 5s: connections open, caches fill and JITs settle without counting against the run' -r
215
+ complete -c pepe -n "__fish_pepe_using_subcommand rerun" -l threads -d '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' -r
216
+ complete -c pepe -n "__fish_pepe_using_subcommand rerun" -l rate -d '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' -r
217
+ complete -c pepe -n "__fish_pepe_using_subcommand rerun" -s d -l body -d 'HTTP request body' -r
218
+ complete -c pepe -n "__fish_pepe_using_subcommand rerun" -s p -l proxy -d 'Proxy server URL: http://user:pass@host:port or socks5://host:port' -r
219
+ complete -c pepe -n "__fish_pepe_using_subcommand rerun" -l trace-header -d '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' -r
220
+ complete -c pepe -n "__fish_pepe_using_subcommand rerun" -l snapshot -d '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' -r -F
221
+ complete -c pepe -n "__fish_pepe_using_subcommand rerun" -l allow-host -d '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' -r
222
+ complete -c pepe -n "__fish_pepe_using_subcommand rerun" -l max-requests -d 'Refuse a run that would send more requests than this: -n above it, or -z without a --rate that bounds it' -r
223
+ complete -c pepe -n "__fish_pepe_using_subcommand rerun" -l max-rate -d 'Refuse a --rate above this, and a run with no --rate at all, which sends as fast as the target answers' -r
224
+ complete -c pepe -n "__fish_pepe_using_subcommand rerun" -l max-concurrency -d 'Refuse a concurrency above this' -r
225
+ complete -c pepe -n "__fish_pepe_using_subcommand rerun" -l fail-if -d '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.)' -r
226
+ complete -c pepe -n "__fish_pepe_using_subcommand rerun" -l metrics -d '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' -r
227
+ complete -c pepe -n "__fish_pepe_using_subcommand rerun" -l config -d 'Read settings from this file instead of ./pepe.toml; flags on the command line win over it' -r -F
228
+ complete -c pepe -n "__fish_pepe_using_subcommand rerun" -l write-config -d 'Write the settings as they stand to this file, as a pepe.toml, and exit' -r -F
229
+ complete -c pepe -n "__fish_pepe_using_subcommand rerun" -l load -d 'Run a test saved on the setup screen (ctrl-s): ./.pepe/tests/NAME.toml; flags on the command line win over it' -r
230
+ complete -c pepe -n "__fish_pepe_using_subcommand rerun" -l keep -d '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' -r
231
+ complete -c pepe -n "__fish_pepe_using_subcommand rerun" -s c -l concurrency -d 'Number of concurrent requests at a time' -r
232
+ complete -c pepe -n "__fish_pepe_using_subcommand rerun" -s u -l user-agent -d 'User-Agent string, default is pepe/{version}' -r
233
+ complete -c pepe -n "__fish_pepe_using_subcommand rerun" -l gate -d 'Exit 1 when the verdict is Slower or Worse, for CI'
234
+ complete -c pepe -n "__fish_pepe_using_subcommand rerun" -s h -l help -d 'Print help'
235
+ complete -c pepe -n "__fish_pepe_using_subcommand rerun" -s k -l insecure -d 'Accept invalid TLS certificates (self-signed, expired, wrong host)'
236
+ complete -c pepe -n "__fish_pepe_using_subcommand rerun" -l disable-compression -d 'Disable HTTP compression, e.g. gzip'
237
+ complete -c pepe -n "__fish_pepe_using_subcommand rerun" -l disable-keepalive -d 'Disable HTTP keepalive, e.g. Connection: close'
238
+ complete -c pepe -n "__fish_pepe_using_subcommand rerun" -l disable-redirects -d 'Prevent http redirects'
239
+ complete -c pepe -n "__fish_pepe_using_subcommand rerun" -l json -d 'Output results in JSON format'
240
+ complete -c pepe -n "__fish_pepe_using_subcommand rerun" -l dry-run -d 'Say what would be sent, to where and how much, and send nothing; as JSON with --json'
241
+ complete -c pepe -n "__fish_pepe_using_subcommand rerun" -s i -l setup -d 'Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)'
242
+ complete -c pepe -n "__fish_pepe_using_subcommand rerun" -l record -d '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)'
243
+ complete -c pepe -n "__fish_pepe_using_subcommand history" -s n -l number -d 'Number of requests to perform' -r
244
+ complete -c pepe -n "__fish_pepe_using_subcommand history" -s z -l duration -d 'Duration of the test, e.g. 10s, 3m, 2h (mutually exclusive with -n)' -r
245
+ complete -c pepe -n "__fish_pepe_using_subcommand history" -s m -l method -d 'HTTP method, e.g. GET, POST, PUT, DELETE' -r
246
+ complete -c pepe -n "__fish_pepe_using_subcommand history" -s H -l headers -d 'HTTP headers, e.g. -H \'Accept: application/json\'' -r
247
+ complete -c pepe -n "__fish_pepe_using_subcommand history" -s t -l timeout -d 'Time in seconds to wait for a response' -r
248
+ complete -c pepe -n "__fish_pepe_using_subcommand history" -l warmup -d 'Send for this long before measuring, e.g. 5s: connections open, caches fill and JITs settle without counting against the run' -r
249
+ complete -c pepe -n "__fish_pepe_using_subcommand history" -l threads -d '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' -r
250
+ complete -c pepe -n "__fish_pepe_using_subcommand history" -l rate -d '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' -r
251
+ complete -c pepe -n "__fish_pepe_using_subcommand history" -s d -l body -d 'HTTP request body' -r
252
+ complete -c pepe -n "__fish_pepe_using_subcommand history" -s p -l proxy -d 'Proxy server URL: http://user:pass@host:port or socks5://host:port' -r
253
+ complete -c pepe -n "__fish_pepe_using_subcommand history" -l trace-header -d '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' -r
254
+ complete -c pepe -n "__fish_pepe_using_subcommand history" -l snapshot -d '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' -r -F
255
+ complete -c pepe -n "__fish_pepe_using_subcommand history" -l allow-host -d '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' -r
256
+ complete -c pepe -n "__fish_pepe_using_subcommand history" -l max-requests -d 'Refuse a run that would send more requests than this: -n above it, or -z without a --rate that bounds it' -r
257
+ complete -c pepe -n "__fish_pepe_using_subcommand history" -l max-rate -d 'Refuse a --rate above this, and a run with no --rate at all, which sends as fast as the target answers' -r
258
+ complete -c pepe -n "__fish_pepe_using_subcommand history" -l max-concurrency -d 'Refuse a concurrency above this' -r
259
+ complete -c pepe -n "__fish_pepe_using_subcommand history" -l fail-if -d '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.)' -r
260
+ complete -c pepe -n "__fish_pepe_using_subcommand history" -l metrics -d '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' -r
261
+ complete -c pepe -n "__fish_pepe_using_subcommand history" -l config -d 'Read settings from this file instead of ./pepe.toml; flags on the command line win over it' -r -F
262
+ complete -c pepe -n "__fish_pepe_using_subcommand history" -l write-config -d 'Write the settings as they stand to this file, as a pepe.toml, and exit' -r -F
263
+ complete -c pepe -n "__fish_pepe_using_subcommand history" -l load -d 'Run a test saved on the setup screen (ctrl-s): ./.pepe/tests/NAME.toml; flags on the command line win over it' -r
264
+ complete -c pepe -n "__fish_pepe_using_subcommand history" -l keep -d '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' -r
265
+ complete -c pepe -n "__fish_pepe_using_subcommand history" -s c -l concurrency -d 'Number of concurrent requests at a time' -r
266
+ complete -c pepe -n "__fish_pepe_using_subcommand history" -s u -l user-agent -d 'User-Agent string, default is pepe/{version}' -r
267
+ complete -c pepe -n "__fish_pepe_using_subcommand history" -s h -l help -d 'Print help'
268
+ complete -c pepe -n "__fish_pepe_using_subcommand history" -s k -l insecure -d 'Accept invalid TLS certificates (self-signed, expired, wrong host)'
269
+ complete -c pepe -n "__fish_pepe_using_subcommand history" -l disable-compression -d 'Disable HTTP compression, e.g. gzip'
270
+ complete -c pepe -n "__fish_pepe_using_subcommand history" -l disable-keepalive -d 'Disable HTTP keepalive, e.g. Connection: close'
271
+ complete -c pepe -n "__fish_pepe_using_subcommand history" -l disable-redirects -d 'Prevent http redirects'
272
+ complete -c pepe -n "__fish_pepe_using_subcommand history" -l json -d 'Output results in JSON format'
273
+ complete -c pepe -n "__fish_pepe_using_subcommand history" -l dry-run -d 'Say what would be sent, to where and how much, and send nothing; as JSON with --json'
274
+ complete -c pepe -n "__fish_pepe_using_subcommand history" -s i -l setup -d 'Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)'
275
+ complete -c pepe -n "__fish_pepe_using_subcommand history" -l record -d '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)'
203
276
  complete -c pepe -n "__fish_pepe_using_subcommand api" -l auth -d 'Credentials: bearer:TOKEN, basic:USER:PASSWORD, apikey:VALUE, header:NAME=VALUE or query:NAME=VALUE' -r
204
277
  complete -c pepe -n "__fish_pepe_using_subcommand api" -l server -d 'Base URL to send requests to, instead of the spec\'s server' -r
205
278
  complete -c pepe -n "__fish_pepe_using_subcommand api" -l tag -d 'Run the endpoints with this tag, e.g. --tag Billing' -r
@@ -240,6 +313,7 @@ complete -c pepe -n "__fish_pepe_using_subcommand api" -l disable-redirects -d '
240
313
  complete -c pepe -n "__fish_pepe_using_subcommand api" -l json -d 'Output results in JSON format'
241
314
  complete -c pepe -n "__fish_pepe_using_subcommand api" -l dry-run -d 'Say what would be sent, to where and how much, and send nothing; as JSON with --json'
242
315
  complete -c pepe -n "__fish_pepe_using_subcommand api" -s i -l setup -d 'Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)'
316
+ complete -c pepe -n "__fish_pepe_using_subcommand api" -l record -d '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)'
243
317
  complete -c pepe -n "__fish_pepe_using_subcommand flow" -s n -l number -d 'Number of requests to perform' -r
244
318
  complete -c pepe -n "__fish_pepe_using_subcommand flow" -s z -l duration -d 'Duration of the test, e.g. 10s, 3m, 2h (mutually exclusive with -n)' -r
245
319
  complete -c pepe -n "__fish_pepe_using_subcommand flow" -s m -l method -d 'HTTP method, e.g. GET, POST, PUT, DELETE' -r
@@ -272,6 +346,7 @@ complete -c pepe -n "__fish_pepe_using_subcommand flow" -l disable-redirects -d
272
346
  complete -c pepe -n "__fish_pepe_using_subcommand flow" -l json -d 'Output results in JSON format'
273
347
  complete -c pepe -n "__fish_pepe_using_subcommand flow" -l dry-run -d 'Say what would be sent, to where and how much, and send nothing; as JSON with --json'
274
348
  complete -c pepe -n "__fish_pepe_using_subcommand flow" -s i -l setup -d 'Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)'
349
+ complete -c pepe -n "__fish_pepe_using_subcommand flow" -l record -d '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)'
275
350
  complete -c pepe -n "__fish_pepe_using_subcommand replay" -l base-url -d 'Where to send the requests: put in front of paths, and in place of the host of full URLs, e.g. https://staging.example.com' -r
276
351
  complete -c pepe -n "__fish_pepe_using_subcommand replay" -l rows -d 'URLs that get a row of their own on the dashboard, most frequent first; the rest share one' -r
277
352
  complete -c pepe -n "__fish_pepe_using_subcommand replay" -s n -l number -d 'Number of requests to perform' -r
@@ -307,6 +382,7 @@ complete -c pepe -n "__fish_pepe_using_subcommand replay" -l disable-redirects -
307
382
  complete -c pepe -n "__fish_pepe_using_subcommand replay" -l json -d 'Output results in JSON format'
308
383
  complete -c pepe -n "__fish_pepe_using_subcommand replay" -l dry-run -d 'Say what would be sent, to where and how much, and send nothing; as JSON with --json'
309
384
  complete -c pepe -n "__fish_pepe_using_subcommand replay" -s i -l setup -d 'Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)'
385
+ complete -c pepe -n "__fish_pepe_using_subcommand replay" -l record -d '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)'
310
386
  complete -c pepe -n "__fish_pepe_using_subcommand logs" -l format -d 'The access log\'s log_format as nginx.conf has it, on one line, when it isn\'t `combined`: \'$remote_addr [$time_local] "$request" $status $request_time\'' -r
311
387
  complete -c pepe -n "__fish_pepe_using_subcommand logs" -l window -d 'What "now" is measured over, e.g. 10s, 1m, 5m' -r
312
388
  complete -c pepe -n "__fish_pepe_using_subcommand logs" -l since -d 'How far back to start, e.g. 90m, 24h, 7d. At a terminal a log that is being written is shown live, from five minutes back, without it' -r
@@ -345,6 +421,7 @@ complete -c pepe -n "__fish_pepe_using_subcommand logs" -l disable-redirects -d
345
421
  complete -c pepe -n "__fish_pepe_using_subcommand logs" -l json -d 'Output results in JSON format'
346
422
  complete -c pepe -n "__fish_pepe_using_subcommand logs" -l dry-run -d 'Say what would be sent, to where and how much, and send nothing; as JSON with --json'
347
423
  complete -c pepe -n "__fish_pepe_using_subcommand logs" -s i -l setup -d 'Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)'
424
+ complete -c pepe -n "__fish_pepe_using_subcommand logs" -l record -d '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)'
348
425
  complete -c pepe -n "__fish_pepe_using_subcommand schema" -s n -l number -d 'Number of requests to perform' -r
349
426
  complete -c pepe -n "__fish_pepe_using_subcommand schema" -s z -l duration -d 'Duration of the test, e.g. 10s, 3m, 2h (mutually exclusive with -n)' -r
350
427
  complete -c pepe -n "__fish_pepe_using_subcommand schema" -s m -l method -d 'HTTP method, e.g. GET, POST, PUT, DELETE' -r
@@ -377,6 +454,7 @@ complete -c pepe -n "__fish_pepe_using_subcommand schema" -l disable-redirects -
377
454
  complete -c pepe -n "__fish_pepe_using_subcommand schema" -l json -d 'Output results in JSON format'
378
455
  complete -c pepe -n "__fish_pepe_using_subcommand schema" -l dry-run -d 'Say what would be sent, to where and how much, and send nothing; as JSON with --json'
379
456
  complete -c pepe -n "__fish_pepe_using_subcommand schema" -s i -l setup -d 'Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)'
457
+ complete -c pepe -n "__fish_pepe_using_subcommand schema" -l record -d '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)'
380
458
  complete -c pepe -n "__fish_pepe_using_subcommand mcp" -s n -l number -d 'Number of requests to perform' -r
381
459
  complete -c pepe -n "__fish_pepe_using_subcommand mcp" -s z -l duration -d 'Duration of the test, e.g. 10s, 3m, 2h (mutually exclusive with -n)' -r
382
460
  complete -c pepe -n "__fish_pepe_using_subcommand mcp" -s m -l method -d 'HTTP method, e.g. GET, POST, PUT, DELETE' -r
@@ -409,6 +487,7 @@ complete -c pepe -n "__fish_pepe_using_subcommand mcp" -l disable-redirects -d '
409
487
  complete -c pepe -n "__fish_pepe_using_subcommand mcp" -l json -d 'Output results in JSON format'
410
488
  complete -c pepe -n "__fish_pepe_using_subcommand mcp" -l dry-run -d 'Say what would be sent, to where and how much, and send nothing; as JSON with --json'
411
489
  complete -c pepe -n "__fish_pepe_using_subcommand mcp" -s i -l setup -d 'Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)'
490
+ complete -c pepe -n "__fish_pepe_using_subcommand mcp" -l record -d '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)'
412
491
  complete -c pepe -n "__fish_pepe_using_subcommand self-update" -s n -l number -d 'Number of requests to perform' -r
413
492
  complete -c pepe -n "__fish_pepe_using_subcommand self-update" -s z -l duration -d 'Duration of the test, e.g. 10s, 3m, 2h (mutually exclusive with -n)' -r
414
493
  complete -c pepe -n "__fish_pepe_using_subcommand self-update" -s m -l method -d 'HTTP method, e.g. GET, POST, PUT, DELETE' -r
@@ -443,6 +522,7 @@ complete -c pepe -n "__fish_pepe_using_subcommand self-update" -l disable-redire
443
522
  complete -c pepe -n "__fish_pepe_using_subcommand self-update" -l json -d 'Output results in JSON format'
444
523
  complete -c pepe -n "__fish_pepe_using_subcommand self-update" -l dry-run -d 'Say what would be sent, to where and how much, and send nothing; as JSON with --json'
445
524
  complete -c pepe -n "__fish_pepe_using_subcommand self-update" -s i -l setup -d 'Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)'
525
+ complete -c pepe -n "__fish_pepe_using_subcommand self-update" -l record -d '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)'
446
526
  complete -c pepe -n "__fish_pepe_using_subcommand completions" -s n -l number -d 'Number of requests to perform' -r
447
527
  complete -c pepe -n "__fish_pepe_using_subcommand completions" -s z -l duration -d 'Duration of the test, e.g. 10s, 3m, 2h (mutually exclusive with -n)' -r
448
528
  complete -c pepe -n "__fish_pepe_using_subcommand completions" -s m -l method -d 'HTTP method, e.g. GET, POST, PUT, DELETE' -r
@@ -476,15 +556,18 @@ complete -c pepe -n "__fish_pepe_using_subcommand completions" -l disable-keepal
476
556
  complete -c pepe -n "__fish_pepe_using_subcommand completions" -l disable-redirects -d 'Prevent http redirects'
477
557
  complete -c pepe -n "__fish_pepe_using_subcommand completions" -l json -d 'Output results in JSON format'
478
558
  complete -c pepe -n "__fish_pepe_using_subcommand completions" -s i -l setup -d 'Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)'
479
- complete -c pepe -n "__fish_pepe_using_subcommand help; and not __fish_seen_subcommand_from ping ramp compare api flow replay logs schema mcp self-update completions help" -f -a "ping" -d 'Ping a URL: a request a second, each split into DNS, connect, TLS, first byte and download, on a graph'
480
- complete -c pepe -n "__fish_pepe_using_subcommand help; and not __fish_seen_subcommand_from ping ramp compare api flow replay logs schema mcp self-update completions help" -f -a "ramp" -d 'Raise the load step by step to find where the target stops keeping up'
481
- complete -c pepe -n "__fish_pepe_using_subcommand help; and not __fish_seen_subcommand_from ping ramp compare api flow replay logs schema mcp self-update completions help" -f -a "compare" -d 'Hold a run\'s JSON report against an earlier one and say what moved'
482
- complete -c pepe -n "__fish_pepe_using_subcommand help; and not __fish_seen_subcommand_from ping ramp compare api flow replay logs schema mcp self-update completions help" -f -a "api" -d 'Load-test every endpoint of an OpenAPI spec'
483
- complete -c pepe -n "__fish_pepe_using_subcommand help; and not __fish_seen_subcommand_from ping ramp compare api flow replay logs schema mcp self-update completions help" -f -a "flow" -d 'Run a sequence of requests from a flow file, each step fed by the last'
484
- complete -c pepe -n "__fish_pepe_using_subcommand help; and not __fish_seen_subcommand_from ping ramp compare api flow replay logs schema mcp self-update completions help" -f -a "replay" -d 'Send the URLs of an access log in their real proportions'
485
- complete -c pepe -n "__fish_pepe_using_subcommand help; and not __fish_seen_subcommand_from ping ramp compare api flow replay logs schema mcp self-update completions help" -f -a "logs" -d 'Read nginx logs: requests per second now, against each minute, hour and day'
486
- complete -c pepe -n "__fish_pepe_using_subcommand help; and not __fish_seen_subcommand_from ping ramp compare api flow replay logs schema mcp self-update completions help" -f -a "schema" -d 'Print the JSON Schema of a report: run (the default), ramp, ping or compare'
487
- complete -c pepe -n "__fish_pepe_using_subcommand help; and not __fish_seen_subcommand_from ping ramp compare api flow replay logs schema mcp self-update completions help" -f -a "mcp" -d 'Serve pepe\'s modes as tools for an agent over stdio (the Model Context Protocol); the guardrail flags given here hold for every call'
488
- complete -c pepe -n "__fish_pepe_using_subcommand help; and not __fish_seen_subcommand_from ping ramp compare api flow replay logs schema mcp self-update completions help" -f -a "self-update" -d 'Update pepe to the latest release, or say what\'s new in it'
489
- complete -c pepe -n "__fish_pepe_using_subcommand help; and not __fish_seen_subcommand_from ping ramp compare api flow replay logs schema mcp self-update completions help" -f -a "completions" -d 'Tab completion for your shell: print the script, or --install it'
490
- complete -c pepe -n "__fish_pepe_using_subcommand help; and not __fish_seen_subcommand_from ping ramp compare api flow replay logs schema mcp self-update completions help" -f -a "help" -d 'Print this message or the help of the given subcommand(s)'
559
+ complete -c pepe -n "__fish_pepe_using_subcommand completions" -l record -d '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)'
560
+ complete -c pepe -n "__fish_pepe_using_subcommand help; and not __fish_seen_subcommand_from ping ramp compare rerun history api flow replay logs schema mcp self-update completions help" -f -a "ping" -d 'Ping a URL: a request a second, each split into DNS, connect, TLS, first byte and download, on a graph'
561
+ complete -c pepe -n "__fish_pepe_using_subcommand help; and not __fish_seen_subcommand_from ping ramp compare rerun history api flow replay logs schema mcp self-update completions help" -f -a "ramp" -d 'Raise the load step by step to find where the target stops keeping up'
562
+ complete -c pepe -n "__fish_pepe_using_subcommand help; and not __fish_seen_subcommand_from ping ramp compare rerun history api flow replay logs schema mcp self-update completions help" -f -a "compare" -d 'Hold a run\'s JSON report against an earlier one and say what moved'
563
+ complete -c pepe -n "__fish_pepe_using_subcommand help; and not __fish_seen_subcommand_from ping ramp compare rerun history api flow replay logs schema mcp self-update completions help" -f -a "rerun" -d 'Run a saved test again, record the run, and say what moved since the run before'
564
+ complete -c pepe -n "__fish_pepe_using_subcommand help; and not __fish_seen_subcommand_from ping ramp compare rerun history api flow replay logs schema mcp self-update completions help" -f -a "history" -d 'The saved tests and their recorded runs'
565
+ complete -c pepe -n "__fish_pepe_using_subcommand help; and not __fish_seen_subcommand_from ping ramp compare rerun history api flow replay logs schema mcp self-update completions help" -f -a "api" -d 'Load-test every endpoint of an OpenAPI spec'
566
+ complete -c pepe -n "__fish_pepe_using_subcommand help; and not __fish_seen_subcommand_from ping ramp compare rerun history api flow replay logs schema mcp self-update completions help" -f -a "flow" -d 'Run a sequence of requests from a flow file, each step fed by the last'
567
+ complete -c pepe -n "__fish_pepe_using_subcommand help; and not __fish_seen_subcommand_from ping ramp compare rerun history api flow replay logs schema mcp self-update completions help" -f -a "replay" -d 'Send the URLs of an access log in their real proportions'
568
+ complete -c pepe -n "__fish_pepe_using_subcommand help; and not __fish_seen_subcommand_from ping ramp compare rerun history api flow replay logs schema mcp self-update completions help" -f -a "logs" -d 'Read nginx logs: requests per second now, against each minute, hour and day'
569
+ complete -c pepe -n "__fish_pepe_using_subcommand help; and not __fish_seen_subcommand_from ping ramp compare rerun history api flow replay logs schema mcp self-update completions help" -f -a "schema" -d 'Print the JSON Schema of a report: run (the default), ramp, ping or compare'
570
+ complete -c pepe -n "__fish_pepe_using_subcommand help; and not __fish_seen_subcommand_from ping ramp compare rerun history api flow replay logs schema mcp self-update completions help" -f -a "mcp" -d 'Serve pepe\'s modes as tools for an agent over stdio (the Model Context Protocol); the guardrail flags given here hold for every call'
571
+ complete -c pepe -n "__fish_pepe_using_subcommand help; and not __fish_seen_subcommand_from ping ramp compare rerun history api flow replay logs schema mcp self-update completions help" -f -a "self-update" -d 'Update pepe to the latest release, or say what\'s new in it'
572
+ complete -c pepe -n "__fish_pepe_using_subcommand help; and not __fish_seen_subcommand_from ping ramp compare rerun history api flow replay logs schema mcp self-update completions help" -f -a "completions" -d 'Tab completion for your shell: print the script, or --install it'
573
+ complete -c pepe -n "__fish_pepe_using_subcommand help; and not __fish_seen_subcommand_from ping ramp compare rerun history api flow replay logs schema mcp self-update completions help" -f -a "help" -d 'Print this message or the help of the given subcommand(s)'
@@ -4,7 +4,7 @@
4
4
  .SH NAME
5
5
  pepe\-compare \- Hold a run\*(Aqs JSON report against an earlier one and say what moved
6
6
  .SH SYNOPSIS
7
- \fBpepe compare\fR [\fB\-\-gate\fR] [\fB\-\-svg\fR] [\fB\-h\fR|\fB\-\-help\fR] <\fIBEFORE\fR> <\fIAFTER\fR>
7
+ \fBpepe compare\fR [\fB\-\-gate\fR] [\fB\-\-svg\fR] [\fB\-h\fR|\fB\-\-help\fR] <\fIBEFORE\fR> [\fIAFTER\fR]
8
8
  .SH DESCRIPTION
9
9
  Hold a run\*(Aqs JSON report against an earlier one and say what moved
10
10
  .SH OPTIONS
@@ -19,7 +19,7 @@ Also write the verdict as a card, an SVG for a README or a page
19
19
  Print help
20
20
  .TP
21
21
  <\fIBEFORE\fR>
22
- The earlier report (`pepe \-\-json`, `\-\-snapshot`, or a ramp\*(Aqs)
22
+ The earlier report (`pepe \-\-json`, `\-\-snapshot`, or a ramp\*(Aqs), or the name of a saved test, whose last two recorded runs are compared
23
23
  .TP
24
- <\fIAFTER\fR>
24
+ [\fIAFTER\fR]
25
25
  The later one, of the same test
@@ -0,0 +1,16 @@
1
+ .ie \n(.g .ds Aq \(aq
2
+ .el .ds Aq '
3
+ .TH pepe-history 1 pepe "User Commands"
4
+ .SH NAME
5
+ pepe\-history \- The saved tests and their recorded runs
6
+ .SH SYNOPSIS
7
+ \fBpepe history\fR [\fB\-h\fR|\fB\-\-help\fR] [\fINAME\fR]
8
+ .SH DESCRIPTION
9
+ The saved tests and their recorded runs
10
+ .SH OPTIONS
11
+ .TP
12
+ \fB\-h\fR, \fB\-\-help\fR
13
+ Print help
14
+ .TP
15
+ [\fINAME\fR]
16
+ One saved test: its recorded runs, the latest last. Without it, every saved test with its last run
@@ -0,0 +1,19 @@
1
+ .ie \n(.g .ds Aq \(aq
2
+ .el .ds Aq '
3
+ .TH pepe-rerun 1 pepe "User Commands"
4
+ .SH NAME
5
+ pepe\-rerun \- Run a saved test again, record the run, and say what moved since the run before
6
+ .SH SYNOPSIS
7
+ \fBpepe rerun\fR [\fB\-\-gate\fR] [\fB\-h\fR|\fB\-\-help\fR] <\fINAME\fR>
8
+ .SH DESCRIPTION
9
+ Run a saved test again, record the run, and say what moved since the run before
10
+ .SH OPTIONS
11
+ .TP
12
+ \fB\-\-gate\fR
13
+ Exit 1 when the verdict is Slower or Worse, for CI
14
+ .TP
15
+ \fB\-h\fR, \fB\-\-help\fR
16
+ Print help
17
+ .TP
18
+ <\fINAME\fR>
19
+ The saved test, as `pepe history` lists them
package/man/pepe.1 CHANGED
@@ -8,7 +8,7 @@ pepe \- HTTP load generator
8
8
  .ie \n(.g .ds Aq \(aq
9
9
  .el .ds Aq '
10
10
  .SH SYNOPSIS
11
- \fBpepe\fR [\fB\-h\fR|\fB\-\-help\fR] [\fB\-n\fR|\fB\-\-number\fR] [\fB\-c\fR|\fB\-\-concurrency\fR] [\fB\-z\fR|\fB\-\-duration\fR] [\fB\-\-curl\fR] [\fB\-m\fR|\fB\-\-method\fR] [\fB\-H\fR|\fB\-\-headers\fR] [\fB\-t\fR|\fB\-\-timeout\fR] [\fB\-\-warmup\fR] [\fB\-\-threads\fR] [\fB\-\-rate\fR] [\fB\-d\fR|\fB\-\-body\fR] [\fB\-u\fR|\fB\-\-user\-agent\fR] [\fB\-p\fR|\fB\-\-proxy\fR] [\fB\-k\fR|\fB\-\-insecure\fR] [\fB\-\-disable\-compression\fR] [\fB\-\-disable\-keepalive\fR] [\fB\-\-disable\-redirects\fR] [\fB\-\-json\fR] [\fB\-\-trace\-header\fR] [\fB\-\-snapshot\fR] [\fB\-\-allow\-host\fR] [\fB\-\-max\-requests\fR] [\fB\-\-max\-rate\fR] [\fB\-\-max\-concurrency\fR] [\fB\-\-dry\-run\fR] [\fB\-\-fail\-if\fR] [\fB\-\-metrics\fR] [\fB\-i\fR|\fB\-\-setup\fR] [\fB\-\-config\fR] [\fB\-\-write\-config\fR] [\fB\-\-load\fR] [\fB\-\-keep\fR] [\fB\-V\fR|\fB\-\-version\fR] [\fIURL\fR] [\fIARGS\fR] [\fIsubcommands\fR]
11
+ \fBpepe\fR [\fB\-h\fR|\fB\-\-help\fR] [\fB\-n\fR|\fB\-\-number\fR] [\fB\-c\fR|\fB\-\-concurrency\fR] [\fB\-z\fR|\fB\-\-duration\fR] [\fB\-\-curl\fR] [\fB\-m\fR|\fB\-\-method\fR] [\fB\-H\fR|\fB\-\-headers\fR] [\fB\-t\fR|\fB\-\-timeout\fR] [\fB\-\-warmup\fR] [\fB\-\-threads\fR] [\fB\-\-rate\fR] [\fB\-d\fR|\fB\-\-body\fR] [\fB\-u\fR|\fB\-\-user\-agent\fR] [\fB\-p\fR|\fB\-\-proxy\fR] [\fB\-k\fR|\fB\-\-insecure\fR] [\fB\-\-disable\-compression\fR] [\fB\-\-disable\-keepalive\fR] [\fB\-\-disable\-redirects\fR] [\fB\-\-json\fR] [\fB\-\-trace\-header\fR] [\fB\-\-snapshot\fR] [\fB\-\-allow\-host\fR] [\fB\-\-max\-requests\fR] [\fB\-\-max\-rate\fR] [\fB\-\-max\-concurrency\fR] [\fB\-\-dry\-run\fR] [\fB\-\-fail\-if\fR] [\fB\-\-metrics\fR] [\fB\-i\fR|\fB\-\-setup\fR] [\fB\-\-config\fR] [\fB\-\-write\-config\fR] [\fB\-\-load\fR] [\fB\-\-keep\fR] [\fB\-\-record\fR] [\fB\-V\fR|\fB\-\-version\fR] [\fIURL\fR] [\fIARGS\fR] [\fIsubcommands\fR]
12
12
  .ie \n(.g .ds Aq \(aq
13
13
  .el .ds Aq '
14
14
  .SH DESCRIPTION
@@ -116,6 +116,9 @@ Run a test saved on the setup screen (ctrl\-s): ./.pepe/tests/NAME.toml; flags o
116
116
  \fB\-\-keep\fR [\fI<NAME>\fR]
117
117
  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\*(Aqs copied
118
118
  .TP
119
+ \fB\-\-record\fR
120
+ Keep the run\*(Aqs 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)
121
+ .TP
119
122
  \fB\-V\fR, \fB\-\-version\fR
120
123
  Print version
121
124
  .TP
@@ -137,6 +140,12 @@ Raise the load step by step to find where the target stops keeping up
137
140
  pepe\-compare(1)
138
141
  Hold a run\*(Aqs JSON report against an earlier one and say what moved
139
142
  .TP
143
+ pepe\-rerun(1)
144
+ Run a saved test again, record the run, and say what moved since the run before
145
+ .TP
146
+ pepe\-history(1)
147
+ The saved tests and their recorded runs
148
+ .TP
140
149
  pepe\-api(1)
141
150
  Load\-test every endpoint of an OpenAPI spec
142
151
  .TP
@@ -19,7 +19,7 @@
19
19
  "hasInstallScript": true,
20
20
  "license": "MIT",
21
21
  "name": "pepe-http",
22
- "version": "0.39.1"
22
+ "version": "0.40.0"
23
23
  },
24
24
  "node_modules/detect-libc": {
25
25
  "engines": {
@@ -48,5 +48,5 @@
48
48
  }
49
49
  },
50
50
  "requires": true,
51
- "version": "0.39.1"
51
+ "version": "0.40.0"
52
52
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "artifactDownloadUrls": [
3
- "https://github.com/omarmhaimdat/pepe/releases/download/v0.39.1"
3
+ "https://github.com/omarmhaimdat/pepe/releases/download/v0.40.0"
4
4
  ],
5
5
  "author": "Omar MHAIMDAT",
6
6
  "bin": {
@@ -119,7 +119,7 @@
119
119
  "zipExt": ".tar.xz"
120
120
  }
121
121
  },
122
- "version": "0.39.1",
122
+ "version": "0.40.0",
123
123
  "volta": {
124
124
  "node": "18.14.1",
125
125
  "npm": "9.5.0"
@@ -7,6 +7,8 @@
7
7
  "required": ["schema_version", "ended", "requests", "failed_requests", "seconds", "findings", "steps"],
8
8
  "properties": {
9
9
  "schema_version": { "type": "integer", "const": 1 },
10
+ "test": { "type": "string", "description": "The saved test this ramp is of (.pepe/tests/NAME.toml), when it is one" },
11
+ "command": { "type": "string", "description": "The pepe command that reproduces it, secrets in headers masked" },
10
12
  "ended": { "type": "string", "description": "completed, interrupted, or `stopped: <condition>`" },
11
13
  "holds_concurrency": { "type": ["integer", "null"], "description": "The highest level the target kept up with" },
12
14
  "capacity": {
@@ -7,6 +7,8 @@
7
7
  "required": ["schema_version", "summary"],
8
8
  "properties": {
9
9
  "schema_version": { "type": "integer", "const": 1 },
10
+ "test": { "type": "string", "description": "The saved test this run is of (.pepe/tests/NAME.toml), when it is one" },
11
+ "command": { "type": "string", "description": "The pepe command that reproduces it, secrets in headers masked" },
10
12
  "target": {
11
13
  "type": "object",
12
14
  "description": "What was tested and with what load",