fix(review): enforce same-head self-close evasion - #3583
Conversation
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-05 17:57:47 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 #3583 +/- ##
=======================================
Coverage 93.11% 93.11%
=======================================
Files 305 305
Lines 31532 31533 +1
Branches 11509 11510 +1
=======================================
+ Hits 29361 29362 +1
Misses 1517 1517
Partials 654 654
🚀 New features to boost your workflow:
|
Motivation
Description
src/queue/processors.tsto allow the single stale reasonclosedwhenliveHeadShaequals the reviewedheadSha(case-insensitive), and to continue denying enforcement for any other stale result.test/unit/queue.test.ts.Testing
git diff --checkwhich succeeded locally.NO_COLOR=1 npx vitest run test/unit/queue.test.ts -t "self-close during an active review"and the modified tests passed.npm run test:cibut the run hit unrelated long-running / flaky unit-suite timeouts in existing queue/backfill tests and did not complete successfully.npm audit --audit-level=moderateand the registry audit endpoint returned403 Forbidden, so the audit step did not complete here.Codex Task