Repository navigation
feat(service): cache GitHub issue state in the brain from webhooks - #6966
Merged
Merged
Conversation
…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
force-pushed
the
feat/6013-cache-github-issue-state
branch
from
November 24, 2026 05:54
6a2c24b to
5308bef
Compare
dan-petty
marked this pull request as ready for review
November 24, 2026 06:01
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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/