Refactor chain- and epoch-specific state manager tests into a dedicated file
I maintainer di solito rispondono entro 1 giorno
@akaladarshi ci sta già lavorando.
Dal 7/10/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
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
- Lingua principale
- Rust
- Stelle
- 700
- Fork
- 201
- Merge medio
- 1g 17h
- PR unite (30g)
- 65
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di ChainSafe/forest
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 20/100
I maintainer di solito rispondono entro 1 giorno
-
[automated] `cargo deny check advisories` failure @ 20/11/26 00:01Forse già presa @akaladarshi l’ha presa oggi. ApertaBug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 15/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 58/100
I maintainer di solito rispondono entro 1 giorno
-
FIP-0119 implementation in `builtin-actors`Forse già presa @LesnyRumcajs l’ha presa 2 giorni fa. ApertaType: Task
ChainSafe/forest#7886 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di ChainSafe/forest
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
benchmark-review
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
[App Request] ZaptideApertaapp-request
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
flatpark/flatpark#1423 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
I maintainer di solito rispondono entro 1 giorno
-
area:image documentation good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno