fix(evaluation): drop redundant duplicate_at_runtime flag so v2 runs work without manual DB patching - #1198
Conversation
…work without manual DB patching
|
Important Review skippedAuto reviews are limited based on label configuration. 🏷️ Required labels (at least one) (1)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (8)
💤 Files with no reviewable changes (2)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe change removes the runtime duplication metadata marker. S3-only datasets now use their stored duplication factor during fast evaluation. Langfuse-backed datasets reject duplication-factor overrides with ChangesDataset duplication contract
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Sequence Diagram(s)sequenceDiagram
participant DatasetUploadService
participant DatasetMetadata
participant FastEvaluationService
participant ObjectStore
DatasetUploadService->>DatasetMetadata: store duplication_factor without runtime marker
FastEvaluationService->>DatasetMetadata: read langfuse_dataset_id and duplication_factor
alt S3-only dataset
FastEvaluationService->>ObjectStore: load original rows
ObjectStore-->>FastEvaluationService: rows expanded by effective factor
else Langfuse-backed dataset
FastEvaluationService-->>FastEvaluationService: reject duplication_factor override with 422
end
Merge Risk: ⚪ Minimal · up to S3-only datasets now apply their stored duplication factor, while Langfuse-backed datasets reject duplication overrides. The updated behavior and metadata contract are covered without an outstanding merge-blocking risk. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ 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 |
duplicate_at_runtime flag so v2 runs work without manual DB patching
OpenAPI changes ⚪ No API surface changesNote This PR does not modify the API contract.
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
🎉 This PR is included in version 1.7.0-main.2 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Summary
Removed the
DATASET_META_DUPLICATE_AT_RUNTIME / duplicate_at_runtime flagcompletely, it was redundant withlangfuse_dataset_idIS NULL.rows ×duplication_factor(no flag needed).langfuse_dataset_id, override rejected only for Langfuse-backed (v1) datasets; S3-only datasets always work.Checklist
Before submitting a pull request, please ensure that you mark these task.
fastapi run --reload app/main.pyordocker compose upin the repository root and test.