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
Metrics panics on any Security run: COUNTED omits WORK[8] since #2157 #2311
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.
Activity
Fix Metrics outcome counting for Security runs (JacobStephens2#2311)