fix(orb): invalidate durable CI cache on coalesced fork-PR completions - #8737
Conversation
maybeReReviewOnCiCompletion returns early for fork PRs (empty pull_requests[]) once a completion event in a burst is head-SHA coalesced, before ever reaching the invalidation loop whose own comment promises it runs "for EVERY resolved PR, regardless of whether the re-review below actually fires". Only the first completion per 60s window invalidated the durable CI-state cache, so a reader could observe a stale pre-completion aggregate for up to the cache TTL — for fork PRs only (same-repo PRs invalidate before their coalesce check). Invalidate the durable cache in the coalesced branch too, resolving via the fast stored-DB head-SHA lookup only (no live fork fallback — the round-trip the coalesce exists to avoid; an untracked fork the DB misses has no cache entry to clear, mirroring maybeInvalidateCiCacheOnLegacyCiEvent). The coalescing itself is unchanged: it still suppresses the duplicate re-review dispatch. Closes JSONbored#8684
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8737 +/- ##
==========================================
+ Coverage 90.56% 91.19% +0.63%
==========================================
Files 96 97 +1
Lines 22490 25677 +3187
Branches 3884 5016 +1132
==========================================
+ Hits 20367 23417 +3050
- Misses 1945 1993 +48
- Partials 178 267 +89
Flags with carried forward coverage won't be shown. Click here to find out more.
|
|
Tip ✅ LoopOver review result - approve/merge recommendedReview updated: 2026-07-26 05:32:27 UTC
Review summary Nits — 3 non-blocking
Decision drivers
Context & advisory signals — never blocks the verdict
Linked issue satisfactionAddressed Review context
Contributor next steps
Signal definitions
🧪 Chat with LoopOverAsk LoopOver a question about this PR directly in a comment — grounded only in the same cached, public-safe facts shown above, never a new claim.
Full command reference: https://loopover.ai/docs/loopover-commands 🧪 Experimental — new and may change. 🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by LoopOver, a quiet PR intelligence layer for OSS maintainers.
|
fix(orb): invalidate durable CI cache on coalesced fork-PR completions
maybeReReviewOnCiCompletion returns early for fork PRs (empty
pull_requests[]) once a completion event in a burst is head-SHA
coalesced, before ever reaching the invalidation loop whose own comment
promises it runs "for EVERY resolved PR, regardless of whether the
re-review below actually fires". Only the first completion per 60s
window invalidated the durable CI-state cache, so a reader could observe
a stale pre-completion aggregate for up to the cache TTL — for fork PRs
only (same-repo PRs invalidate before their coalesce check).
Invalidate the durable cache in the coalesced branch too, resolving via
the fast stored-DB head-SHA lookup only (no live fork fallback — the
round-trip the coalesce exists to avoid; an untracked fork the DB misses
has no cache entry to clear, mirroring maybeInvalidateCiCacheOnLegacyCiEvent).
The coalescing itself is unchanged: it still suppresses the duplicate
re-review dispatch.
Closes #8684