feat(queue): back per-PR transient locks with SubmissionLock DO (#8896) - #8924
Conversation
…bored#8896) Prefer the SubmissionLock Durable Object when bound for strongly consistent per-key mutexes; keep the cache-based path for self-host without DOs. Co-authored-by: Cursor <cursoragent@cursor.com>
|
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 #8924 +/- ##
=======================================
Coverage 93.84% 93.85%
=======================================
Files 803 804 +1
Lines 80084 80128 +44
Branches 24277 24293 +16
=======================================
+ Hits 75157 75201 +44
Misses 3562 3562
Partials 1365 1365
Flags with carried forward coverage won't be shown. Click here to find out more.
|
|
Tip ✅ LoopOver review result - approve/merge recommendedReview updated: 2026-07-26 13:56:05 UTC
Review summary Nits — 5 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.
|
Summary
SubmissionLockDurable Object (src/queue/submission-lock.ts) with wrangler bindingSUBMISSION_LOCKand migration tagv2-submission-lock.claimTransientLock/releaseTransientLockIfOwnerprefer the DO when bound; self-host without Durable Objects keeps the existing transient-cache mutex unchanged.Scope
type(scope): short summaryConventional Commit format, for examplefix(api): restore profile access checks.CONTRIBUTING.mdand does not reintroduce GitHub Pages, VitePress,site/, orCNAME.Closes #123) — a linked open issue is required for every contributor PR.Validation
git diff --checknpm run cf-typegen(committedworker-configuration.d.ts)npx vitest run test/unit/transient-locks.test.ts— 19 passed; CI-scoped simulation (npm run build:minernot required for src/**) with--changed=origin/main --coverage.all=false --coverage: 100% patch lines (44/44) and 100% patch branches (40/40) on changedsrc/queue/**hunksnpm run actionlintnpm run typechecknpm run test:coveragenpm run test:workersnpm audit --audit-level=moderateIf any required check was skipped, explain why:
Full
test:cileft for the opener before push; targeted unit coverage above covers the DO, preference wiring, and cache fallback deliverables.Notes for reviewers / gate
site/,CNAME,**/lovable/**, orCHANGELOG.md.SUBMISSION_LOCKunset → byte-identical cache lock behavior.v2-submission-lock(additive; RateLimiterv1-rate-limiterunchanged).