llama-stack-mirror/.github/workflows
Sébastien Han 24fd06879e
refactor: simplify command execution and remove PTY handling (#1641)
# What does this PR do?

A PTY is unnecessary for interactive mode since `subprocess.run()`
already inherits the calling terminal’s stdin, stdout, and stderr,
allowing natural interaction. Using a PTY can introduce unwanted side
effects like buffering issues and inconsistent signal handling. Standard
input/output is sufficient for most interactive programs.

This commit simplifies the command execution by:

1. Removing PTY-based execution in favor of direct subprocess handling
2. Consolidating command execution into a single run_command function
3. Improving error handling with specific subprocess error types
4. Adding proper type hints and documentation
5. Maintaining Ctrl+C handling for graceful interruption

## Test Plan

```
llama stack run
```

Signed-off-by: Sébastien Han <seb@redhat.com>
2025-03-17 15:03:14 -07:00
..
gha_workflow_llama_stack_tests.yml build(deps): bump thollander/actions-comment-pull-request from 2 to 3 (#1485) 2025-03-07 17:31:53 -05:00
integration-tests.yml refactor: simplify command execution and remove PTY handling (#1641) 2025-03-17 15:03:14 -07:00
pre-commit.yml build: update uv lock to sync package versions (#1026) 2025-02-10 11:42:30 -05:00
providers-build.yml refactor: simplify command execution and remove PTY handling (#1641) 2025-03-17 15:03:14 -07:00
semantic-pr.yml ci: Add semantic PR title check (#979) 2025-02-06 12:22:34 -08:00
stale_bot.yml ci: add GitHub Action to close stale issues and PRs (#1613) 2025-03-13 12:09:04 -07:00
tests.yml test: Split inference tests to text and vision (#1008) 2025-02-07 09:35:49 -08:00
unit-tests.yml chore: Add ./scripts/unit-tests.sh (#1515) 2025-03-13 20:25:15 -07:00
update-readthedocs.yml fix: make sure readthedocs is triggered if pyproject.toml is updated 2025-03-08 23:05:10 -08:00