Skip to content

fix(roadmap): eval grades counts the result lines of Job pods #5556

Closed

Description

@dan-petty

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 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 7d shows the fix_plan attempts that Loki holds.

Related

#5481, #4559, #5483, #5164

Activity

  1. added
    source/agent
    type/bug
    scope/roadmap
    status/new
    value/medium
    effort/medium
    on Nov 13, 2026
  2. dan-petty commented on Nov 13, 2026

    @dan-petty
    OwnerAuthor
  3. added
    priority/p2-medium
    owner/agent
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Nov 13, 2026
  4. removed
    status/in-review
    owner/agent
    on Nov 13, 2026
  5. devops-cli-service commented on Nov 14, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-14 00:14 UTC

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

    effort/mediumpriority/p2-mediumscope/roadmapsource/agenttype/bugvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions