Refactor chain- and epoch-specific state manager tests into a dedicated file
Maintainer thường phản hồi trong vòng 1 ngày
@akaladarshi đang làm issue này rồi.
Từ ngày 7/10/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Summary
Move chain- and epoch-specific tests out of src/state_manager/utils.rs into a dedicated test file or test module. This is a follow-up refactor to PR #7709. It does not change state manager or RPC behavior.
Rationale
src/state_manager/utils.rs contains state-computation helpers and tests for specific network epochs. A dedicated test file will separate these responsibilities and make the snapshot-based tests easier to find and maintain.
Required changes
- Move
cargo_test_reward_distribution_calibnet_4109134into a dedicated test file or test module. - Move the related chain- and epoch-specific replay and state-validation tests from
state_compute::testsinto the dedicated test organization. - Review the generated state-computation test inclusion and keep generated tests discoverable.
- Keep reusable snapshot download and state preparation helpers available to the moved tests.
- Preserve test names, assertions, Tokio runtime settings, and
#[fickle::fickle]annotations.
Affected areas
src/state_manager/utils.rs, particularlystate_compute::tests.- The new dedicated state manager test file or test module.
- Test module declarations and generated-test inclusion, as needed.
Acceptance criteria
- Chain- and epoch-specific tests no longer reside in
src/state_manager/utils.rs. - The moved tests remain discoverable and retain their existing coverage.
- Snapshot loading, state-root checks, reward accounting assertions, and cache assertions remain unchanged.
- Relevant tests pass under the existing test workflow.
- No production state manager or RPC behavior changes.
References
- PR: https://github.com/ChainSafe/forest/pull/7709
- Review thread: https://github.com/ChainSafe/forest/pull/7709#discussion_r4207895548
- Requested by: @akaladarshi
- Ngôn ngữ chính
- Rust
- Star
- 700
- Fork
- 201
- Merge trung bình
- 1 ngày 17 giờ
- Pull request đã merge (30 ngày)
- 65
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của ChainSafe/forest
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 20/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[automated] `cargo deny check advisories` failure @ 20/11/26 00:01Có thể đã có người làm @akaladarshi đã nhận hôm nay. Đang mởBug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 15/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 58/100
Maintainer thường phản hồi trong vòng 1 ngày
-
FIP-0119 implementation in `builtin-actors`Có thể đã có người làm @LesnyRumcajs đã nhận 2 ngày trước. Đang mởType: Task
ChainSafe/forest#7886 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của ChainSafe/forest
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
benchmark-review
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[App Request] ZaptideĐang mởapp-request
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
flatpark/flatpark#1423 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area:image documentation good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày