Prevent stale running model evals#21
Conversation
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughThe PR hardens model eval execution by decoupling ChangesModel Eval Hardening
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 64d40b392c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| now := time.Now().Format(time.RFC3339) | ||
| status.Status = "error" | ||
| status.FinishedAt = now | ||
| status.UpdatedAt = now | ||
| status.CheckedAt = now |
There was a problem hiding this comment.
Preserve the original stale timeout time
When a stale running eval is read, this stamps CheckedAt/UpdatedAt with time.Now(), but loadModelEvals only normalizes in memory and does not write the converted record back. For any stale record left after a restart or aborted handler, every /evals refresh reassigns a fresh timestamp, so buildModelOpsData keeps sorting that old timeout above genuinely recent evals and the UI reports it as having just finished. Use a deterministic timeout time derived from StartedAt or persist the normalized status once.
Useful? React with 👍 / 👎.
Summary
Tests
Summary by CodeRabbit