Repository navigation
test: keep only user-facing behavior across the pipeline suite - #23
anthony-hermes[bot] wants to merge 3 commits into
Conversation
|
143ccc6: deleted That file was the same inception as the stub SDK test: the only implementation it ran was the fake. Its useful effect is preserved by the lane tests that use those modes, which now assert the outcome the lane owes (a bad answer means a rejected chunk), so a mode breaking still fails a real test. 193 tests to 181; |
Hermes PR ReviewReviewed commit: Review status: No actionable findings Executive summaryPass 2 of 3. The author's net change against base Both pass-1 findings are verified fixed at this head. Each restored test is an active guard: I re-ran both mutations in a disposable copy of the head tree and each one turns exactly the new test red. The coordinator's gate run exits 0 with 336 passed and 7 deselected; the full selection including the slow cases reports 343 passed. CI run FindingsNo actionable findings. I reviewed the net diff and its callers, re-ran the gate and both mutations, and checked the merge resolution for lost master content. This is not an approval; the merge decision is the human reviewer's. Previously reported findings
PR-001, Medium, verified. PR-002, Medium, verified. Verification
Implementation walkthroughA job starts in PR-001's restored test sits on the fit path. PR-002's restored test sits on the translation path. The deleted Changed files
Assumptions and risks
Recommended human review order
|
Brings origin/master (c732ff2) into the suite trim. The content conflicts in test_cues.py, test_prompt.py and test_speakers.py resolve to master's MAX_DIALOGUE_LINES refactor with the branch's trim kept, and the modify/delete on test_fakes.py keeps this branch's deletion because no remaining test imports it. Review pass 1 findings PR-001 and PR-002 come back as test_fit_takes_the_cue_edges_from_the_words_not_the_segment (FT5.4) and test_the_prompt_asks_for_one_json_object_keyed_by_the_segment_ids.
Resolved tests/pipeline/test_cues.py, test_prompt.py and test_speakers.py by taking master's copy for every pipeline test file. The suite trim lives in #23, so this branch carries no pipeline test change after the merge; its own diff is the ten onscreen files.
What
This branch began as the whole-suite trim: keep a test only when a user can observe a different outcome. Master has since landed that same trim (through #13 and #18), and this branch is now merged up to
c732ff2. What is left in the PR is the part master does not have:tests/pipeline/test_fakes.py, the tests of the test doubles themselves. No remaining test imports it;tests/fakes.pystays as the fixture library the lane tests use. A double's own modes are exercised where they are load-bearing, not in a file that asserts the double.test_fit_takes_the_cue_edges_from_the_words_not_the_segment(FT5.4): aSegmentending at 2800 ms whose last word ends at 2100 ms must still produce a cue edge at 2100.test_the_prompt_asks_for_one_json_object_keyed_by_the_segment_ids: the composed prompt still tells the model to answer with one JSON object keyed by the source ids, on synthetic profiles only, so shipped TOML wording can still change freely.origin/masteratc732ff2, resolving the content conflicts intest_cues.py,test_prompt.pyandtest_speakers.pyto master'sMAX_DIALOGUE_LINESrefactor with the trim kept, and the modify/delete ontest_fakes.pyto this branch's deletion.Diff against master: 3 files, 16 insertions, 140 deletions. No production code changed.
Evidence
make checkexit 0 atc17f23d: ruff format 47 files, ruff check clean, mypy clean on 47 source files, pytest 336 passed, 7 deselected (addoptsis-q -m 'not slow'; the 7 deselected cases need a real model or a real ffmpeg run).git merge-tree --write-tree origin/master HEADprints noCONFLICT.Mutation checks on a disposable copy of the head tree, one at a time and discarded afterwards:
build_draftstakingend_ms=segment.end_msfailstest_fit_takes_the_cue_edges_from_the_words_not_the_segmentwith(1240, 2800) == (1240, 2100).BASE_RULESfrom the prompt blocks failstest_the_prompt_asks_for_one_json_object_keyed_by_the_segment_idsonassert 'json' in prompt.