fix(queue): cap linked issue regate fanout#3699
Conversation
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-06 05:02:35 UTC
⏸️ Suggested Action - Manual Review
Review summary Nits — 4 non-blocking
Concerns raised — review before merging
Review context
Contributor next steps
Signal definitions
🟩 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.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3699 +/- ##
=======================================
Coverage 93.33% 93.33%
=======================================
Files 315 315
Lines 32080 32080
Branches 11762 11762
=======================================
Hits 29942 29942
Misses 1507 1507
Partials 631 631
🚀 New features to boost your workflow:
|
Motivation
agent-regate-prjobs and exhausting queue/GitHub/AI budgets.Description
.slice(0, SWEEP_MAX_PRS)inmaybeReReviewOnLinkedIssueChange(src/queue/processors.ts).test/unit/queue.test.tsto seed more linked PRs than the sweep budget and assert only the capped leading batch is enqueued with the expected staggered delays.Testing
npx vitest run test/unit/queue.test.ts -t "issue-side linked PR wake|issue label change wakes|issue label change coalesces", which passed.npm run typecheck, which passed without errors.git diff --check, which produced no findings.npm run test:coverage -- test/unit/queue.test.ts -t "issue-side linked PR wake caps linked PR fanout to the sweep budget"; the targeted test passed but the global coverage threshold check failed (project-wide coverage is intentionally outside the scope of this focused change in this environment).npm audit --audit-level=moderate, but the registry returned403 Forbiddenso the audit could not complete in this environment.Codex Task