Skip to content

treat raw import marker as a "poisoned state"#1111

Open
SmaGMan wants to merge 14 commits into
masterfrom
feature/poisoned-raw-import-marker
Open

treat raw import marker as a "poisoned state"#1111
SmaGMan wants to merge 14 commits into
masterfrom
feature/poisoned-raw-import-marker

Conversation

@SmaGMan

@SmaGMan SmaGMan commented Jul 1, 2026

Copy link
Copy Markdown
Member

Merge after #1100


Set RawImportInProgress marker on zerostate or persistent state import start and remove when import fully finished. If import fail the marker will persist. Node start will fail if RawImportInProgress marker exist and will require re-sync.

Pull Request Checklist

NODE CONFIGURATION MODEL CHANGES

[None]

BLOCKCHAIN CONFIGURATION MODEL CHANGES

[None]


COMPATIBILITY

Fully compatible

SPECIAL DEPLOYMENT ACTIONS

[Not Required]


PERFORMANCE IMPACT

[No impact expected]


TESTS

Unit Tests

Covered by:

  • storage_open_rejects_existing_raw_import_marker
  • finished_raw_import_marker_allows_storage_open

Network Tests

[No coverage]

Manual Tests

Manual tests used:

  • start network
  • deploy 1kk accounts
  • force persistent state using HACK
  • stop one node and drop its
  • start node, wait when persistent import starts, then stop node
  • try to start node - it should fail

@SmaGMan SmaGMan requested review from 0xdeafbeef, Mododo and Rexagon July 1, 2026 10:11
@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown

🧪 Network Tests

To run network tests for this PR, use:

gh workflow run network-tests.yml -f pr_number=1111

Available test options:

  • Run all tests: gh workflow run network-tests.yml -f pr_number=1111
  • Run specific test: gh workflow run network-tests.yml -f pr_number=1111 -f test_selection=ping-pong

Test types: destroyable, ping-pong, one-to-many-internal-messages, fq-deploy, nft-index, persistent-sync

Results will be posted as workflow runs in the Actions tab.

@SmaGMan SmaGMan linked an issue Jul 1, 2026 that may be closed by this pull request
@codecov

codecov Bot commented Jul 1, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 73.16384% with 475 lines in your changes missing coverage. Please review.
✅ Project coverage is 60.03%. Comparing base (5e6b378) to head (8fc62a2).

Files with missing lines Patch % Lines
core/src/block_strider/starter/cold_boot.rs 0.00% 169 Missing ⚠️
core/src/storage/persistent_state/tests.rs 76.16% 16 Missing and 66 partials ⚠️
core/src/storage/persistent_state/mod.rs 67.12% 30 Missing and 18 partials ⚠️
core/src/storage/shard_state/mod.rs 73.64% 20 Missing and 14 partials ⚠️
core/src/storage/shard_state/store_state_raw.rs 80.57% 15 Missing and 19 partials ⚠️
core/src/storage/shard_state/cell_storage/raw.rs 90.31% 16 Missing and 15 partials ⚠️
...src/storage/persistent_state/shard_state/writer.rs 89.47% 11 Missing and 11 partials ⚠️
core/src/block_strider/starter/starter_client.rs 0.00% 13 Missing ⚠️
...src/storage/persistent_state/shard_state/reader.rs 72.41% 3 Missing and 5 partials ⚠️
core/src/blockchain_rpc/service.rs 84.44% 7 Missing ⚠️
... and 7 more
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1111      +/-   ##
==========================================
+ Coverage   59.89%   60.03%   +0.14%     
==========================================
  Files         484      485       +1     
  Lines       82715    84275    +1560     
  Branches    82715    84275    +1560     
==========================================
+ Hits        49541    50597    +1056     
- Misses      30826    31204     +378     
- Partials     2348     2474     +126     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use RawImportInProgress as a "poisoned" marker and require re-sync

2 participants