Skip to content

test(leaderboard): add shared compatibility fixtures - #40

Merged
ElbertePlinio merged 2 commits into
mainfrom
test/leaderboard-compatibility-fixtures
Jul 21, 2026
Merged

test(leaderboard): add shared compatibility fixtures#40
ElbertePlinio merged 2 commits into
mainfrom
test/leaderboard-compatibility-fixtures

Conversation

@ElbertePlinio

Copy link
Copy Markdown
Member

PR 4 of issue #32 establishes one versioned leaderboard compatibility corpus consumed byte-for-byte by Dart exporter tests and the TypeScript artifact parser.

The corpus pins current schema v2 output, supported legacy v1 defaults, malformed and invalid artifacts, exact SHA-256 bytes, expected accept/reject outcomes, and shared normalized projections. The web parser now exposes a pure artifact contract, preserves corpus/task digest metadata, rejects unsupported contract shapes consistently, and runs its fixture suite in CI. The published web/static/data/leaderboard.v1.json bytes are unchanged.

Validated with cd app && dart test --concurrency=1 test/export/leaderboard_exporter_test.dart, bun run web:test, bun run web:check, bun run web:smoke, cd app && dart analyze, and cd app && dart test --concurrency=1 test/export.

Refs #32

@ElbertePlinio
ElbertePlinio merged commit 811a8f9 into main Jul 21, 2026
3 checks passed
@ElbertePlinio
ElbertePlinio deleted the test/leaderboard-compatibility-fixtures branch July 21, 2026 00:25
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