Repository navigation
fix(telemetry): Keep the age metrics' reads across pods - #6326
Conversation
a7e6db9 to
ed33f94
Compare
|
The steps of the job:
|
|
Advisory pre-merge review (automated; a person decides). Recommendation: hold. The code is correct and well tested, but the pull request body closes #3634 with two acceptance criteria that it does not deliver. Fix the body (findings 1 and 2) and the minor findings, then merge. Reviewed head: Findings
Lens results that this report does not keep
Checks that ran
|
ed33f94 to
c4115e6
Compare
|
Fixes for the advisory review (#6326 (comment)). New head: Findings
Test record
Fail-to-pass
All four pass on the new head. Live check after the mergeAfter the merge and the deployment of the new image, run the check of |
The metrics row read every moved Item before every Item with no entry, in the order of the open list. When 20 or more held Items moved before each round, an Item with no entry and an Item in the 21st place never got a read. The round now reads the Items oldest entry first: an Item that the record does not hold, then a moved Item by the updated_at of its entry. A deferred Item keeps its older entry, so it comes first in the next round. An owned Item with no entry that the cap defers has no label times in the round, so the round skips its claim and logs no false "No labeled event" warning. The warning for an unreadable record now says that the round reads at most 20 Items. docs/CLUSTER.md compares the band of the issue with the same query, with no status filter, for all repositories. The plan states 24 requests for one new pod (#6095 set the fixed reads to 4), drops the repeated tasks and names the live check that follows the merge.
c4115e6 to
da41c1e
Compare
🤖 I have created a release *beep* *boop* --- ## [0.179.5](v0.179.4...v0.179.5) (2026-11-19) ### Bug Fixes * **ai:** bound the number of prewarm model label values ([#6391](#6391)) ([e3fa4f1](e3fa4f1)) * **ci:** count a changed test that errors on base as proof ([#6379](#6379)) ([6881b4c](6881b4c)) * **deps:** update Helm release argo-cd to v10.18.2 ([#6398](#6398)) ([2604ace](2604ace)) * **infra:** Fix the offline separator of a comma limit ([#6387](#6387)) ([98493e4](98493e4)) * **roadmap:** Name the cause of a stopped verification run ([#6333](#6333)) ([bbf308d](bbf308d)) * **roadmap:** Stage a long plan body and a null optional text ([#6351](#6351)) ([053aabc](053aabc)) * **telemetry:** Keep the age metrics' reads across pods ([#6326](#6326)) ([ad0ee60](ad0ee60)) ### Code Refactoring * **ai:** rank the benchmark with numpy and pytrec-eval ([#6388](#6388)) ([051217e](051217e)) --- 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>
Issue #3634 reports a metrics row that spent 627 to 1000 GitHub requests an hour after #3601, against 222 to 305 before it, because each new pod read the label events of every open Item again. This change keeps those label times in
item-label-times.jsonof each repository, keyed by theupdated_atof each Item, so a new pod reads no events of an Item that the file holds. A round reads the events of at most 20 Items, oldest entry first, so Items that move in each round do not keep another Item out.Measured cost of one new pod: 24 GitHub requests in its first round over 30 open Items, the 4 fixed reads of the row and 20 label-event reads. The count is the sum of
devops_cli_github_requests_totalfor rowmetricsin one offline round against the GitHub fake. The plan said 25, because the fixed reads were 5 then; #6095 setMETRICS_ROW_GITHUB_REQUEST_BUDGETto 4.Closes #3634
Change:
openspec/changes/archive/2026-11-18-3634-the-age-metrics-keep-their-reads/