Skip to content

test(storage): drop redundant persistence-across-reopen tests#107

Merged
prajwolrg merged 1 commit into
mainfrom
fix-flaky-sled-lock
May 19, 2026
Merged

test(storage): drop redundant persistence-across-reopen tests#107
prajwolrg merged 1 commit into
mainfrom
fix-flaky-sled-lock

Conversation

@prajwolrg
Copy link
Copy Markdown
Collaborator

@prajwolrg prajwolrg commented May 19, 2026

Description

Two persistence_across_reopen unit tests in crates/storage (in export_entries.rs and mmr.rs) were flaky on Linux due to a sled 0.34 tempdir-lock race on reopen, causing failures in the CI. They duplicated coverage that sled itself provides for its KV layer, and were proxying for end-to-end behavior — runner state surviving stop/start — which felt more like a functional test for restart.

#105 was originally opened to fix the flake but the PR's scope shifted to other work (a flexitest that actually covers stop/start + runner-restart catch-up). This PR carries just the test deletions so they can land independently.

Type of Change

  • New or updated tests

Notes to Reviewers

Pure deletion.

Checklist

  • I have performed a self-review of my code.
  • My changes do not introduce new warnings.
  • New and existing tests pass with my changes.

Related Issues

These exercised sled's own file-lock and durability across reopen, which
sled already covers. They were also flaky on Linux due to a sled 0.34
race on tempdir cleanup — papered over in the test body with explicit
`drop` and `flush` calls.

End-to-end persistence is now covered at the level we actually care
about (runner reload across stop/start) by the new asm-runner restart
test, so these unit tests carry their flakiness for no incremental
coverage.
@prajwolrg prajwolrg requested a review from MdTeach May 19, 2026 00:45
@codecov
Copy link
Copy Markdown

codecov Bot commented May 19, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
crates/storage/src/export_entries.rs 98.52% <ø> (-0.14%) ⬇️
crates/storage/src/mmr.rs 100.00% <ø> (ø)

... and 6 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@prajwolrg prajwolrg marked this pull request as ready for review May 19, 2026 00:47
@github-actions
Copy link
Copy Markdown

Commit: ebe7675
SP1 Execution Results

program cycles gas
asm-stf 130,103,924 129,731,987
moho 5,191,380 5,499,715

@prajwolrg prajwolrg added this pull request to the merge queue May 19, 2026
Merged via the queue into main with commit 25f602b May 19, 2026
27 of 30 checks passed
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.

2 participants