Skip to content

fix(roadmap): count each implement outcome once with its repo #4703

Closed
0 of 1 issue completed
Closed

Description

@dan-petty

Problem or Motivation

In the 7 days to 2026-11-11T14:51:23Z, these counters disagree:

  • devops_cli_service_implement_jobs_total grew by 8.06 succeeded, 0 failed and 0 gone;
  • devops_cli_service_implement_failures_total grew by 48.8, and 25.7 of that has no repo label (ci_infra 16.6, refused_tool 6.0, parser 3.0);
  • kube-state-metrics shows 94 runner Jobs that started.

Both Service counters come from _emit_implement_metrics (src/devops_cli/roadmap/implement/implement_submit.py), so the failures cannot be more than the jobs. Each result of the jobs counter has 3,234 series in the 7 days. No implement-delivery SLI is possible until this is fixed.

Proposed Solution & Architectural Design

  • Find why the failure path emits an empty repo label, and why the failed state never gets to the jobs counter.
  • Make one counter of implement attempts by outcome and class, with a repo label that is not empty.
  • Add a check that refuses an empty repo label.

Target Subsystem

SDLC, Git & PR Governance (src/devops_cli/roadmap/implement/), with the Service metrics.

Existing Tool Considered

prometheus_client (in use) covers the counter. This is a fix of existing code, with no new tool. Cost (estimate): about 50-150 lines with tests, one small item, about 0.33 USD on the DeepSeek implement path and 1 day elapsed.

Acceptance Criteria

  • A fixture run with one failed attempt increments jobs{result="failed"} by 1 and failures{class,repo} by 1, with a repo label that is not empty.
  • The devops ci fail-to-pass run shows that the new test fails on the base.
  • After the deploy, the 7-day increase of the jobs counter over all results is within 10% of the runner Jobs that kube-state-metrics shows as started.

Dependencies

None. The implement-delivery SLO of the project review (#4679) waits for this fix.

Source: #4679

Sub-issues

Sub-issues

0 of 1 Issues completed
Loading 1 sub-issues

Activity

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

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/bug. The fix prefix of the title gives the type.
    • Scope: scope/roadmap. The (roadmap) scope of the title gives the scope.
    • Priority: P2-Medium. The fix blocks the implement-delivery SLO of #4679 but does not break the service.
    • Value: Medium. Accurate counters are needed for the SLO, but the service still functions without them.
    • Effort: Low. The body estimates 50 to 150 lines with tests in one file.
    • Related: fix(telemetry): count a round that fails before its first row #3666, which asks for a different change. Both fix the jobs counter not growing on a failure, but #3666 covers rounds that fail before any row runs while the candidate covers the failure path that increments the failures counter with an empty repo label.
  4. added
    priority/p2-medium
    owner/agent
    on Nov 11, 2026
  5. added
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Nov 12, 2026
  6. removed
    status/in-review
    owner/agent
    on Nov 12, 2026
  7. devops-cli-service commented on Nov 12, 2026

    @devops-cli-service
    Contributor
  8. devops-cli-service commented on Nov 12, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-12 05:27 UTC

  9. added a commit that references this issue on Nov 16, 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

    effort/lowpriority/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