Skip to content

scripts/run_examples.sh matches zero files and exits successfully #484

Description

@ambiorix2099

File: scripts/run_examples.sh

Symptom: The script reports success having run zero examples.

Cause: It globs "$EXAMPLES_DIR"/[0-9]*.py where EXAMPLES_DIR is examples/. No numbered .py files live there — all 153 are in examples/agents/. Its own HITL_STDIN map names 02_tools and 09_human_in_the_loop, which resolve only under examples/agents/, so it predates the reorganisation.

Fix: Point the glob at examples/agents/ (and decide whether to recurse into its subdirectories, which hold ~148 more examples).

Verify: The script collects a non-zero example count and fails when an example fails.

Related: examples/agents/run_all_examples.py has the narrower version of this — discover() is HERE.glob("*.py"), so it never sees quickstart/, langgraph/, adk/, openai/, claude_agent_sdk/ or blog-and-video-examples/.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions