Skip to content

Conversation

@nishu-builder
Copy link
Contributor

@nishu-builder nishu-builder commented Jan 17, 2026

Summary

  • Created models/eval_task.py with EvalTask and TaskAttempt SQLModel models
  • Created queries/eval_task_queries.py with SQLAlchemy query functions
  • Updated routes/eval_task_routes.py to use the new query module
  • Removed eval_task methods and classes from MettaRepo (TaskStatus, FinishedTaskStatus, TaskStatusUpdate, EvalTaskRow, TaskAttemptRow, and all eval_task methods)

Uses text() queries for complex view-based queries (eval_tasks_view) since the view-based approach is more maintainable than pure SQLAlchemy for this schema.

Part of stack to migrate app_backend from raw SQL to SQLAlchemy.

Copy link
Contributor Author

nishu-builder commented Jan 17, 2026

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • add-to-merge-queue - adds this PR to the back of the merge queue
  • add-to-merge-queue-as-hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@datadog-official

This comment has been minimized.

@blacksmith-sh
Copy link

blacksmith-sh bot commented Jan 17, 2026

Found 2 test failures on Blacksmith runners:

Failures

Test View Logs
EditionsCodegenTests/third_party/protobuf/editions/golden/simple_proto3.pb.cc View Logs
EditionsCodegenTests/third_party/protobuf/editions/golden/simple_proto3.pb.h View Logs

Fix in Cursor

@nishu-builder nishu-builder force-pushed the nishad/sqlalchemy-eval-tasks branch from 83232de to d5f019b Compare January 19, 2026 04:49
@nishu-builder nishu-builder force-pushed the nishad/sqlalchemy-episodes branch from 85cbe40 to 0efd8de Compare January 19, 2026 04:49
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.

2 participants