From 4a45c9e7143597444e2567df7dbbcca7b9916cd4 Mon Sep 17 00:00:00 2001 From: Xi Yan Date: Fri, 17 Jan 2025 23:11:29 -0800 Subject: [PATCH] revert run change --- .github/workflows/publish-to-docker.yml | 2 +- llama_stack/cli/stack/run.py | 9 ++------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/publish-to-docker.yml b/.github/workflows/publish-to-docker.yml index 60fc6edd4..05ead6e90 100644 --- a/.github/workflows/publish-to-docker.yml +++ b/.github/workflows/publish-to-docker.yml @@ -1,7 +1,7 @@ name: Docker Build and Publish on: - push: + # push: workflow_dispatch: inputs: version: diff --git a/llama_stack/cli/stack/run.py b/llama_stack/cli/stack/run.py index 966989175..e1e02d10c 100644 --- a/llama_stack/cli/stack/run.py +++ b/llama_stack/cli/stack/run.py @@ -6,7 +6,6 @@ import argparse import os -import sys from pathlib import Path from llama_stack.cli.subcommand import Subcommand @@ -71,7 +70,7 @@ class StackRun(Subcommand): BUILDS_BASE_DIR, DISTRIBS_BASE_DIR, ) - from llama_stack.distribution.utils.exec import run_command, run_with_pty + from llama_stack.distribution.utils.exec import run_with_pty if not args.config: self.parser.error("Must specify a config file to run") @@ -191,8 +190,4 @@ class StackRun(Subcommand): return run_args.extend(["--env", f"{key}={value}"]) - is_terminal = os.isatty(sys.stdout.fileno()) - if is_terminal: - run_with_pty(run_args) - else: - run_command(run_args) + run_with_pty(run_args)