Skip to content

perf(roadmap): status lane reads the snapshot, skips idle stops - #4887

Merged
dan-petty merged 2 commits into
mainfrom
perf/4854-status-lane-reads-the-snapshot-skips
Nov 12, 2026
Merged

dan-petty merged 2 commits into
mainfrom
perf/4854-status-lane-reads-the-snapshot-skips

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The status lane of the roadmap Service read the whole issue listing in each round, and the stop pass listed the comments of each Blocked stop in each round. With no Job to run, these reads used the whole GitHub budget of the Service.

  • The status lane reads every issue through a listing snapshot of its own, in listing-status of the state directory (lane_listing). A round with a kept snapshot reads only the issues changed since the watermark, and the whole listing once in 24 hours. The worker of the lane is the one writer of each file.
  • retry_asked_on lists the comments of a stopped item only when its updated_at moved since the last listing in the process. A new comment moves updated_at, so a retry still clears at the next round. The stop pass and the implement judge use it.

Closes #4854

Change: openspec/changes/archive/2026-11-12-4854-status-lane-reads-the-snapshot-skips/

The status lane reads every issue through a listing snapshot of its own,
in listing-status of the state directory, so a round sends one listing
request with since= in place of 49 pages. The stop pass and the implement
judge list the comments of a stopped item only when its updated_at moved
since the last listing in the process.

Refs #4854
@dan-petty dan-petty added type/infra Type infra: the build, CI, images or cluster scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them labels Nov 12, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Fail-to-pass (uv run devops ci fail-to-pass --base origin/main, local run on the head before the archive commit): 3 failed on base, 214 passed, 0 errored.

  • tests/roadmap/test_roadmap_run_lanes.py::test_a_status_lane_round_with_a_kept_snapshot_reads_only_the_changed_issues: on the base, the second status round reads state=all&per_page=100 again. With the change it sends one request with sort=updated&direction=desc&since=<watermark>.
  • tests/roadmap/test_roadmap_run_lanes.py::test_the_status_and_triage_lanes_read_every_issue_through_their_own_snapshots: on the base, the status lane opens its store with no snapshot.
  • tests/roadmap/test_roadmap_stop_clear.py::test_a_later_pass_lists_no_comments_of_a_stop_whose_issue_did_not_change: on the base, 3 later passes list the comments of 3 stops 12 times. With the change they list them 1 time, for the one issue that got a retry comment.

Other checks run locally: devops ci --check --only test-tree,docs,openspec passed. tests/roadmap/implement, the run, scoped-update, Service and service-limit tests passed (1,873 tests). Three submit tests now post the retry as the owner (as_actor("owner").comment), because a comment moves updated_at on GitHub and seed_comment of the fake does not.

Expected saving (measured hour 2026-11-11 20:45Z, devops_cli_github_requests_total):

Source Before After
Listing reads of the status lane (49 pages for each read) about 720 an hour (implement 528, metrics 192) about 1 request for each read
Stop comments (19 stops x 15 rounds) about 285 an hour only for an issue that changed
Row implement, devops-cli 820 an hour about 20 an hour
Row metrics, devops-cli 611 an hour about 420 an hour; #3634 and #3941 cover the rest

@dan-petty
dan-petty marked this pull request as ready for review November 12, 2026 02:19
@dan-petty
dan-petty merged commit f285cf8 into main Nov 12, 2026
27 checks passed
@dan-petty
dan-petty deleted the perf/4854-status-lane-reads-the-snapshot-skips branch November 12, 2026 03:12
dan-petty pushed a commit that referenced this pull request Nov 12, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.115.0](v0.114.1...v0.115.0)
(2026-11-12)


### Features

* **design:** add the design tokens and their build
([#4811](#4811))
([db4b19a](db4b19a))
* **roadmap:** find symbol definitions with tree-sitter
([#4820](#4820))
([3b3fddc](3b3fddc))


### Bug Fixes

* **ai:** the gateway group that answered decides the local label
([#4907](#4907))
([0da637f](0da637f))
* **ci:** replay a changed gate check in fail-to-pass
([#4898](#4898))
([59bfc57](59bfc57))
* **config:** read each config file as YAML 1.2
([#4858](#4858))
([c3130a3](c3130a3))
* **roadmap:** loosen the caps that turn a stage refusal into a loss
([#4869](#4869))
([4492fc3](4492fc3))
* **roadmap:** refine reads a dependency named by title
([#4877](#4877))
([2829f9c](2829f9c))
* **roadmap:** refine sends a judge refusal to an agent round
([#4874](#4874))
([e4fc6a9](e4fc6a9))
* **tests:** refuse test writes under the real home
([#4857](#4857))
([0f6ac1b](0f6ac1b))
* **tests:** the plain-Python helper test keeps PYTHONPATH
([#4914](#4914))
([99c109d](99c109d))


### Performance Improvements

* **ci:** direct pytest runs wait for a gate slot
([#4901](#4901))
([e80db62](e80db62))
* **roadmap:** status lane reads the snapshot, skips idle stops
([#4887](#4887))
([f285cf8](f285cf8))

---
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/infra Type infra: the build, CI, images or cluster

Projects

None yet

Development

Successfully merging this pull request may close these issues.

perf(roadmap): status lane reads the snapshot, skips idle stops

1 participant