hotpath-cloud

v1.0.3
rs.hotpath/hotpath-cloud Checked 2 hours ago Published 22 days ago

Read-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.

ParameterTypeDescription
benchmark *stringThe benchmark name, as `list_benchmarks` prints it.
repo *stringThe repository as `owner/name`, as `list_repos` prints it.
commitstring | nullFull 40-character commit sha: the newest report measuring it or headed at it is the head.
eventNarrows `pr` / `commit` to one event; not with `id`.
idstring | nullA report id as the head.
printeger | nullPull request number: the PR's newest report is the head. One of `pr`, `commit`, `id`.
preciseboolean | 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.
selectKeep 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.

ParameterTypeDescription
benchmark *stringThe benchmark name, as `list_benchmarks` prints it.
repo *stringThe repository as `owner/name`, as `list_repos` prints it.
commitstring | nullFull 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).
eventNarrows `pr` / `commit` to one event; not with `id`.
idstring | nullA report id.
include_payloadboolean | nullInclude the uploaded hotpath JSON report. Default: false without `select`, true with it; `false` with `select` is refused.
printeger | nullPull request number: the PR's newest report. One of `pr`, `commit`, `id`.
preciseboolean | null`true`: measurements unrounded, durations in `ns`, sizes in `B` (payload values as uploaded). Default `false`: rounded for reading.
selectKeep 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.

ParameterTypeDescription
repo *stringThe 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.

ParameterTypeDescription
repo *stringThe repository as `owner/name`, as `list_repos` prints it.
benchmarkstring | nullOnly this benchmark's reports, by name as `list_benchmarks` prints it. Default: every benchmark of the repository.
branchstring | nullBare 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`.
commitstring | nullFull 40-character commit sha: reports measuring it or headed at it.
cursorstring | null`next_cursor` of the previous page, with the same filters.
eventOnly reports of one event.
limitinteger | nullReports per page, 1 to 50, default 20; with `select` 1 to 20, default 10.
metadataobject | nullOnly 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.
printeger | nullOnly this pull request's reports.
preciseboolean | nullAs get_report's `precise`.
selectReturn each report with its payload, filtered as get_report's `select`.
sincestring | nullUploaded at or after this time: RFC 3339, or `YYYY-MM-DD` (UTC midnight).
untilstring | nullUploaded 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.

ParameterTypeDescription
querystring | nullOnly repositories whose `owner/name` contains this text, ignoring case.
with_benchmarksbooleanOnly 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.

ParameterTypeDescription
source *stringThe 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.