Skip to content

feat(roadmap): log each fix round and each failed stage item - #4561

Merged
dan-petty merged 3 commits into
mainfrom
feat/4535-log-fix-rounds
Nov 11, 2026
Merged

dan-petty merged 3 commits into
mainfrom
feat/4535-log-fix-rounds

Conversation

@dan-petty

@dan-petty dan-petty commented Nov 11, 2026 •

Copy link
Copy Markdown
Owner

No log line showed what a fix loop of the roadmap jobs did, so the pass rate of a return could not be measured. A stage reply that passes or stays refused after a return, each stage review round, each failed stage item and each ended implement Job now log one line with counts and no model text. Each line names the repository before the item, because the Service runs the rows of more than one repository in one process and two repositories can have an item with the same number. Each line ends with the devops-cli version, which names one Service image because the release workflow builds the image only for a release; the implement line also names the runner digest. The error line of a failed round keeps the cut first line and then names every failed item.

Closes #4535

Change: openspec/changes/archive/2026-11-11-4535-log-each-fix-round-and-each/

@dan-petty dan-petty added type/feature Type feature: a new function scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them labels Nov 11, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Local runs on the branch (base 5f75d25):

  • Each new test failed before the change (assert [] == [...] for the four log lines, and the error line ended with the cut reason).
  • uv run devops ci test on test_roadmap_stage_repair_return.py, test_roadmap_stage_round_log.py, test_roadmap_stage_job.py, test_roadmap_stage_verification.py, test_roadmap_stage_refused_reply.py, test_roadmap_implement_submit.py, tests/roadmap/test_roadmap_run_*.py and tests/server/test_server_service.py: 290 passed.
  • uv run mypy on the four changed modules: no issues.
  • uv run devops ci --check --only swallowed-failures,test-tree,startup-imports,constructs,docs,openspec,lint,format: pass.

This pull request changes no stage gate, so it needs no devops roadmap eval stage --replay.

Live steps after the merge and the image roll (no change to the cluster from this pull request):

  1. Loki: {namespace="devops", container="service"} |~ "stage gate returns|stage review round|stage item failed|implement attempt" shows the lines with version=<release>.
  2. The pass rate of a return for each release: count the stage gate returns lines with result=passed, and divide by all stage gate returns lines, by version.
  3. A failed stage round: the line Roadmap jobs failed: stage: ... ends with (failed items: #<n>, ...) and names each failed item.

@dan-petty
dan-petty marked this pull request as ready for review November 11, 2026 09:10
@dan-petty
dan-petty force-pushed the feat/4535-log-fix-rounds branch from d789efe to ee76ceb Compare November 11, 2026 09:32
@dan-petty

Copy link
Copy Markdown
Owner Author

Review findings and what I did:

  1. major src/devops_cli/roadmap/round_log.py: the four new log lines did not name the repository. Confirmed and fixed. The Service runs the rows of more than one repository in one process, and JsonLogFormatter adds repo only from extra, which these calls did not pass. Each function now takes repo and writes repo=<owner/repo> before item=#<n>, in the same order as the stage left out line of fix(roadmap): count and log the reason of a left-out stage item #4541. The callers pass repo from _report (implement_submit.py) and _run_stage_adapter (run.py), and self._pull_repo from _Planner (stage.py). A run with no repository writes repo=none. I updated the line formats in k8s/README.md, the spec requirement and its scenarios, the design and the tasks of the change.

Commits: ca8c9608 (fix), ee76cebb (archive again, still the last commit).

Fail-to-pass: uv run devops ci fail-to-pass --base d789efe4 (the old head of this branch): 4 tests failed on base and pass on the head.

  • test_roadmap_stage_round_log::test_each_item_that_a_round_failed_logs_one_line_with_its_step_and_class
  • test_roadmap_stage_repair_return::test_a_review_round_and_a_pass_after_a_return_each_log_one_line_with_counts
  • test_roadmap_stage_repair_return::test_a_revision_that_stays_refused_logs_its_returns_as_refused
  • test_roadmap_implement_submit::test_each_ended_job_logs_one_attempt_line_with_its_counts_and_digest

The 4 affected test files: 82 passed on the head.

Note: #4541 and this PR both change line 703 of k8s/README.md (step 15). The PR that merges second needs a rebase that keeps both sentences.

The Service runs the rows of more than one repository in one process, and two
repositories can have an item with the same number. Each of the four round log
lines now gives repo=<owner/repo> before item=#<n>.
@dan-petty
dan-petty force-pushed the feat/4535-log-fix-rounds branch from ee76ceb to 5fe18b2 Compare November 11, 2026 12:15
@dan-petty
dan-petty merged commit 1936572 into main Nov 11, 2026
32 checks passed
@dan-petty
dan-petty deleted the feat/4535-log-fix-rounds branch November 11, 2026 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them type/feature Type feature: a new function

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(roadmap): log each fix round and each failed stage item

1 participant