Repository navigation
perf(roadmap): Cut review reads with a snapshot and counts - #6716
Conversation
|
The steps of the job:
|
|
Advisory pre-merge review (automated; a person decides). Recommendation: hold. Two major correctness findings stand: a hole in the review snapshot, and run counts that stop at 2,500 with no error. Reviewed head: Findings1. Major: the review snapshot keeps a permanent hole
2. Major: the run counts stop at 2,500 with no error
3. Minor: two tests have names that state removed behavior
4. Minor: the runs window now includes its start second
5. Minor: fail-to-pass gives no result for each test of the readers module
6. Minor: the "new window" criterion is tested over the same window
7. Minor: the spec scenario of 2,072 runs has no test
Nits
Checks that ran
|
The review snapshot now covers only the time from the gap start when the gap starts after the watermark, so a later, wider review reads the changes in that hole (#6603). GitHub stops the total_count of a filtered runs list at 2,500. The runs reader reads the total of each created slice first, splits a slice at the cap in two halves, and adds the four status counts of each slice under the cap. A one-second slice at the cap, or status counts above a total, raise RoadmapReviewError. The window counts the runs after its start second, as before.
A runs page with no total_count gave a count of 0 with no error. Now the reader raises RoadmapReviewError, so the runs fact gives an error. A total_count that is not a whole number at or above 0 raises too. The requirement, the docs line and the catalog definition now state the final behavior: the listing reads from the window start when the window starts before the first window that the review snapshot covers, and a slice under the count cap gets the status counts. The archived proposal and tasks state the kept cap message, the plan of each created slice and the correct test counts. CONTRIBUTING.md states that a limit of a roadmap job stays in config/ when one module reads it.
a428434 to
6bdb287
Compare
|
Advisory re-review after the fix commit (automated; a person decides). Recommendation: merge after minor fixes. Fix S1, S2 and S3 in this pull request, and let a person decide S4. The nits S5 to S11 are optional. Head: Status of the original findings
Standing findingsS1. minor.
S2. minor.
S3. minor.
S4. minor (a person decides).
S5. nit.
S6. nit.
S7. nit.
S8. nit.
S9. nit.
S10. nit.
S11. nit.
Open risk (not a finding)The builder reports a risk that no run proves. The reader reads the total of a slice before its 4 status counts. When the window end is after the time of the read, a new run can count in a status and not in the total. Then Checks that ran
Follow-up commit 6bdb287The commit fixes S1, S2, S3, S5, S6 and S8 to S11. S3 has two new tests that failed before the fix. A runs page with no count, a negative count or a text count now raises an error, so the fact gives an error and no count is 0. For S4, 120 other names of the limit table have exactly one reader, so the cap stays in |
🤖 I have created a release *beep* *boop* --- ## [0.191.1](v0.191.0...v0.191.1) (2026-11-22) ### Bug Fixes * **pr:** Measure the body above its trailer lines ([#6701](#6701)) ([ad63da9](ad63da9)) ### Performance Improvements * **roadmap:** Cut review reads with a snapshot and counts ([#6716](#6716)) ([df731a7](df731a7)) ### Code Refactoring * **roadmap:** fix-conflict runs on the phases ([#6709](#6709)) ([6e497c2](6e497c2)) * **roadmap:** stage pushes the plan commit on the phases ([#6710](#6710)) ([f075f16](f075f16)), closes [#6704](#6704) --- 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>
A 7-day project review with no intake snapshot sends 49 GitHub requests (#6603), above the limit of 45 of #4692, because the review writes no listing snapshot and pages about 25 pages of Actions runs.
The review now keeps its own listing snapshot under
review-listing. It reads the changes after the later of its watermark and the window start, or from the window start when the window starts before the first window of its snapshot. When that read starts after the watermark, the snapshot covers only the time from the read start, so a later, wider review reads the changes before it. The runs reader reads counts, not pages. GitHub stops thetotal_countof a filtered runs list at 2,500, so the reader reads the total of each created slice first, splits a slice at the cap in two halves, and reads four status counts for each slice under it. A 7-day window costs 5 requests.Closes #6603
Change:
openspec/changes/archive/2026-11-22-6603-the-project-review-keeps-its-own/