Skip to content

Metrics panics on any Security run: COUNTED omits WORK[8] since #2157 #2311

Closed

Description

@JacobStephens2

This was generated by AI during triage.

Agent Brief

Category: bug
Summary: Every Metrics view panics on any machine whose logs hold a Security run. COUNTED omits WORK[8] ("Security run") since #2157.

Current behavior:

Every Metrics view panics at src/logs/metrics/outcomes.rs:473 with only work kinds and Pickup runs are counted. That covers the Console's /metrics page, which shows "Can't read this page; check the Console's stderr.", as well as thirdshift metrics, --fleet and --machine. It reproduces on lima-thirdshift with 0.38.0.

#2157 (066382ed, "Implement explicit-version Release runs") inserted "Release run" into WORK, growing it from 8 kinds to 9. COUNTED still lists WORK[0] through WORK[7], so "Security run" is no longer counted, and kind_name hits its expect.

Desired behavior:

  • COUNTED is built from WORK itself, so adding a kind can't drift. For example, keep one list and append "Pickup run" to it.
  • A kind that isn't counted is skipped, or shown as unknown, rather than panicking the page.

Key interfaces:

  • WORK, COUNTED and kind_name in src/logs/metrics/outcomes.rs.

Acceptance criteria:

  • A test with Security run and Release run outcome rows renders Metrics.
  • thirdshift metrics works on lima-thirdshift.
  • Adding a kind to WORK needs no second edit.

Activity

  1. added
    bug
    ready-for-agent
    in-progress
    and removed
    ready-for-agent
    on Nov 19, 2026
  2. removed
    in-progress
    on Nov 19, 2026
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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions