Repository navigation
Conversation
7 tasks done
Owner
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📝 Description
Part of the #198–#205 dependency stack, based on
fix/issue-198-09244150(stacked on #198). Merge in issue order; after the parent merges, retarget this PR tomain.simulate/simulate.pyreuses the existing full replay loop for position-based pauses (deliberately not an ID threshold).tools/adaptors/sharded_replay.py: native-v2 multi-writer staging, original-object lifecycle tracking, negative left-boundary rows, transactional batch-ID/free_completed/stack-source backfill and final validation; new sharedcore/sharded_replay_service.pyproducer boundary.tools/adaptors/snapshot2db.pyanddatabase/snapshot_db.pyclose connections on constructor/commit failure while preserving the original single-DB data contract.Commits in this PR:
b9456c2feat(snapshot): finalize continuous native shard replay ([FEATURE] 持续倒序回放生成分片 DB,并最终化跨片 block 生命周期 #199)12 files changed, 1037 insertions(+), 26 deletions(-):
README.md
README_zh.md
docs/en/sharded-snapshotdb.md
docs/zh/sharded-snapshotdb.md
src/pt_snap_cli/core/sharded_replay_service.py
src/pt_snap_cli/snapshot/PROVENANCE.md
src/pt_snap_cli/snapshot/simulate/simulate.py
src/pt_snap_cli/snapshot/tools/adaptors/database/snapshot_db.py
src/pt_snap_cli/snapshot/tools/adaptors/sharded_replay.py
src/pt_snap_cli/snapshot/tools/adaptors/snapshot2db.py
tests/core/test_sharded_replay_service.py
tests/snapshot/test_sharded_replay.py
🔗 Related Issue
Refs #199 — deliberately no auto-closing keywords; the issue stays open because GUI/C++/installed-wheel acceptance is human-deferred.
Review comment: #199 (comment)
🧪 Testing
Replay, staging, backfill and finalization behavior exercised through the owning suites and the shared replay-service checks.
✅ Checklist
"No new warnings" keeps the pre-existing external pytest-asyncio startup deprecation and existing informational type warnings unchanged rather than hidden;
ResourceWarning/PytestUnraisableExceptionWarningremain errors.Snapshot Runtime Provenance
Snapshot provenance decision: updated
Provenance entries are append-only; this PR adds its entry to
src/pt_snap_cli/snapshot/PROVENANCE.md.📸 Screenshots (if applicable)
Not applicable — no user-interface or C++ changes in this PR.
📋 Additional Notes
main; this stacked PR runs CI once it is retargeted tomainafter [FEATURE] 定义分片 SnapshotDB 产物协议与 msinsight 兼容契约 #198 merges.Head SHA:
b9456c25755b1a9ec8bebb5df25f09baf9a71d2f; branchfix/issue-199-chain-67e26f4. All checks above were recorded locally on this exact head; the C++/GUI consumer and installed-wheel profile remain untested and unclaimed.