Conversation
Vibe-coded proof of concept — NOT production ready, putting up for discussion. When update-problems changes a leaderboard's task/eval, old run scores become stale. This adds: - task_version column on leaderboard + runs tables - Auto-bump task_version when update_leaderboard() detects task changes - Ranking queries filter by current task_version (old scores hidden) - POST /admin/backfill endpoint to re-run top N submissions from previous versions against the new eval Known gaps / TODOs for discussion: - No Discord slash command yet (API-only) - No backfill progress tracking (fire-and-forget via BackgroundSubmissionManager) - kernelboard frontend doesn't surface task_version info - popcorn-cli unaware of version changes - No tests - Needs actual deployment testing with a real eval change
- Add NOT EXISTS clause to get_top_submissions_for_backfill to skip users who already have a passing run at the current task_version. Without this, running backfill twice creates duplicate submissions. - Collapse the two near-identical UPDATE branches in update_leaderboard into a single query using CASE WHEN for the version bump.
…nd tests - Resolve merge conflicts in api/main.py (keep both backfill + export-hf endpoints) - Update backfill migration to depend on ban-user (latest main migration) - Add /admin backfill Discord slash command with progress tracking via interaction.edit_original_response() updates - Add 5 API tests for /admin/backfill endpoint (auth, validation, noop, candidates) - Add 7 DB tests for task versioning (version bumps, rankings filtering, backfill candidate discovery, exclusion of current version)
Coverage reportClick to see where and how coverage changed
This report was generated by python-coverage-comment-action |
||||||||||||||||||||||||||||||
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.
No description provided.