You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Distinguish a report whose results failed to parse from an empty report #1265
When a report's results fail to parse with the selected adapter, POST /v0/projects/{project}/reports returns 400, yet a report is still created with results: []. Any adapter does this, for example a Hyperfine 1.x file sent with shell_hyperfine_v2, a Hyperfine file sent with rust_bench, or arbitrary text sent with shell_hyperfine. Each failed request adds one empty report to the project.
An empty report can also be intentional, such as a run whose benchmark command produced no benchmarks. Today the two look identical: a report list shows an empty report and gives no way to tell whether the run reported nothing or whether its results could not be parsed.
A report should record which of those happened, so that:
The Console and the API can show a parse failure as a failure, with the reason, instead of as an empty report.
An intentional empty report keeps working as it does now.
The response to a failed request and the stored report agree on the outcome.
The 400 body on the same path also echoes the entire submitted results and the debug form of the report settings, which makes the error hard to read and should be trimmed to the adapter and the reason.
Activity