hotpath-cloud
v1.0.3Read-only access to Rust profiling reports from CI: benchmark history, diffs and policies
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_default_policy Get Default Policy
Get the default policy document. Save it as hotpath/policy.toml (or hotpath/<benchmark>-policy.toml), edit it, then check it with validate_policy.
get_diff Compare Report With Baseline
Compare a report with its baseline, as the PR comment does: regressions, improvements and broken budgets. Read the top-level `verdict` first.
| Parameter | Type | Description |
|---|---|---|
benchmark * | string | The benchmark name, as `list_benchmarks` prints it. |
repo * | string | The repository as `owner/name`, as `list_repos` prints it. |
commit | string | null | Full 40-character commit sha: the newest report measuring it or headed at it is the head. |
event | Narrows `pr` / `commit` to one event; not with `id`. | |
id | string | null | A report id as the head. |
pr | integer | null | Pull request number: the PR's newest report is the head. One of `pr`, `commit`, `id`. |
precise | boolean | null | `true`: values, changes and budget figures unrounded, durations in `ns`, sizes in `B`. Default `false`: rounded for reading. |
rows | `findings` (default without `select`): the rows the PR comment lists. `advisory`: plus the findings of unjudged families. `all` (default with `select`): every row, cell and total. | |
select | Keep only the rows and omissions of these entities, as in get_report: per resource exact `keys`; an io label keeps every op row of it. A section left without any is dropped. Combines with `rows`. |
get_report Get Report
Fetch one report: its summary, verdict and policy, optionally with its hotpath JSON payload. not_found means CI has not uploaded it yet. For what changed against the baseline, use get_diff.
| Parameter | Type | Description |
|---|---|---|
benchmark * | string | The benchmark name, as `list_benchmarks` prints it. |
repo * | string | The repository as `owner/name`, as `list_repos` prints it. |
commit | string | null | Full 40-character commit sha: the newest report measuring it or headed at it (a PR branch's `git rev-parse HEAD` finds the PR's report). |
event | Narrows `pr` / `commit` to one event; not with `id`. | |
id | string | null | A report id. |
include_payload | boolean | null | Include the uploaded hotpath JSON report. Default: false without `select`, true with it; `false` with `select` is refused. |
pr | integer | null | Pull request number: the PR's newest report. One of `pr`, `commit`, `id`. |
precise | boolean | null | `true`: measurements unrounded, durations in `ns`, sizes in `B` (payload values as uploaded). Default `false`: rounded for reading. |
select | Keep only these entities in the payload, per resource (`functions`, `sql`, `http`, `server`, `mutexes`, `rw_locks`, `channels`, `io`, `threads`) exact, case-sensitive `keys` (function name; sql and ht… |
list_benchmarks List Benchmarks
List one repository's benchmarks.
| Parameter | Type | Description |
|---|---|---|
repo * | string | The repository as `owner/name`, as `list_repos` prints it. |
list_reports List Reports
List a repository's reports, newest first, as summaries with their run totals. Use it to browse report history; with `select`, to follow given entities across runs.
| Parameter | Type | Description |
|---|---|---|
repo * | string | The repository as `owner/name`, as `list_repos` prints it. |
benchmark | string | null | Only this benchmark's reports, by name as `list_benchmarks` prints it. Default: every benchmark of the repository. |
branch | string | null | Bare branch name (`main`): reports that measured that branch's ref, in practice its push reports; pair with `event: push` for the baseline series. For a PR's own reports use `pr`. |
commit | string | null | Full 40-character commit sha: reports measuring it or headed at it. |
cursor | string | null | `next_cursor` of the previous page, with the same filters. |
event | Only reports of one event. | |
limit | integer | null | Reports per page, 1 to 50, default 20; with `select` 1 to 20, default 10. |
metadata | object | null | Only reports whose user_metadata has all of these keys with exactly these values (e.g. {"runner": "Linux-ARM64"}); up to 8 pairs. Reports without metadata never match. |
pr | integer | null | Only this pull request's reports. |
precise | boolean | null | As get_report's `precise`. |
select | Return each report with its payload, filtered as get_report's `select`. | |
since | string | null | Uploaded at or after this time: RFC 3339, or `YYYY-MM-DD` (UTC midnight). |
until | string | null | Uploaded before this time, same format as `since`. |
verdict | `passed`, `regressed` (failed reports included), `failed`, or `not_judged` (nothing was judged). |
list_repos List Repositories
List the repositories with the hotpath GitHub App installed, with their benchmarks. Start here: `full_name` is the `repo` argument of the other tools.
| Parameter | Type | Description |
|---|---|---|
query | string | null | Only repositories whose `owner/name` contains this text, ignoring case. |
with_benchmarks | boolean | Only repositories with at least one benchmark. Default false. |
validate_policy Validate Policy
Check a policy TOML document. Use it after editing a policy file, before committing it.
| Parameter | Type | Description |
|---|---|---|
source * | string | The whole policy TOML document, as written. |
whoami Show Current User
Show the GitHub user and API token this connection acts as. Use it to check the connection or after an invalid_token error.