8000 test(golden): add v7 golden files written by 2.0.12 (#936) by adityamukho · Pull Request #952 · project-minigraf/minigraf · GitHub
[go: up one dir, main page]

Skip to content

test(golden): add v7 golden files written by 2.0.12 (#936) - #952

Merged
adityamukho merged 1 commit into
v3from
test/936-golden-v2012
Nov 30, 2026
Merged

adityamukho merged 1 commit into
v3from
test/936-golden-v2012

Conversation

@adityamukho
Copy link
Copy Markdown
Collaborator

Closes #936.

The v7 golden files were all written by 2.0.3. This adds files written by 2.0.12, the release people will upgrade from.

Generator. tests/golden/gen/v7_2_0_12/ is a separate recipe (pins minigraf = "=2.0.12", with its own lockfile and excluded from the workspace). The 2.0.3 generator and its files are unchanged. It writes five fixtures with manifests:

Checks. golden_corpus_test now calls verify() in every phase a 8000 nd also reopens the migrated copy read-only. A new browser test (src/browser/golden_tests.rs) seeds the 2.0.12 basic and multi-value images into IndexedDB, opens them with BrowserDb (v7 → v8 migration), checks the manifest rows and verify(), confirms a v8 meta page persisted, then reopens. Native test count is unchanged (the two corpus tests cover all 18 manifests); there is one more browser test in each inventory.

Upgrade smoke (one-off, not committed). On a bench machine: a database built and used by 2.0.12, left with an uncheckpointed WAL, then opened by this tree.

PASS: v2.0.12 pending-WAL -> v3 read_only=true, exact rows, tx_count=4, verify clean
PASS: v2.0.12 pending-WAL -> v3 read_only=false, exact rows, tx_count=4, verify clean
PASS: v8 reopened read-write and read-only; original v7 read-only bytes unchanged

Local: cargo test --test golden_corpus_test passed (2 tests). The browser test was not run locally; it runs in CI (wasm.yml).

🤖 Generated with Claude Code

https://claude.ai/code/session_01H2a7QngaFzuCVt5umd1qoh

Five fixtures from the published 2.0.12 writer (basic, pending WAL,
stale WAL, multi-value, append after torn-tail recovery), verify() in
every corpus phase, a read-only reopen of the migrated copy, and a
browser IndexedDB v7 -> v8 migration and reopen test.

Closes #936.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01H2a7QngaFzuCVt5umd1qoh
@codecov
codecov Bot commented Nov 30, 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 86ea674 into v3 Nov 30, 2026
28 checks passed
@adityamukho
adityamukho deleted the test/936-golden-v2012 branch November 30, 2026 08:48
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