test(leaderboard): add shared compatibility fixtures - #40
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.jsonbytes 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, andcd app && dart test --concurrency=1 test/export.Refs #32