fix(signals): avoid request-time burden forecast scans - #906
Conversation
|
Note Gittensory Gate skippedPR closed before full evaluation. No late first comment was created.
💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers. |
|
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 #906 +/- ##
==========================================
- Coverage 96.71% 96.71% -0.01%
==========================================
Files 108 108
Lines 14641 14637 -4
Branches 5298 5297 -1
==========================================
- Hits 14160 14156 -4
Misses 102 102
Partials 379 379 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
gittensory · advisory review Reviewed 4 changed file(s) — two independent AI reviewers. Changed files: Suggested action: 🛠️ Request changes. (reviewers split: merge / request changes) Address the suggestions below before merging. Reviewer A · Suggestions
Worth double-checking
Reviewer B · Suggestions
Worth double-checking
|
…ly behavior (#8019) (#8034) loadOrComputeBurdenForecastResponse only ever returns a stored snapshot or null — the inline compute fallback was removed in #906 (moved to the background buildBurdenForecasts job) but the name, the unreachable 'computed' source type variant, and the docs were left behind. Rename to loadCachedBurdenForecastResponse across all call sites, drop the dead 'computed' variant from BurdenForecastResponse.source (the code only ever sets 'snapshot'), and document the real snapshot-or-null behavior.
Motivation
Description
loadOrComputeBurdenForecastResponseto only return persisted snapshot envelopes and returnnullon cache miss instead of computing a forecast from issue/PR listers; this removes the request-time calls to broad listers. (src/services/burden-forecast.ts)gittensory_get_burden_forecastdescription and summary to reflect cached-only behavior and to return anot_foundpayload when no snapshot exists. (src/mcp/server.ts)test/unit/burden-forecast.test.ts,test/integration/api.test.ts)Testing
npm run test -- test/unit/burden-forecast.test.ts test/integration/api.test.ts, and all tests passed.npm run typecheck, which succeeded with no errors.git diff --check, which reported no issues.Codex Task