8000 Merge main into v3 (#470 BrowserDb regression tests) by adityamukho · Pull Request #471 · project-minigraf/minigraf · GitHub
[go: up one dir, main page]

Skip to content

Merge main into v3 (#470 BrowserDb regression tests) - #471

Merged
adityamukho merged 2 commits into
v3from
merge/main-into-v3-2026-10-07
Oct 7, 2026
Merged

adityamukho merged 2 commits into
v3from
merge/main-into-v3-2026-10-07

Conversation

@adityamukho
Copy link
Copy Markdown
Collaborator

Merges main (596bb59, #470) into v3.

v3 already has #470's fix (take_dirty_pages) and the wasm32 test-build repairs from #468/#469. The conflicts in src/browser/mod.rs, src/storage/persistent_facts.rs and docs/TEST_COVERAGE.md resolve to v3. I dropped main's duplicate helper and its duplicate CHANGELOG ### Fixed entry; v3's #469 entry already covers it.

Net change to v3: main's two regression tests (take_dirty_pages_returns_written_pages, unreadable_dirty_page_is_an_error_not_skipped), the test-only BrowserBufferBackend::mark_dirty_for_test, and the browser test count in TEST_COVERAGE, now 25.

Checks: browser tests in headless Firefox pass 25/25, cargo fmt --check is clean, and clippy -D warnings has 0 findings on native, wasm32 browser and WASI. Native tests ran in the pre-push hook.

Merge with a merge commit, not a squash.

🤖 Generated with Claude Code

https://claude.ai/code/session_015GgLEs8YozJjYhwPEYgTUn

adityamukho and others added 2 commits October 7, 2026 13:02
…the IndexedDB flush (#470)

checkpoint(), importGraph() and every write collected dirty pages with
read_page_raw(id).ok() in a filter_map, so a page that failed to read
was silently left out of the flush to IndexedDB while the call reported
success. A shared take_dirty_pages helper (the same one v3 has since
#469) now returns the read error.

No current path leaves a dirty id without a page (ids enter the dirty
set only after the page is stored), so this is defensive rather than a
fix for observed loss.

The browser unit tests did not compile on wasm32 (a duplicate
page_cache_capacity from #341/#342, and dir_sync tests using tempfile);
both are fixed so the two new regression tests run.


Claude-Session: https://claude.ai/code/session_015GgLEs8YozJjYhwPEYgTUn

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Conflicts in src/browser/mod.rs, src/storage/persistent_facts.rs and
docs/TEST_COVERAGE.md resolved to v3: v3 already has the same
take_dirty_pages fix and wasm32 test-build repairs (#468, #469), so the
duplicate helper and the duplicate CHANGELOG Fixed entry from main are
dropped. Kept from main: the two regression tests and
BrowserBufferBackend::mark_dirty_for_test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015GgLEs8YozJjYhwPEYgTUn
@codecov
codecov Bot commented Oct 7, 2026
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@adityamukho
adityamukho merged commit 57a9cc4 into v3 Oct 7, 2026
24 checks passed
@adityamukho
adityamukho deleted the merge/main-into-v3-2026-10-07 branch October 7, 2026 08:11
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.

1 participant

0