Skip to content

Distinguish a report whose results failed to parse from an empty report #1265

Open

Description

@epompeii

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions