Repository navigation
Description
Problem or Motivation
In the 7 days to 2026-11-11T14:51:23Z, these counters disagree:
devops_cli_service_implement_jobs_totalgrew by 8.06 succeeded, 0 failed and 0 gone;devops_cli_service_implement_failures_totalgrew by 48.8, and 25.7 of that has no repo label (ci_infra16.6,refused_tool6.0,parser3.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 andfailures{class,repo}by 1, with a repo label that is not empty. - The
devops ci fail-to-passrun 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
Activity
dan-petty commentedon Nov 11, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
fixprefix of the title gives the type.(roadmap)scope of the title gives the scope.The fix blocks the implement-delivery SLO of #4679 but does not break the service.Accurate counters are needed for the SLO, but the service still functions without them.The body estimates 50 to 150 lines with tests in one file.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.docs(openspec): name the lost counts of the Service stop for #4703
docs(openspec): archive the change of #4703
devops-cli-service commentedon Nov 12, 2026
Released in v0.116.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.116.0
devops-cli-service commentedon Nov 12, 2026
Live since 2026-11-12 05:27 UTC
docs(openspec): plan #3650 count kept work in its own counter (#5923)