pepe-http 0.0.0-stage → 0.34.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/.gitignore +2 -0
- package/CHANGELOG.md +3703 -0
- package/LICENSE +21 -0
- package/README.md +114 -2
- package/binary-install.js +348 -0
- package/binary.js +124 -0
- package/completions/_pepe +870 -0
- package/completions/_pepe.ps1 +687 -0
- package/completions/pepe.bash +2062 -0
- package/completions/pepe.fish +466 -0
- package/install.js +4 -0
- package/man/pepe-api.1 +40 -0
- package/man/pepe-compare.1 +25 -0
- package/man/pepe-completions.1 +36 -0
- package/man/pepe-flow.1 +16 -0
- package/man/pepe-logs.1 +34 -0
- package/man/pepe-mcp.1 +13 -0
- package/man/pepe-ping.1 +104 -0
- package/man/pepe-ramp.1 +31 -0
- package/man/pepe-replay.1 +25 -0
- package/man/pepe-schema.1 +16 -0
- package/man/pepe-self-update.1 +19 -0
- package/man/pepe.1 +322 -0
- package/npm-shrinkwrap.json +52 -0
- package/package.json +124 -3
- package/run-pepe.js +4 -0
- package/schema/compare.schema.json +77 -0
- package/schema/ping.schema.json +188 -0
- package/schema/ramp.schema.json +74 -0
- package/schema/run.schema.json +248 -0
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://pepe.mhaimdat.com/schema/run.schema.json",
|
|
4
|
+
"title": "pepe run report",
|
|
5
|
+
"description": "What `pepe --json`, `--snapshot`, `pepe api --json`, `pepe flow --json` and `pepe replay --json` print. Fields are added over time and never renamed within a schema_version; read the ones you need and ignore the rest.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": ["schema_version", "summary"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schema_version": { "type": "integer", "const": 1 },
|
|
10
|
+
"target": {
|
|
11
|
+
"type": "object",
|
|
12
|
+
"description": "What was tested and with what load",
|
|
13
|
+
"required": ["mode", "url", "concurrency"],
|
|
14
|
+
"properties": {
|
|
15
|
+
"mode": { "type": "string", "enum": ["run", "ramp", "api", "flow", "replay"] },
|
|
16
|
+
"method": { "type": "string" },
|
|
17
|
+
"url": { "type": "string", "description": "The URL, or the spec, flow file or log the requests came from" },
|
|
18
|
+
"concurrency": { "type": "integer", "minimum": 1 }
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"summary": {
|
|
22
|
+
"type": "object",
|
|
23
|
+
"required": [
|
|
24
|
+
"total_requests", "successful_requests", "failed_requests", "http_errors", "timeout_errors",
|
|
25
|
+
"connection_errors", "interrupted", "duration_ms", "requests_per_second", "data_transfer_bytes",
|
|
26
|
+
"latency", "status_codes"
|
|
27
|
+
],
|
|
28
|
+
"properties": {
|
|
29
|
+
"total_requests": { "type": "integer", "minimum": 0 },
|
|
30
|
+
"successful_requests": { "type": "integer", "minimum": 0, "description": "2xx responses" },
|
|
31
|
+
"failed_requests": { "type": "integer", "minimum": 0, "description": "Every request that did not get a 2xx response" },
|
|
32
|
+
"http_errors": { "type": "integer", "minimum": 0, "description": "Responses with a non-2xx status" },
|
|
33
|
+
"timeout_errors": { "type": "integer", "minimum": 0 },
|
|
34
|
+
"connection_errors": { "type": "integer", "minimum": 0, "description": "Requests that failed without a response" },
|
|
35
|
+
"interrupted": { "type": "boolean", "description": "The run was stopped early" },
|
|
36
|
+
"duration_ms": { "type": "number" },
|
|
37
|
+
"requests_per_second": { "type": "number" },
|
|
38
|
+
"data_transfer_bytes": { "type": "integer", "minimum": 0 },
|
|
39
|
+
"latency": { "$ref": "#/$defs/latency" },
|
|
40
|
+
"status_codes": {
|
|
41
|
+
"type": "object",
|
|
42
|
+
"description": "Responses by status code, the code as the key",
|
|
43
|
+
"additionalProperties": { "type": "integer", "minimum": 0 }
|
|
44
|
+
},
|
|
45
|
+
"server_timing": {
|
|
46
|
+
"type": "object",
|
|
47
|
+
"description": "What the target's Server-Timing headers said; absent when it sent none",
|
|
48
|
+
"required": ["responses", "total", "segments"],
|
|
49
|
+
"properties": {
|
|
50
|
+
"responses": { "type": "integer", "minimum": 0 },
|
|
51
|
+
"total": { "$ref": "#/$defs/timing" },
|
|
52
|
+
"segments": { "type": "object", "additionalProperties": { "$ref": "#/$defs/timing" } }
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"slowest_requests": {
|
|
56
|
+
"type": "array",
|
|
57
|
+
"description": "The slowest responses, slowest first; absent when nothing was tracked",
|
|
58
|
+
"items": {
|
|
59
|
+
"type": "object",
|
|
60
|
+
"required": ["at_s", "latency_ms", "status"],
|
|
61
|
+
"properties": {
|
|
62
|
+
"at_s": { "type": "number" },
|
|
63
|
+
"latency_ms": { "type": "number" },
|
|
64
|
+
"status": { "type": "integer" },
|
|
65
|
+
"request_id": { "type": "string" },
|
|
66
|
+
"id_header": { "type": "string" }
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"anomalies": {
|
|
71
|
+
"type": "array",
|
|
72
|
+
"description": "What changed during the run, as it was noticed; absent when nothing did",
|
|
73
|
+
"items": {
|
|
74
|
+
"type": "object",
|
|
75
|
+
"required": ["at_s", "kind", "text"],
|
|
76
|
+
"properties": {
|
|
77
|
+
"at_s": { "type": "number" },
|
|
78
|
+
"kind": { "type": "string" },
|
|
79
|
+
"text": { "type": "string" }
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"failures": {
|
|
84
|
+
"type": "array",
|
|
85
|
+
"description": "Failed requests by cause, most frequent first; absent when nothing failed",
|
|
86
|
+
"items": {
|
|
87
|
+
"type": "object",
|
|
88
|
+
"required": ["cause", "count"],
|
|
89
|
+
"properties": {
|
|
90
|
+
"cause": { "type": "string" },
|
|
91
|
+
"count": { "type": "integer", "minimum": 0 },
|
|
92
|
+
"example_body": { "type": "string" }
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"generator": {
|
|
99
|
+
"type": "object",
|
|
100
|
+
"description": "pepe's own load during the run: whether pepe, rather than the target, was the limit",
|
|
101
|
+
"required": ["threads"],
|
|
102
|
+
"properties": {
|
|
103
|
+
"threads": { "type": "integer", "minimum": 1 },
|
|
104
|
+
"peak_busy_percent": { "type": "integer", "minimum": 0, "maximum": 100, "description": "Near 100, the numbers are pepe's limit" },
|
|
105
|
+
"warmup_s": { "type": "number" },
|
|
106
|
+
"warmup_requests": { "type": "integer", "minimum": 0 },
|
|
107
|
+
"rate_per_second": { "type": "number" },
|
|
108
|
+
"rate_missed": { "type": "integer", "minimum": 0 }
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"timeline": {
|
|
112
|
+
"type": "array",
|
|
113
|
+
"description": "One point per minute over the whole run; absent for runs under a minute",
|
|
114
|
+
"items": {
|
|
115
|
+
"type": "object",
|
|
116
|
+
"required": ["at_s", "requests_per_second", "errors_per_second", "p50_ms", "p90_ms", "p99_ms"],
|
|
117
|
+
"properties": {
|
|
118
|
+
"at_s": { "type": "number" },
|
|
119
|
+
"requests_per_second": { "type": "number" },
|
|
120
|
+
"errors_per_second": { "type": "number" },
|
|
121
|
+
"p50_ms": { "type": "number" },
|
|
122
|
+
"p90_ms": { "type": "number" },
|
|
123
|
+
"p99_ms": { "type": "number" }
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"verdict": {
|
|
128
|
+
"type": "object",
|
|
129
|
+
"description": "What the dashboard would have said: the level and its findings, most of which the text report shows too",
|
|
130
|
+
"required": ["level", "findings"],
|
|
131
|
+
"properties": {
|
|
132
|
+
"level": { "type": "string", "enum": ["healthy", "degraded", "failing"] },
|
|
133
|
+
"findings": {
|
|
134
|
+
"type": "array",
|
|
135
|
+
"items": {
|
|
136
|
+
"type": "object",
|
|
137
|
+
"required": ["level", "text"],
|
|
138
|
+
"properties": {
|
|
139
|
+
"level": { "type": "string", "enum": ["healthy", "degraded", "failing"] },
|
|
140
|
+
"text": { "type": "string" }
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
"snapshot": {
|
|
147
|
+
"type": "object",
|
|
148
|
+
"description": "Present when written by --snapshot",
|
|
149
|
+
"required": ["unix_time", "running"],
|
|
150
|
+
"properties": {
|
|
151
|
+
"unix_time": { "type": "integer" },
|
|
152
|
+
"running": { "type": "boolean", "description": "False in the last one" }
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
"endpoints": {
|
|
156
|
+
"type": "array",
|
|
157
|
+
"description": "API mode: one entry per endpoint that ran",
|
|
158
|
+
"items": { "$ref": "#/$defs/row" }
|
|
159
|
+
},
|
|
160
|
+
"flow": {
|
|
161
|
+
"type": "object",
|
|
162
|
+
"description": "A flow: its steps, and how many chains started and completed",
|
|
163
|
+
"properties": {
|
|
164
|
+
"name": { "type": "string" },
|
|
165
|
+
"chains_started": { "type": "integer", "minimum": 0 },
|
|
166
|
+
"chains_completed": { "type": "integer", "minimum": 0 },
|
|
167
|
+
"steps": { "type": "array", "items": { "$ref": "#/$defs/row" } }
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
"replay": {
|
|
171
|
+
"type": "object",
|
|
172
|
+
"description": "A replay: the log it came from and its URLs",
|
|
173
|
+
"properties": {
|
|
174
|
+
"log": { "type": "string" },
|
|
175
|
+
"requests_in_log": { "type": "integer", "minimum": 0 },
|
|
176
|
+
"replayed_from_log": { "type": "integer", "minimum": 0 },
|
|
177
|
+
"distinct_urls": { "type": "integer", "minimum": 0 },
|
|
178
|
+
"left_out": { "type": "object", "additionalProperties": { "type": "integer" } },
|
|
179
|
+
"urls": { "type": "array", "items": { "$ref": "#/$defs/row" } }
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
"$defs": {
|
|
184
|
+
"latency": {
|
|
185
|
+
"type": "object",
|
|
186
|
+
"required": ["min_ms", "max_ms", "avg_ms", "std_dev_ms", "median_ms", "p90_ms", "p95_ms", "p99_ms", "phases"],
|
|
187
|
+
"properties": {
|
|
188
|
+
"min_ms": { "type": "number" },
|
|
189
|
+
"max_ms": { "type": "number" },
|
|
190
|
+
"avg_ms": { "type": "number" },
|
|
191
|
+
"std_dev_ms": { "type": "number" },
|
|
192
|
+
"median_ms": { "type": "number" },
|
|
193
|
+
"p90_ms": { "type": "number" },
|
|
194
|
+
"p95_ms": { "type": "number" },
|
|
195
|
+
"p99_ms": { "type": "number" },
|
|
196
|
+
"phases": {
|
|
197
|
+
"type": "object",
|
|
198
|
+
"description": "Where the time went",
|
|
199
|
+
"required": ["first_byte", "download", "dns_lookup_avg_ms"],
|
|
200
|
+
"properties": {
|
|
201
|
+
"connect": { "$ref": "#/$defs/phase", "description": "Opening a connection, TCP and TLS together; absent when nothing measured it" },
|
|
202
|
+
"first_byte": { "$ref": "#/$defs/phase" },
|
|
203
|
+
"download": { "$ref": "#/$defs/phase" },
|
|
204
|
+
"dns_lookup_avg_ms": { "type": "number" }
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
"phase": {
|
|
210
|
+
"type": "object",
|
|
211
|
+
"required": ["count", "median_ms", "p99_ms", "max_ms"],
|
|
212
|
+
"properties": {
|
|
213
|
+
"count": { "type": "integer", "minimum": 0 },
|
|
214
|
+
"median_ms": { "type": "number" },
|
|
215
|
+
"p99_ms": { "type": "number" },
|
|
216
|
+
"max_ms": { "type": "number" }
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
"timing": {
|
|
220
|
+
"type": "object",
|
|
221
|
+
"required": ["count"],
|
|
222
|
+
"properties": {
|
|
223
|
+
"count": { "type": "integer", "minimum": 0 },
|
|
224
|
+
"median_ms": { "type": "number" },
|
|
225
|
+
"p90_ms": { "type": "number" },
|
|
226
|
+
"p99_ms": { "type": "number" }
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
"row": {
|
|
230
|
+
"type": "object",
|
|
231
|
+
"description": "One endpoint, step or URL of a run",
|
|
232
|
+
"required": ["requests", "failed_requests", "requests_per_second", "median_ms", "p99_ms", "status_codes"],
|
|
233
|
+
"properties": {
|
|
234
|
+
"endpoint": { "type": "string" },
|
|
235
|
+
"step": { "type": "string" },
|
|
236
|
+
"method": { "type": "string" },
|
|
237
|
+
"url": { "type": "string" },
|
|
238
|
+
"share_in_log": { "type": "number" },
|
|
239
|
+
"requests": { "type": "integer", "minimum": 0 },
|
|
240
|
+
"failed_requests": { "type": "integer", "minimum": 0 },
|
|
241
|
+
"requests_per_second": { "type": "number" },
|
|
242
|
+
"median_ms": { "type": "number" },
|
|
243
|
+
"p99_ms": { "type": "number" },
|
|
244
|
+
"status_codes": { "type": "object", "additionalProperties": { "type": "integer" } }
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
}
|