Skip to content

test(tts): fix stale xAI fake_post doubles broken by stream=True (red on main) - #73612

Merged
teknium1 merged 1 commit into
mainfrom
fix/tts-xai-test-fakes-stream-kwarg
Jul 28, 2026
Merged

test(tts): fix stale xAI fake_post doubles broken by stream=True (red on main)#73612
teknium1 merged 1 commit into
mainfrom
fix/tts-xai-test-fakes-stream-kwarg

Conversation

@teknium1

Copy link
Copy Markdown
Contributor

Summary

Repairs 4 tests in tests/tools/test_tts_xai_speech_tags.py that are red on current main: commit 60b841b ("fix(tts): bound upstream response bodies") switched the xAI TTS request to requests.post(..., stream=True), but four fake_post doubles in this file still had the old 4-arg signature, so they crash with TypeError: unexpected keyword argument 'stream' on every run — failing CI slice 5/8 for unrelated PRs (first seen on docs-only #73571).

Changes

  • tests/tools/test_tts_xai_speech_tags.py: add stream=False to the 4 stale fake_post signatures (the other 10 fakes in the file were already updated)

Validation

Before After
test_tts_xai_speech_tags.py on main 26 pass / 4 fail 30 pass / 0 fail

Infographic

stale TTS fakes fix

60b841b switched the xAI TTS request to requests.post(..., stream=True)
but left four fake_post doubles on the old 4-arg signature — TypeError on
every run, red CI slice 5/8 for unrelated PRs. Align them with the ten
already-updated fakes in the same file.
@alt-glitch alt-glitch added type/test Test coverage or test infrastructure P2 Medium — degraded but workaround exists tool/tts Text-to-speech and transcription provider/xai xAI (Grok) duplicate This issue or pull request already exists comp/tools Tool registry, model_tools, toolsets labels Jul 28, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

This was generated by AI during triage.

Duplicate of #73594, the earliest open PR fixing the same stale xAI TTS fake-post fixtures. Please consolidate on one implementation.

@github-actions

github-actions Bot commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

૮ >ﻌ< ა ci review

ran on 2b4d5ad

ℹ️ Info

Desktop E2E visual evidence · View test artifacts · View job

1 visual diff.

inline evidence upload failed.

Failed to upload diff-665a0833239e-onboarding-overlay-diff.png with gh image (exit code 1): Error uploading /home/runner/work/_temp/e2e-evidence/diff-665a0833239e-onboarding-overlay-diff.png: step 0 (get upload token): uploadToken not found on repo page — do you have write access to NousResearch/hermes-agent? (or, if NousResearch enforces SAML SSO, authorize at https://github.com/orgs/NousResearch/sso)

@teknium1
teknium1 merged commit 713982a into main Jul 28, 2026
78 of 81 checks passed
@teknium1
teknium1 deleted the fix/tts-xai-test-fakes-stream-kwarg branch July 28, 2026 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/tools Tool registry, model_tools, toolsets duplicate This issue or pull request already exists P2 Medium — degraded but workaround exists provider/xai xAI (Grok) tool/tts Text-to-speech and transcription type/test Test coverage or test infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants