Repository navigation
Open
0 / 10 of 1 issue completedOpen
0 / 10 of 1 issue completed
Copy link
Description
Context
Part of the Testing Infrastructure & Strategy Overhaul epic (item 6).
Objective
Improve the reliability and usefulness of qualitative tests by replacing brittle string-matching with LLM-as-judge semantic validators and expanding pytest-recording adoption for deterministic replay in CI.
Work
- Implement semantic assertions for qualitative tests (Proposal: Semantic assertions for qualitative test validation #692) — LLM-as-judge validators that assess output quality rather than exact string matches
- Qualitative tests already require an LLM, so the overhead of LLM-as-judge is minimal
- Expand
pytest-recordingadoption (currently one test) to record and replay real LLM responses, making qualitative tests deterministic in CI - Address known flaky tests caused by brittle assertions: test:
test_kvFlaky Due to Model Safety Refusal #398, Bug: Flaky test in langchain_messages.py - qualitative assertion too strict #384, test: loosen assertion in test_astream_incremental.py #628, test: react_using_mellea.py example fails intermittently — ReACT loop exceeds 10 iteration budget #684, test_generative_with_contextual_session fails intermittently #121 - Update contributor documentation on writing qualitative assertions
Notes
- This covers both
test/and example scripts - Proposal: Semantic assertions for qualitative test validation #692 (semantic assertions) is a sub-issue of this work item
- The flaky test issues (test:
test_kvFlaky Due to Model Safety Refusal #398, Bug: Flaky test in langchain_messages.py - qualitative assertion too strict #384, test: loosen assertion in test_astream_incremental.py #628, test: react_using_mellea.py example fails intermittently — ReACT loop exceeds 10 iteration budget #684, test_generative_with_contextual_session fails intermittently #121) are symptoms — semantic assertions and/or recording should resolve them
Sub-issues
Collapse Sub-issuesSub-issues
Loading 1 sub-issues
Activity