pepe-http 0.43.1 → 0.46.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 +225 -0
- package/completions/_pepe +582 -0
- package/completions/_pepe.ps1 +428 -0
- package/completions/pepe.bash +1458 -15
- package/completions/pepe.fish +314 -15
- package/man/pepe-slack.1 +32 -0
- package/man/pepe.1 +16 -1
- package/npm-shrinkwrap.json +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,231 @@ 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.46.0](https://github.com/omarmhaimdat/pepe/compare/v0.45.0...v0.46.0) - 2026-10-17
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- *(slack)* --slack keeps one Slack message up to date as a run goes, and pepe slack connect sets it up from the terminal ([#201](https://github.com/omarmhaimdat/pepe/pull/201))
|
|
14
|
+
|
|
15
|
+
Part 2 of the webhooks work: Slack, live, set up from the terminal.
|
|
16
|
+
Nothing is hosted; the app belongs to the user's own workspace.
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
pepe slack connect # once per machine
|
|
20
|
+
pepe -z 10m -c 50 --slack https://api.example.com/health
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## `pepe slack connect`
|
|
24
|
+
|
|
25
|
+
1. Opens Slack's "create an app" page with the manifest in the link:
|
|
26
|
+
name, permissions (`chat:write`, `chat:write.public`, `channels:read`,
|
|
27
|
+
`channels:join`, `groups:read`). The user picks a workspace, then clicks
|
|
28
|
+
**Create**, **Install** and **Allow**.
|
|
29
|
+
2. Takes the pasted bot token, shown as dots, and checks it right away
|
|
30
|
+
with `auth.test`.
|
|
31
|
+
3. Picks the channel by name or part of one, joins it, posts a test
|
|
32
|
+
message, and saves the token and channel to `slack.toml` beside the
|
|
33
|
+
settings. The file is `0600`, readable only by the user.
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
## [0.45.0](https://github.com/omarmhaimdat/pepe/compare/v0.44.0...v0.45.0) - 2026-10-17
|
|
37
|
+
|
|
38
|
+
### Added
|
|
39
|
+
|
|
40
|
+
- *(webhooks)* --webhook sends the verdict to Slack, Discord, Teams, Google Chat or any URL, and F3 sets them on any screen ([#199](https://github.com/omarmhaimdat/pepe/pull/199))
|
|
41
|
+
|
|
42
|
+
Part 1 of the webhooks work: easy by default, customisable in every
|
|
43
|
+
place a run is configured.
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
pepe -z 30s -c 50 --fail-if 'p99 > 300ms' --webhook "$SLACK_WEBHOOK_URL" https://api.example.com/health
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## What it does
|
|
50
|
+
|
|
51
|
+
- **The URL picks the layout.**
|
|
52
|
+
- `hooks.slack.com`: Slack blocks.
|
|
53
|
+
- `discord.com/api/webhooks`: a Discord embed coloured by the outcome.
|
|
54
|
+
- Teams (`*.webhook.office.com`, workflows on `*.logic.azure.com`): an
|
|
55
|
+
Adaptive Card.
|
|
56
|
+
- `chat.googleapis.com`: Google Chat text.
|
|
57
|
+
- Anything else: JSON with the event, the run and the whole report.
|
|
58
|
+
|
|
59
|
+
`format` can force any of these, or `text`.
|
|
60
|
+
- **Events**: `start`, `progress` (a bar, requests, req/s, p50, p99 and
|
|
61
|
+
errors, every `every`), `anomaly` (sent as it happens), `end`, and
|
|
62
|
+
`fail`. `fail` fires when a `--fail-if` was crossed, a ping's SLO was
|
|
63
|
+
broken, or nothing answered. The default is `end`.
|
|
64
|
+
- **Config**: `webhook = "URL"` or `[[webhook]]` tables in `pepe.toml`.
|
|
65
|
+
The same key works under the settings' `[defaults]` (machine-wide) and
|
|
66
|
+
in saved tests (`--keep`, ctrl-s). Each table takes `on`, `format`,
|
|
67
|
+
`headers`, `every`, `mention`, and a `body` template with `{{holes}}`
|
|
68
|
+
(status, p99, rps, report, …).
|
|
69
|
+
- **Secrets**: `${NAME}` is read from the environment. An unset name, a
|
|
70
|
+
bad URL or an unknown hole is refused before anything is sent. URLs are
|
|
71
|
+
masked in reports and in the recorded command
|
|
72
|
+
(`https://hooks.slack.com/••••`).
|
|
73
|
+
- **F3 on every screen** opens a webhook page next to F2's settings.
|
|
74
|
+
- On the setup form, it sets the hooks of the run you're about to start.
|
|
75
|
+
- During a run, a hook added or changed is sent to from then on.
|
|
76
|
+
- Paste or type a URL; `1`–`5` tick events; ← → step the format; `t`
|
|
77
|
+
sends a test and shows the answer; del removes the hook.
|
|
78
|
+
- Edits are kept for restarts, ctrl-s and the command printed at the
|
|
79
|
+
end.
|
|
80
|
+
- The dashboard, ramp and ping screens now pass pasted text to the
|
|
81
|
+
pages.
|
|
82
|
+
- **Every mode sends**: run, flow, api and replay (on screen, headless,
|
|
83
|
+
`--json`), plus ramp and ping.
|
|
84
|
+
- **Delivery**:
|
|
85
|
+
- Each webhook has its own in-order queue, with three tries on a dropped
|
|
86
|
+
connection, a 429 or a 5xx, following `Retry-After`.
|
|
87
|
+
- The run never waits on webhooks. pepe waits up to 15 s at the end and
|
|
88
|
+
reports failures on stderr; the exit code is unchanged.
|
|
89
|
+
- `--dry-run` lists the webhooks and sends nothing.
|
|
90
|
+
- **MCP**: the tools take `webhook` and `webhook_on`.
|
|
91
|
+
|
|
92
|
+
## Checked
|
|
93
|
+
|
|
94
|
+
- Unit tests:
|
|
95
|
+
- format detection;
|
|
96
|
+
- the file forms (URL, table, list) round-trip;
|
|
97
|
+
- `${ENV}` and masking;
|
|
98
|
+
- each layout;
|
|
99
|
+
- templates;
|
|
100
|
+
- the progress line;
|
|
101
|
+
- in-order delivery with a retried 503;
|
|
102
|
+
- the page's keys and drawing;
|
|
103
|
+
- saved tests keep hooks and mask them in the command.
|
|
104
|
+
- By hand against a local receiver: flags with start/end/fail,
|
|
105
|
+
`pepe.toml` tables with headers, progress, Slack layout and a template.
|
|
106
|
+
- Driving the real TUI in a pseudo-terminal: F3 mid-run, paste a URL,
|
|
107
|
+
and the run's end arrives there. Also F3 on the setup form, then start.
|
|
108
|
+
The recorded command shows the URL masked.
|
|
109
|
+
- Speed is unchanged (bench server, 200k at 64, three runs each): master
|
|
110
|
+
6.10–6.20 CPU ms per 1k, this branch 6.05–6.10.
|
|
111
|
+
|
|
112
|
+
## Not in this PR (the next two)
|
|
113
|
+
|
|
114
|
+
- A Slack bot token: one message edited in place as the run goes, with
|
|
115
|
+
anomalies threaded under it.
|
|
116
|
+
- Socket Mode: stop, rerun and edit-and-rerun buttons, and `/pepe`.
|
|
117
|
+
These act on saved tests only, for allowed users.
|
|
118
|
+
|
|
119
|
+
## 1.0
|
|
120
|
+
|
|
121
|
+
Adds `--webhook`, `--webhook-on`, the `webhook` key and the MCP
|
|
122
|
+
arguments, which restarts the freeze clock. The report schema is
|
|
123
|
+
unchanged.
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
## [0.44.0](https://github.com/omarmhaimdat/pepe/compare/v0.43.1...v0.44.0) - 2026-10-17
|
|
127
|
+
|
|
128
|
+
### Added
|
|
129
|
+
|
|
130
|
+
- *(vars)* --vars users.csv fills the {{holes}} in a request, a row a request ([#197](https://github.com/omarmhaimdat/pepe/pull/197))
|
|
131
|
+
|
|
132
|
+
The data-driven requests from the roadmap (section 4), and the last 1.0
|
|
133
|
+
item that could shape `pepe.toml`'s keys.
|
|
134
|
+
|
|
135
|
+
```bash
|
|
136
|
+
pepe -z 30s -c 20 --vars users.csv \
|
|
137
|
+
-H 'Authorization: Bearer {{token}}' -m POST -d '{"email": "{{email}}"}' \
|
|
138
|
+
'https://api.example.com/users/{{id}}'
|
|
139
|
+
pepe flow checkout.toml -z 1m --vars users.csv
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
## What it does
|
|
143
|
+
|
|
144
|
+
- `{{name}}` holes in the URL (host included), headers and body take
|
|
145
|
+
their values from a CSV file whose first line names them (RFC 4180
|
|
146
|
+
quoting, a BOM and CRLF are fine).
|
|
147
|
+
- **Run and ramp**: one request per row, in the file's order, round
|
|
148
|
+
again.
|
|
149
|
+
- **Flow**: each chain starts with the next row's values, over `[vars]`;
|
|
150
|
+
captures go over both. Columns count as known when the flow is checked.
|
|
151
|
+
- **Checked before anything is sent**: every hole must be a column, and
|
|
152
|
+
the request must have at least one hole (both are errors that name the
|
|
153
|
+
cause). Every row's host is held to `--allow-host`. `--dry-run` says how
|
|
154
|
+
many rows there are and what the columns are. `api`, `replay` and `ping`
|
|
155
|
+
refuse `--vars`.
|
|
156
|
+
- **Config, saved tests and MCP**: `vars = "users.csv"` in `pepe.toml`
|
|
157
|
+
(and so in `--keep` tests and `--write-config`); a `vars` argument on
|
|
158
|
+
the MCP `run`, `ramp` and `flow` tools. It is not taken from the
|
|
159
|
+
machine's `[defaults]`.
|
|
160
|
+
- Without `--vars`, nothing changes: `{{` in a URL is sent as written.
|
|
161
|
+
|
|
162
|
+
## Cost
|
|
163
|
+
|
|
164
|
+
Each row becomes a prepared request before the run, on the direct path
|
|
165
|
+
like any target, so sending is unchanged (bench server, 200k requests at
|
|
166
|
+
64, three runs each, CPU ms per 1k):
|
|
167
|
+
|
|
168
|
+
| | CPU ms / 1k | Peak RSS |
|
|
169
|
+
| --- | --- | --- |
|
|
170
|
+
| master | 6.10 – 6.45 | 10.1 – 10.6 MB |
|
|
171
|
+
| this branch, no `--vars` | 6.20 – 6.30 | 9.6 – 10.2 MB |
|
|
172
|
+
| `--vars` 10,000 rows | 6.25 – 6.40 | 18.3 – 18.6 MB |
|
|
173
|
+
|
|
174
|
+
Memory is about 1.6 KB per row (190 MB for 100k rows, 1.6 GB for a
|
|
175
|
+
million, which is the cap). A million rows take about 2 s to prepare.
|
|
176
|
+
Two fixes keep it at that size:
|
|
177
|
+
- Each row keeps only the headers that have holes.
|
|
178
|
+
- Targets with equal weights are sent in turn. The weighted round-robin
|
|
179
|
+
cost the square of their number to compute.
|
|
180
|
+
|
|
181
|
+
The schedule index went from `u16` to `u32`, so more than 65,535 targets
|
|
182
|
+
now fit. Recorded in `bench/README.md`.
|
|
183
|
+
|
|
184
|
+
## 1.0
|
|
185
|
+
|
|
186
|
+
This adds a flag (`--vars`), a `pepe.toml` key (`vars`) and an MCP
|
|
187
|
+
argument. That restarts the month-without-a-flag-change clock. It is
|
|
188
|
+
also the 1.0 prerequisite ticked in ROADMAP.md. The report schema is
|
|
189
|
+
unchanged: the command line the report already records includes
|
|
190
|
+
`--vars`.
|
|
191
|
+
|
|
192
|
+
## Tests
|
|
193
|
+
|
|
194
|
+
- CSV parsing and error locations.
|
|
195
|
+
- Filling a request row by row.
|
|
196
|
+
- A live run checked request by request: rows in order, templated and
|
|
197
|
+
static headers, body.
|
|
198
|
+
- Validation, including the modes that refuse `--vars`.
|
|
199
|
+
- The config round-trip.
|
|
200
|
+
- Checked by hand: flows, ramps, guardrails, dry runs.
|
|
201
|
+
|
|
202
|
+
`site/docs/*.html` is rebuilt here from master's generator. It will
|
|
203
|
+
conflict with omarmhaimdat/pepe#196; rebuild with `python3
|
|
204
|
+
site/build-docs.py` after whichever lands second.
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
### Other
|
|
209
|
+
|
|
210
|
+
- *(site)* titles, descriptions and structured data a search engine reads, a sitemap and robots.txt ([#196](https://github.com/omarmhaimdat/pepe/pull/196))
|
|
211
|
+
|
|
212
|
+
The documentation site and the install page, made easier to find.
|
|
213
|
+
|
|
214
|
+
- **Titles**: each docs page's `<title>` carries the words someone would
|
|
215
|
+
search for (\`pepe ping · HTTP ping with latency split by phase\`); the
|
|
216
|
+
sidebar keeps the short names.
|
|
217
|
+
- **Descriptions**: the page's opening, cut at a sentence end near 160
|
|
218
|
+
characters instead of mid-word at 300.
|
|
219
|
+
- **Cards**: Open Graph (`og:url`, `og:site_name`, image size and alt)
|
|
220
|
+
and Twitter large-image cards on every page.
|
|
221
|
+
- **Structured data**: `TechArticle` and `BreadcrumbList` JSON-LD on
|
|
222
|
+
docs pages; the install page's `SoftwareApplication` now names the npm
|
|
223
|
+
and PyPI packages, the install and docs pages, plus a `WebSite` entry.
|
|
224
|
+
- **Sitemap and robots.txt**: `build-docs.py` writes `site/sitemap.xml`
|
|
225
|
+
(no dates, so it isn't stale after every merge); `robots.txt` points to
|
|
226
|
+
it; `publish.sh` uploads both, and `publish-site.yml` checks they answer
|
|
227
|
+
200 after publishing.
|
|
228
|
+
|
|
229
|
+
No change to the binary, flags or reports.
|
|
230
|
+
|
|
231
|
+
`python3 site/build-docs.py --check` passes.
|
|
232
|
+
|
|
233
|
+
|
|
9
234
|
## [0.43.1](https://github.com/omarmhaimdat/pepe/compare/v0.43.0...v0.43.1) - 2026-10-17
|
|
10
235
|
|
|
11
236
|
### Fixed
|