Repository navigation
test(agent): fix the closing-note word-cut test that fails on main - #8329
Merged
Merged
Conversation
…ill cut Main's unit tests fail on rc31: a missing model now gets the model server's own full message in the closing note, so that note is no longer clipped and the test's 'Check t' guard matched the complete 'Check the'. The cut is now tested on a generic error that is still clipped, and the missing-model note is checked to be a whole sentence.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Main's unit tests are red on rc31 because of one test from #8276, not a product bug. A missing model now gets the model server's own full message in the closing note ("There is no model called … Check the name for a typo."), so that note is no longer clipped. The test's guard against a word cut off as "Check t" matched the complete "Check the". The word cut is now tested on a generic error that is still clipped, and the missing-model note is checked to be a whole sentence.
Test plan
python -m pytest tests/unit/agents/test_failed_turn_cause_clip.py: 8 passed (1 failed on main before)