fix(selfhost): sweep reviews regardless of autonomy mode + registry soft-fail + idempotent migrations - #1562
Merged
Conversation
…oft-fail + idempotent migrations Three self-host reliability fixes: - SWEEP REGARDLESS OF MODE (#sweep-all-modes): the re-gate sweep now enumerates the GITTENSORY_REVIEW_REPOS allowlist UNION the registered repos and sweeps any review-active (allowlisted) repo, not only repos with acting autonomy — so ADVISORY/observe repos are re-reviewed and get fresh reviews on existing open PRs without a per-PR webhook. The AI review runs for advisory + block (only skipped when AI is off); the #1462 cache bounds the token cost. The action layer stays autonomy-gated, so observe repos never auto-merge/close. - REGISTRY SOFT-FAIL (#registry-soft-fail): the self-host consume wrapper swallows a failed periodic refresh-registry job (a degraded/unconfigured GITTENSOR_REGISTRY_URL otherwise retried→dead-lettered every cron tick, flooding the dead-letter alert). The next scheduled tick is the retry; the Worker path is untouched. - IDEMPOTENT MIGRATIONS (#migrate-drift): the runner tolerates a duplicate-column/already-exists migration (a renumbered file whose schema change a prior deploy already applied) instead of crash-looping the boot.
Contributor
|
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 #1562 +/- ##
=======================================
Coverage 95.42% 95.43%
=======================================
Files 202 202
Lines 21674 21685 +11
Branches 7833 7836 +3
=======================================
+ Hits 20683 20694 +11
Misses 416 416
Partials 575 575
🚀 New features to boost your workflow:
|
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.
Three self-host reliability fixes:
GITTENSORY_REVIEW_REPOSallowlist ∪ registered repos and sweeps any review-active (allowlisted) repo — not only acting-autonomy ones — so advisory/observe repos get fresh reviews on existing open PRs without a per-PR webhook. AI review runs for advisory + block (skipped only when off); the perf(review): cache the AI review by (repo, pr, head SHA) to skip redundant LLM calls #1462 cache bounds cost; the action layer stays autonomy-gated (observe never auto-merges/closes).refresh-registryjob (a degradedGITTENSOR_REGISTRY_URLotherwise retried→dead-lettered every cron tick → the Discord dead-letter spam). Worker path untouched.Full suite 4737 + 100% patch coverage on measured files.