Repository navigation
Closed
Labels
effort/mediumEffort Mediumpriority/p2-mediumPriority P2: standard workscope/roadmapThe roadmap jobs: intake, refine, stage, implement and the Service that runs themsource/agentFiled by an agenttype/bugType bug: the code does not do what it mustvalue/mediumValue Medium
Description
Problem Description
devops roadmap eval grades counts only the result lines that the Service pod writes. roadmap/job_grade_report.py line 88 sets _SELECTOR = '{namespace="devops", app_kubernetes_io_name="roadmap-service"}', and each query parses the line with | json message.
Roadmap jobs now also run in their own pods:
- the fix-plan Jobs (
app_kubernetes_io_name="roadmap-fix-plan-validation") write a plain-text result line to stderr; - the stage Jobs of feat(roadmap): add the stage Job template and one-item entry point #5483 (template
roadmap-stage) write their own lines.
The grade report never sees these lines, so fix_plan always shows 0/0, and every stage attempt that moves to a Job (#4559) disappears from the grades. On 2026-11-13 Loki held two job=fix_plan result lines (fix-plan-5390-r2, fix-plan-4917-r3), and the report showed none. The owner wants more evidence from the job metrics, and the move to Jobs makes this gap larger each day.
Proposed Fix
- Select every result line of the namespace:
{namespace="devops"} |= "roadmap job result:", or a list of the app labels of every roadmap unit. - Parse both forms: the JSON line of a pod that logs JSON (
| json message), and the plain line of a pod that logs text. - Keep the count of each attempt once. If one attempt can write a line in the Job and another in the Service, say which line counts.
- Put the selector in one place, read from settings or a constant, and test it. The comment on fix(roadmap): eval grades reaches Loki with no localhost fallback #5481 already names the hard-coded selector.
Acceptance Criteria
- A test with a fake Loki that holds one JSON line from the Service, one plain line from a fix-plan Job and one line from a stage Job counts all three in their jobs (
devops ci fail-to-pass). - After the release,
devops roadmap eval grades --window 7dshows thefix_planattempts that Loki holds.
Related
Metadata
Metadata
Assignees
Labels
effort/mediumEffort Mediumpriority/p2-mediumPriority P2: standard workscope/roadmapThe roadmap jobs: intake, refine, stage, implement and the Service that runs themsource/agentFiled by an agenttype/bugType bug: the code does not do what it mustvalue/mediumValue Medium
Activity
dan-petty commentedon Nov 13, 2026
Both work on devops roadmap eval grades; #5165 created the command, the candidate fixes its selector to read Job pod lines.devops-cli-service commentedon Nov 14, 2026
Released in v0.134.1: https://github.com/dan-petty/devops-cli/releases/tag/v0.134.1
devops-cli-service commentedon Nov 14, 2026
Live since 2026-11-14 00:14 UTC