Skip to content

feat(service): cache GitHub issue state in the brain from webhooks - #6966

Merged
dan-petty merged 2 commits into
mainfrom
feat/6013-cache-github-issue-state
Nov 24, 2026
Merged

dan-petty merged 2 commits into
mainfrom
feat/6013-cache-github-issue-state

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The Service spends its 4000-request hourly budget on polling for issue, pull request and check state that GitHub already pushes, so rounds wait all day: 693 holds in 24 hours on 2026-11-16, and each row reads the same issue again between two changes. #6013 asks the project brain to keep the GitHub objects that rows read, written by webhooks, so a row reads GitHub only on a miss, for a write, or after the one-hour limit. This change delivers the issue object, its per-row counters and its conditional revalidation; the pull request and check objects go to #6630.

Closes #6013

Change: openspec/changes/archive/2026-11-24-6013-cache-github-issue-and-pr-state/

@dan-petty dan-petty added type/feature Type feature: a new function scope/service The long-running devops Service and its lanes labels Nov 24, 2026
…6013)

Cache the GitHub issue state in the shared Valkey tier under the brain
key for each repository issue. Revalidate stale entries with
If-None-Match conditional requests, and write incoming webhook issue
events before waking lanes.

Closes #6013

Change:
openspec/changes/archive/2026-11-24-6013-cache-github-issue-and-pr-state/
@dan-petty
dan-petty force-pushed the feat/6013-cache-github-issue-state branch from 6a2c24b to 5308bef Compare November 24, 2026 05:54
@dan-petty
dan-petty marked this pull request as ready for review November 24, 2026 06:01
@dan-petty
dan-petty merged commit ed82af5 into main Nov 24, 2026
29 checks passed
@dan-petty
dan-petty deleted the feat/6013-cache-github-issue-state branch November 24, 2026 11:09
dan-petty-release Bot added a commit that referenced this pull request Nov 24, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.209.0](v0.208.0...v0.209.0)
(2026-11-24)


### Features

* **infra:** apply a merged infra PR in a step job
([#6980](#6980))
([e3329b3](e3329b3))
* **infra:** Open CloudNativePG window before drain
([#6976](#6976))
([16a309e](16a309e))
* **infra:** run drift in cluster and plan infra PRs
([#6977](#6977))
([4c8afce](4c8afce))
* **monitoring:** Record the shared roadmap Service selectors
([#6978](#6978))
([205ebcb](205ebcb))
* **service:** cache GitHub issue state in the brain from webhooks
([#6966](#6966))
([ed82af5](ed82af5))

---
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/service The long-running devops Service and its lanes type/feature Type feature: a new function

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(service): Cache GitHub issue and PR state in the brain from webhooks

1 participant