Skip to content

ci(high/easy): enforce committed snapshot health - #584

Closed
umpireboulianne-design wants to merge 0 commit into
Sub-Rosa-Issue:mainfrom
umpireboulianne-design:fix/issue-521
Closed

umpireboulianne-design wants to merge 0 commit into
Sub-Rosa-Issue:mainfrom
umpireboulianne-design:fix/issue-521

Conversation

@umpireboulianne-design

Copy link
Copy Markdown

Summary

Enforces snapshot:check (scripts/check-snapshots.mjs) and its unit test suite (snapshot:test / scripts/check-snapshots.test.mjs) in CI so missing or corrupted contract test snapshots, contract event snapshots, or stale dashboard evidence fixtures fail CI.

Fixes #521
Closes #521

Changes

  • scripts/check-snapshots.mjs: Export checkSnapshots and REQUIRED_CATEGORIES, verify JSON validity across committed contract snapshots (contracts/round/test_snapshots/test/*.json), and verify committed contract event (packages/round-bindings/fixtures/event-snapshot.json) and dashboard (apps/web/src/dashboard/fixture.ts) evidence health.
  • scripts/check-snapshots.test.mjs: Add unit tests covering valid snapshots, missing required categories, corrupted snapshot JSON, and CI script wiring.
  • package.json: Add "snapshot:test": "node --test scripts/check-snapshots.test.mjs" and wire check-snapshots.test.mjs and check-snapshots.mjs into the CI check suite.
  • docs/CI.md: Document the committed snapshot health check and local commands (pnpm snapshot:test, pnpm snapshot:check).

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.

ci(high/easy): enforce committed snapshot health

1 participant