Skip to content

test(agent): fix the closing-note word-cut test that fails on main - #8329

Merged
kovtcharov-amd merged 1 commit into
amd:mainfrom
kovtcharov:fix/closing-note-clip-test
Nov 16, 2026
Merged

kovtcharov-amd merged 1 commit into
amd:mainfrom
kovtcharov:fix/closing-note-clip-test

Conversation

@kovtcharov

Copy link
Copy Markdown
Contributor

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)
  • Unit Tests (Linux, py3.12) green on this PR

…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.
@kovtcharov-amd
kovtcharov-amd added this pull request to the merge queue Nov 16, 2026
Merged via the queue into amd:main with commit 535f5c4 Nov 16, 2026
12 checks passed
@kovtcharov-amd
kovtcharov-amd deleted the fix/closing-note-clip-test branch November 16, 2026 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants