docs(miner): document and load-test shared store concurrency model - #8002
docs(miner): document and load-test shared store concurrency model#8002andriypolanski wants to merge 1 commit into
Conversation
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
Caution 🛑 LoopOver review result - fixes requiredReview updated: 2026-07-22 06:59:15 UTC
Review summary Nits — 5 non-blocking
CI checks failing
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.
|
|
LoopOver is closing this pull request on the maintainer's behalf (CI is failing (validate, validate-tests (1), validate-tests (3), validate-tests (2))). 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. |
…JSONbored#4942) Keep only the three coverage-hitting split test files so scoped --coverage.all=false shards each produce non-empty lcov (closes the Co-authored-by: Cursor <cursoragent@cursor.com> JSONbored#8002 empty-shard failure mode).
Summary
SqliteDriverseam that model needed an explicit shared-service restatement (Re-evaluate the local concurrency model for a shared-service context #4942).Closes #4942
Change
packages/loopover-miner/docs/ams-shared-store-concurrency-model.md: what SQLiteBEGIN IMMEDIATE/busy_timeout, minercreateD1Adapter.batch, and ORBcreatePgAdapter(READ COMMITTED) guarantee — and what they do not (SERIALIZABLE, installation admission, two loops on one dir, miner-already-on-Postgres). Contrastsinstallation-concurrency-admission/mapWithConcurrency. Notes control-plane one-DB-per-tenant isolation.operations-runbook.mdandams-storage-abstraction-research.md.test/unit/miner-shared-store-concurrency.test.ts+claim-within-cap-child.mjs:claimIssueWithinCap(cap=1, 8 distinct issues → exactly one active row)UPDATE … SET n = n + 1viacreateD1Adapter.batch→ exact countPG_TEST_URL) for the same atomic increment viacreatePgAdapterValidation
git diff --checkclean.npx vitest run test/unit/miner-shared-store-concurrency.test.ts test/unit/miner-operations-runbook.test.ts— green (PG case skipped withoutPG_TEST_URL).src/**or minerlib/**executable changes; Codecov patch has no graded diff lines.UI Evidence
N/A — documentation + concurrency correctness tests only.