Skip to content

Run metrics from the Run, in its Command record #1033

Closed

Description

@JacobStephens2

Parent

#981

What to build

Every Run writes its Run metrics into a new field of its Command record when it ends. Only the Run's own process writes it, as it writes the rest of the record. The record's version goes up, and readers accept records without the field.

  • Outcome: as the record already holds it.
  • Repairs and CI rounds: counted from the record's Repair and CI watch stages.
  • Stage times: each stage's time, and where it sits against its Usual range: below, within, above, or too few Runs to say.
  • Minutes: by stage and in total.

Every Run gets its own, including a Ticket's Run and a Base fix. show --json includes a Run's metrics.

Acceptance criteria

  • An integration test with fake Harnesses ends a Run and a Spec run, and checks each Run's metrics in its Command record, Ticket Runs included.
  • Repairs and CI rounds match the record's stages.
  • Each stage is placed against its Usual range, or marked as too few to say.
  • Older records without the field still read, and show --json includes the metrics.
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

    ready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions