Repository navigation
fix(roadmap): eval grades counts the result lines of Job pods - #5569
Conversation
Plan the change that makes the job grades and the job success panels read the result lines of the Job pods. The fix-plan Jobs write a plain line on stderr that no query reads. The stage Jobs write no line to the log, because a CLI process has no handler for INFO records.
The grades read the containers of the units that write result lines: service, stage and fix-plan. One base, RESULT_LINES, parses a JSON line of the Service by its message field and a plain line of a Job pod as it is. The drop of the error label of the json parser stops the refusal of Loki for a plain line, and a filter keeps only a line that starts with the prefix. A fake Loki in the tests runs the queries of the report on streams of labels and lines, and refuses a pipeline error as Loki does.
devops roadmap stage --job-item writes the round lines and the result line to stderr as plain text, as devops roadmap step fix-plan does. The stderr handler moves to job_lines_to_stderr in roadmap/job_result.py, and both commands use it. The actor that writes the check-in of a stage attempt writes its line. The Job logs its line after its check-in, and only when the check-in found its check-out or the pod has no Job name. When the Service ended the attempt, or the check-in fails, the Job writes no line, and the recovery of the Service writes the line of the failed end.
The four queries of the row Roadmap Job Success start with RESULT_LINES of the job grades, so the panels count the lines of the Service, of the stage Jobs and of the fix-plan Jobs. A test holds each count of the dashboard to the constant. The documents give the two forms of a line and the rule that the writer of the check-in writes the line.
Only the result line of the stage Job waits for its check-in. The counter devops_cli_roadmap_stage_total counts the item of the plan before the check-in again, as on main and as a round does, so a Job whose check-in finds no check-out or fails still counts its item.
The paragraph about the two forms of a line split the list of the fields of the line. Move it after the list. The stage row of the job table names the stage Job and the recovery of the Service. TESTING.md names the Loki fake and records that it has no contract suite yet.
Checks and evidencePremise (live Loki, namespace Live query with the new base (instant, 7 days to 2026-11-13T23:50Z): alternatives 35, fix_plan 2, implement 15, intake 306, refine 101, refine_judge 7, stage 19. The old base gave fix_plan 0. With the old base and a selector that reads the fix-plan pods, Loki answers HTTP 400 Tests
Render diff (
Review fixes in this pull request
After the release (a person): run |
cc9ce77 to
792d8bc
Compare
Second push: a stage Job that a person starts
Now the Job reads at its start whether the check-out names it. A Job that no check-out named writes its own line, at a normal end and at a
|
The stage Job reads at its start whether the check-out names it. The Service knows only such an attempt: it recovers it and writes its line when the Job does not check in. A Job that devops k8s run-job starts has a Job name and no check-out, so its check-in finds nothing and the Service cannot recover it. Such a Job now writes its own line, at a normal end and at a deadline end, so its attempt counts once.
Move the change to the archive and apply its deltas to the specs roadmap-job-grades and roadmap-stage/job.
792d8bc to
908f17f
Compare
Check resultsHead commit:
Fail-to-pass run: https://github.com/dan-petty/devops-cli/actions/runs/43528090184/job/132238708696 Skipped check: Test Job Duration |
🤖 I have created a release *beep* *boop* --- ## [0.134.1](v0.134.0...v0.134.1) (2026-11-13) ### Bug Fixes * **k8s:** the DeepSeek gateway group gets a fallback group ([#5565](#5565)) ([183487d](183487d)) * **roadmap:** eval grades counts the result lines of Job pods ([#5569](#5569)) ([1eb3ea4](1eb3ea4)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
devops roadmap eval gradesand the panels of the rowRoadmap Job Successread the result lines of the Service, of the stage Job pods and of the fix-plan Job pods. One constant,RESULT_LINES, holds the selector (the containersservice,stageandfix-planof the namespacedevops) and the parse of the two forms of a line: the JSON line of the Service and the plain line of a Job pod. A dashboard test holds each panel query to it.The stage Job now writes its result line to stderr, because a CLI process has no handler for these
INFOrecords. The actor that writes the check-in of an attempt writes its line. The Job writes it only when its check-in found its check-out, or when no check-out named it at its start, as for a Job that a person starts. So each attempt counts once.Before this change,
fix_planshowed 0 attempts, and a stage attempt in a Job wrote no line.Closes #5556
Change:
openspec/changes/archive/2026-11-13-5556-grades-read-job-pod-lines/