Skip to content

fix(leaderboard): use upstream schema for fork PR validation#335

Merged
kami619 merged 1 commit intoambient-code:mainfrom
kami619:bugfix/leaderboard-use-upstream-schema
Mar 9, 2026
Merged

fix(leaderboard): use upstream schema for fork PR validation#335
kami619 merged 1 commit intoambient-code:mainfrom
kami619:bugfix/leaderboard-use-upstream-schema

Conversation

@kami619
Copy link
Collaborator

@kami619 kami619 commented Mar 5, 2026

When a user submits a leaderboard entry from a fork that hasn't been synced with upstream, the workflow was using the fork's outdated schema for validation. This caused valid submissions to fail with errors like "attributes_total: 25 was expected" even though PR #312 had already fixed the schema to allow 10-25 attributes.

This fix changes the workflow to:

  1. Checkout upstream main for validation tools and schema
  2. Fetch only the submission file from the PR branch
  3. Validate using upstream's agentready installation

This ensures validation always uses the latest schema while still validating the actual submitted file from the PR.

Fixes the validation failure on PR #332.
See: #312

When a user submits a leaderboard entry from a fork that hasn't been synced
with upstream, the workflow was using the fork's outdated schema for
validation. This caused valid submissions to fail with errors like
"attributes_total: 25 was expected" even though PR ambient-code#312 had already fixed
the schema to allow 10-25 attributes.

This fix changes the workflow to:
1. Checkout upstream main for validation tools and schema
2. Fetch only the submission file from the PR branch
3. Validate using upstream's agentready installation

This ensures validation always uses the latest schema while still validating
the actual submitted file from the PR.

Fixes the validation failure on PR ambient-code#332.
See: ambient-code#312

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@github-actions
Copy link
Contributor

github-actions bot commented Mar 5, 2026

📈 Test Coverage Report

Branch Coverage
This PR 66.8%
Main 66.8%
Diff ✅ +0%

Coverage calculated from unit tests only

@kami619 kami619 merged commit 5939b59 into ambient-code:main Mar 9, 2026
10 checks passed
@kami619 kami619 deleted the bugfix/leaderboard-use-upstream-schema branch March 9, 2026 18:24
github-actions bot pushed a commit that referenced this pull request Mar 9, 2026
## [2.30.1](v2.30.0...v2.30.1) (2026-03-09)

### Bug Fixes

* **leaderboard:** use upstream schema for fork PR validation ([#335](#335)) ([5939b59](5939b59)), closes [#312](#312)
@github-actions
Copy link
Contributor

github-actions bot commented Mar 9, 2026

🎉 This PR is included in version 2.30.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant