feat(miner): route queue next through WIP-cap-aware claimer (#4850) - #5556
feat(miner): route queue next through WIP-cap-aware claimer (#4850)#5556RealDiligent wants to merge 4 commits into
Conversation
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
…d#4850) Wire queue next and claim-batch caps from .gittensory-miner.yml and env, so repeated queue next stops once global/per-repo WIP limits are reached. Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #5556 +/- ##
=======================================
Coverage 94.91% 94.92%
=======================================
Files 570 571 +1
Lines 45325 45356 +31
Branches 14675 14675
=======================================
+ Hits 43020 43052 +32
+ Misses 1571 1570 -1
Partials 734 734
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
…ored#4850) Co-authored-by: Cursor <cursoragent@cursor.com>
|
Caution 🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥 🛑 Gittensory review result - reject/close recommendedReview updated: 2026-07-13 05:13:36 UTC
🛑 Suggested Action - Reject/Close Review summary Blockers
Nits — 5 non-blocking
Why this is blocked
📋 Copy for AI agents — paste into your coding agent
Linked issue satisfactionAddressed Review context
Contributor next steps
Signal definitions
[BETA] Chat with GittensoryAsk Gittensory 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://gittensory.aethereal.dev/docs/gittensory-commands 🟩 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 Gittensory, a quiet PR intelligence layer for OSS maintainers.
|
|
Gittensory is closing this pull request on the maintainer's behalf (AI reviewers agree on a likely critical defect: packages/gittensory-miner/lib/portfolio-queue-caps.js:32-39 (`readEnvCaps`) + :52-53 (`resolvePortfolioQueueCaps`): setting only ONE env var (e.g. `GITTENSORY_MINER_GLOBAL_WIP_CAP=5` without `GITTENSORY_MINER_PER_REPO_WIP_CAP`) replaces `caps` wholesale with `envCaps`, and `normalizePortfolioCaps` defaults any missing field to `0` (see portfolio-queue-manager.js `normalizePortfolioCaps`), so the per-repo cap silently becomes 0 instead of falling back to the config-file/default value — this zeroes WIP capacity for every repo and claiming stops entirely, unlike the CLI-flag merge a few lines below which correctly does `cliCaps.perRepoWipCap ?? caps.perRepoWipCap`; the env path needs the same `??` merge against the prior `caps` value.). This is an automated maintenance action — to pursue this change, please open a new pull request with the issues resolved. Closed PRs may be analyzed later to improve review accuracy, but they are not automatically reopened or re-reviewed. |
Summary
queue nextthroughPortfolioQueueManager.claimNextBatch()with configurable WIP caps.resolvePortfolioQueueCaps()readingportfolioQueue.globalWipCap/perRepoWipCapfrom operator.gittensory-miner.yml, with env and CLI overrides.--jsonerror paths) and upstream--dry-runqueue flags.Closes #4850
Test plan
queue nextstops claiming once WIP cap is reachedMade with Cursor