Skip to content

Fix gc command and reorg pruner docs#3841

Merged
jolestar merged 9 commits into
mainfrom
gc_pruner_docs
Dec 3, 2025
Merged

Fix gc command and reorg pruner docs#3841
jolestar merged 9 commits into
mainfrom
gc_pruner_docs

Conversation

@jolestar

@jolestar jolestar commented Dec 3, 2025

Copy link
Copy Markdown
Contributor

Summary

Summary about this PR

  • Closes #issue

Copilot AI review requested due to automatic review settings December 3, 2025 03:26
@vercel

vercel Bot commented Dec 3, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
rooch-portal-v2.1 Ready Ready Preview Comment Dec 3, 2025 5:06am
test-portal Ready Ready Preview Comment Dec 3, 2025 5:06am
1 Skipped Deployment
Project Deployment Preview Comments Updated (UTC)
rooch Ignored Ignored Preview Dec 3, 2025 5:06am

@github-actions

github-actions Bot commented Dec 3, 2025

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR transitions from runtime pruning to an offline GC approach and consolidates pruner documentation. The changes remove the complex runtime pruner daemon, simplify the marker strategy to use only Bloom filters, and provide clearer operational guidance.

Key changes:

  • Removed runtime pruner infrastructure and replaced with offline GC command
  • Unified marker strategy to BloomFilterMarker (removed InMemoryMarker and PersistentMarker)
  • Consolidated and reorganized documentation into offline_gc_guide.md and updated pruner_guide.md
  • Auto-detection of protected_roots_count based on network type
  • Improved disk space detection for nested mount points in recycle bin

Reviewed changes

Copilot reviewed 22 out of 22 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
docs/dev-guide/statedb_prune.md Removed detailed design proposal (archived)
docs/dev-guide/pruner_guide.md Rewritten to document archived runtime pruner with design rationale
docs/dev-guide/pruner_e2e_testing_guide.md Removed E2E testing guide (consolidated elsewhere)
docs/dev-guide/offline_gc_guide.md New comprehensive guide for stop-the-world Mark–Sweep GC
moveos/moveos-types/src/prune.rs Removed unused pruner types module
moveos/moveos-types/src/lib.rs Removed prune module export
crates/rooch/src/commands/db/commands/gc.rs Added auto-detection for protected roots count based on network
crates/rooch-pruner/src/marker.rs Simplified to single BloomFilterMarker strategy with optimal sizing
crates/rooch-pruner/src/config.rs Removed marker strategy options and unused parameters
crates/rooch-pruner/src/garbage_collector.rs Updated to use unified Bloom filter marker with improved node count estimation
crates/rooch-pruner/src/recycle_bin.rs Improved disk detection to handle nested mount points correctly
crates/rooch-pruner/tests/* Removed obsolete test files for deleted marker strategies
.dockerignore Added comprehensive Docker ignore patterns

Comment thread .dockerignore
Comment thread crates/rooch-pruner/src/recycle_bin.rs Outdated
@github-actions

github-actions Bot commented Dec 3, 2025

Copy link
Copy Markdown

Docker images for this PR are available:

  • ghcr.io/rooch-network/rooch:pr-3841
  • ghcr.io/rooch-network/rooch:pr-3841-17496b5
  • ghcr.io/rooch-network/rooch:pr-3841_debug
  • ghcr.io/rooch-network/rooch:pr-3841-17496b5_debug

Pull commands:

  • docker pull ghcr.io/rooch-network/rooch:pr-3841
  • docker pull ghcr.io/rooch-network/rooch:pr-3841-17496b5
  • docker pull ghcr.io/rooch-network/rooch:pr-3841_debug
  • docker pull ghcr.io/rooch-network/rooch:pr-3841-17496b5_debug

@jolestar jolestar merged commit c459c1f into main Dec 3, 2025
16 of 17 checks passed
@jolestar jolestar deleted the gc_pruner_docs branch December 3, 2025 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants