fix(miner): re-entry must transition the dequeued repo's run-state, and no-op on an empty queue - #9887
Conversation
…nd no-op on an empty queue attemptLoopReentry flipped run-state to "discovering" for the just-finished repoFullName, but the portfolio queue is global so the dequeued candidate is frequently a different repo — and it did so even when the queue was empty, parking a finished repo at "discovering" forever. Gate the transition on a non-null dequeue and write dequeued.repoFullName instead.
|
Warning ⏸️ LoopOver review result - manual review recommendedReview updated: 2026-07-29 19:04:04 UTC
Review summary Nits — 2 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.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #9887 +/- ##
==========================================
+ Coverage 79.28% 79.29% +0.01%
==========================================
Files 281 282 +1
Lines 58510 58545 +35
Branches 6777 6792 +15
==========================================
+ Hits 46387 46422 +35
Misses 11840 11840
Partials 283 283
Flags with carried forward coverage won't be shown. Click here to find out more.
|
fix(miner): re-entry must transition the dequeued repo's run-state, and no-op on an empty queue
attemptLoopReentry flipped run-state to "discovering" for the just-finished
repoFullName, but the portfolio queue is global so the dequeued candidate is
frequently a different repo — and it did so even when the queue was empty,
parking a finished repo at "discovering" forever. Gate the transition on a
non-null dequeue and write dequeued.repoFullName instead.
Closes #9683