Skip to content

fix(roadmap): count and log the reason of a left-out stage item - #4541

Merged
dan-petty merged 2 commits into
mainfrom
fix/4521-stage-left-out-reason
Nov 11, 2026
Merged

dan-petty merged 2 commits into
mainfrom
fix/4521-stage-left-out-reason

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The stage job gave each left-out, returned and rejected item the result skipped with no reason, so a person saw why a repository was idle only with devops roadmap explain on a clone. Each rule of the selection now has a bounded kind (LeftOutKind). devops_cli_roadmap_stage_total gets the label reason: the kind of a skipped item, and none for the other results. The Service logs the kind and the text of the reason of a left-out item once, and again only when the kind changes.

Closes #4521

Change: openspec/changes/archive/2026-11-11-4521-stage-metric-and-log-give-no/

@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them labels Nov 11, 2026
@dan-petty
dan-petty force-pushed the fix/4521-stage-left-out-reason branch from 96db820 to 1a3640e Compare November 11, 2026 07:18
@dan-petty

Copy link
Copy Markdown
Owner Author

Fail-to-pass: uv run devops ci fail-to-pass --base origin/main (base 5f75d25).

failed on base: tests.roadmap.stage.test_roadmap_stage_selection::test_each_left_out_item_carries_the_kind_of_its_reason (AttributeError: 'LeftOut' object has no attribute 'kind')
failed on base: tests.roadmap.stage.test_roadmap_stage_selection::test_a_named_issue_that_is_closed_or_no_item_carries_its_kind (AttributeError: 'LeftOut' object has no attribute 'kind')
failed on base: tests.roadmap.stage.test_roadmap_stage_job::test_a_round_logs_the_reason_of_a_left_out_item_once_until_it_changes (AssertionError: assert [] == [['#1', 'titl...needs_split']])
failed on base: tests.roadmap.stage.test_roadmap_stage_job::test_a_skipped_item_counts_under_the_kind_of_its_reason (ModuleNotFoundError: No module named 'devops_cli.roadmap.stage.stage_left_out')
4 failed on base (4 failed and 72 passed in tests/roadmap/stage/test_roadmap_stage_job.py, tests/roadmap/stage/test_roadmap_stage_selection.py; 0 errored).

Local runs on the branch:

  • uv run devops ci test tests/roadmap/stage/ tests/roadmap/test_roadmap_failure.py tests/roadmap/test_roadmap_explain.py: 2384 passed, 1 skipped.
  • uv run mypy on stage.py and stage_left_out.py: no issues.
  • uv run devops ci docs: docs/TELEMETRY.md is generated again from the instrument description.

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

  1. Prometheus: sum by (repo, reason) (increase(devops_cli_roadmap_stage_total{result="skipped"}[1h])) shows one reason value for each left-out item.
  2. Loki: {namespace="devops", container="service"} |= "stage left out" shows one line for each left-out item after the Service start, and no second line until its kind changes.

The stage job gave each left-out, returned and rejected item the result skipped with no reason. devops_cli_roadmap_stage_total now has the label reason, a bounded kind of the rule that left the item out, and the Service logs the reason of an item once for each change of its kind.
@dan-petty
dan-petty force-pushed the fix/4521-stage-left-out-reason branch from 1a3640e to 1fd91ef Compare November 11, 2026 07:47
@dan-petty
dan-petty marked this pull request as ready for review November 11, 2026 08:42
@dan-petty
dan-petty merged commit 5600179 into main Nov 11, 2026
32 checks passed
@dan-petty
dan-petty deleted the fix/4521-stage-left-out-reason branch November 11, 2026 11:55
dan-petty pushed a commit that referenced this pull request Nov 11, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.112.0](v0.111.0...v0.112.0)
(2026-11-11)


### Features

* **k8s:** export gateway spans without key metadata
([#4520](#4520))
([7234d71](7234d71))
* **k8s:** set the homelab domain in container env values
([#4608](#4608))
([a3bcf7c](a3bcf7c))
* **telemetry:** send pydantic-ai spans through the exporter seam
([#4538](#4538))
([fcf2a7a](fcf2a7a))


### Bug Fixes

* **ai:** price cached prompt tokens of chat calls
([#4584](#4584))
([f84bbe6](f84bbe6))
* **devcontainer:** stop uv noise lines in agent shells
([#4592](#4592))
([9ba375c](9ba375c))
* **k8s:** delete gateway management bodies from spans
([#4551](#4551))
([b835d3c](b835d3c))
* **k8s:** set the kube context and namespace on devops pods
([#4514](#4514))
([9087b39](9087b39))
* **roadmap:** a refused spec after the archive is a plan defect
([#4549](#4549))
([1db29f7](1db29f7))
* **roadmap:** count and log the reason of a left-out stage item
([#4541](#4541))
([5600179](5600179))
* **roadmap:** default the step ceiling to twice the budget
([#4556](#4556))
([1dfb6c8](1dfb6c8))
* **roadmap:** explain --trace shows the argument digest
([#4526](#4526))
([c92195f](c92195f))
* **roadmap:** explain totals count dropped model events
([#4543](#4543))
([fe0e979](fe0e979))
* **roadmap:** give each eval verify run its own report file
([#4534](#4534))
([ad27f2d](ad27f2d))
* **roadmap:** one event loop and a time limit for decide_all
([#4585](#4585))
([ec51e01](ec51e01))
* **roadmap:** scoped updates send requests with no row scope
([#4531](#4531))
([5f75d25](5f75d25))
* **roadmap:** the caller gate reads an added parameter span
([#4548](#4548))
([1ba07c1](1ba07c1))
* **roadmap:** the implement shell waits for its command
([#4536](#4536))
([571e044](571e044))
* **roadmap:** the module-test and caller gates read imports and calls
([#4490](#4490))
([8a22e82](8a22e82))
* **service:** put trace ids on Service JSON log lines
([#4511](#4511))
([0d7a0d2](0d7a0d2))


### Performance Improvements

* **ai:** keep intake embeddings between CLI runs
([#4546](#4546))
([812871e](812871e))
* **roadmap:** intake reads only the issues that changed
([#4552](#4552))
([7dfd155](7dfd155))

---
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>
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/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(roadmap): stage metric and log give no left-out reason

1 participant