Skip to content

chore(examples): remove examples/old and stale links - #2917

Open
Nash0x7E2 wants to merge 1 commit into
mainfrom
chore/remove-old-examples
Open

Nash0x7E2 wants to merge 1 commit into
mainfrom
chore/remove-old-examples

Conversation

@Nash0x7E2

Copy link
Copy Markdown
Member

Why

examples/old/ held 15 legacy pre-folder examples (00_accelerated_example through 14_inbound_call_example) that have been superseded by examples/voice_agents/, examples/text_agents/, examples/video_agents/, and plugins/twilio. Removing the folder broke pytest collection in tests/test_mulaw_conversion.py (which dynamically loaded examples/old/03_phone_and_rag_example/utils.py) and left stale references in plugin READMEs, .env.example, and .pre-commit-config.yaml.

Changes

Location Before After
examples/old/ 15 legacy example directories Removed
tests/test_mulaw_conversion.py Dynamically imported examples/old/03_phone_and_rag_example/utils.py Removed; 16 kHz -> 8 kHz resampling check moved to TestMulawEncode.test_encode_resamples_non_8khz in plugins/twilio/tests/test_audio.py:387
plugins/stream/README.md:515 Linked to examples/old/13_outbound_call_example Links to examples/voice_agents/recruiter_voice and examples/voice_agents/restaurant_orders
plugins/stream/README.md:263 Broken link to removed examples/text_agents/docs_agent (29d257526) Links to examples/text_agents/travel_support_py
plugins/gemini/README.md:74 Referenced examples/old/02_golf_coach_example/golf_coach_example.py Keeps the two existing plugins/gemini/example/ scripts
.env.example:210-215 Comment referenced example 13 and example 14 Updated to reference examples/voice_agents/recruiter_voice and plugins/stream/tests/test_inbound.py, and added OUTBOUND_FROM=
.pre-commit-config.yaml:20 check-yaml excluded ^examples/.*/helm/templates/ (only used by 07_k8s_deploy_example) Obsolete exclude removed

Historical entries in CHANGELOG.md (:4566, :4588, :4605) are left unchanged.

Validation

  • uv run --no-sync pytest plugins/twilio/tests/ -m "not integration": 21 passed, including TestMulawEncode.test_encode_resamples_non_8khz (catches regressions where pcm_to_mulaw fails to resample non-8 kHz PCM down to 8 kHz before encoding).
  • uv run --no-sync ruff check . and ruff format --check .: passed.
  • uv run --no-sync dev.py check: ruff, pyproject.toml validation, mypy on vision_agents (129 files) and plugins (1231 files) all passed. tests/ collected with 0 errors (removing tests/test_mulaw_conversion.py fixed the FileNotFoundError during collection); 16 unrelated plugin test modules could not be collected locally on macOS due to a pre-existing scipy _spropack.cpython-313-darwin.so dlopen error (full plugin unit suite unverified locally; CI will run it once marked ready).
  • rg "examples/old" (excluding CHANGELOG.md): 0 matches.

- Remove the legacy examples/old/ directory
- Remove tests/test_mulaw_conversion.py and move 16kHz -> 8kHz resampling coverage into plugins/twilio/tests/test_audio.py
- Update stale example links in plugins/stream/README.md and plugins/gemini/README.md
- Update phone env var comments in .env.example and drop obsolete helm template exclude in .pre-commit-config.yaml
@getstream-metis

getstream-metis Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

🎉 Out of draft, Neevash! Want a second pair of eyes on this?

I'm Jeffery, Stream's review agent. I look for bugs, regressions, missing tests and slow paths, and I only post findings I've checked against the code.

  • Review this PR

Or comment /jeffery review. I'll stay quiet unless you ask.

@Nash0x7E2
Nash0x7E2 marked this pull request as ready for review December 2, 2026 21:23

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant