-
[OPIK-5219] [BE] Fix pass_rate query reading from wrong table (always returns 100%) - hotfix (#5805)
发布于
2026-03-24 12:19:03 +00:00 - [OPIK-5219] [BE] Fix pass_rate query to read from assertion_results instead of feedback_scores
The GET_PASS_RATE_AGGREGATION query in ExperimentAggregatesDAO was reading
from feedback_scores to determine run pass/fail, but assertion scores with
category_name="suite_assertion" are routed exclusively to the assertion_results
table by FeedbackScoreService. This caused every run to have no scores in
feedback_scores, defaulting to "passed" and producing 100% pass rate.Replaced feedback_scores_combined/feedback_scores_final CTEs with
assertion_results_final using the same ROW_NUMBER() deduplication pattern
as ExperimentDAO.java.Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com
- [OPIK-5219] [BE] Fix flaky test: use shared workspace for pass rate aggregation test
The test was creating a new workspace per run, but populateAggregations
silently returned empty when getExperimentData couldn't find the
experiment in the freshly-created workspace (ClickHouse timing).
Use the static shared workspace and createExperimentItemWithData helper
matching all other passing tests in this class.Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com
Co-authored-by: Claude Opus 4.6 noreply@anthropic.com
下载附件