chore: rename run.yaml to config.yaml

since we only have one config, lets call it config.yaml! this should be treated as the source of truth for starting a stack

change all file names, tests, etc.

Signed-off-by: Charlie Doern <cdoern@redhat.com>
This commit is contained in:
Charlie Doern 2025-11-25 12:56:57 -05:00
parent 4a3f9151e3
commit 0cd98c957e
64 changed files with 147 additions and 145 deletions

View file

@ -25,7 +25,7 @@ Here are the most important options:
- **`server:<config>`** - automatically start a server with the given config (e.g., `server:starter`). This provides one-step testing by auto-starting the server if the port is available, or reusing an existing server if already running.
- **`server:<config>:<port>`** - same as above but with a custom port (e.g., `server:starter:8322`)
- a URL which points to a Llama Stack distribution server
- a distribution name (e.g., `starter`) or a path to a `run.yaml` file
- a distribution name (e.g., `starter`) or a path to a `config.yaml` file
- a comma-separated list of api=provider pairs, e.g. `inference=ollama,safety=llama-guard,agents=meta-reference`. This is most useful for testing a single API surface.
- `--env`: set environment variables, e.g. --env KEY=value. this is a utility option to set environment variables required by various providers.

View file

@ -151,7 +151,7 @@ def pytest_addoption(parser):
"""
a 'pointer' to the stack. this can be either be:
(a) a template name like `starter`, or
(b) a path to a run.yaml file, or
(b) a path to a config.yaml file, or
(c) an adhoc config spec, e.g. `inference=fireworks,safety=llama-guard,agents=meta-reference`, or
(d) a server config like `server:ci-tests`, or
(e) a docker config like `docker:ci-tests` (builds and runs container)

View file

@ -17,7 +17,7 @@ from llama_stack.core.storage.datatypes import (
def test_starter_distribution_config_loads_and_resolves():
"""Integration: Actual starter config should parse and have correct storage structure."""
with open("llama_stack/distributions/starter/run.yaml") as f:
with open("llama_stack/distributions/starter/config.yaml") as f:
config_dict = yaml.safe_load(f)
config = StackConfig(**config_dict)
@ -47,7 +47,7 @@ def test_starter_distribution_config_loads_and_resolves():
def test_postgres_demo_distribution_config_loads():
"""Integration: Postgres demo should use Postgres backend for all stores."""
with open("llama_stack/distributions/postgres-demo/run.yaml") as f:
with open("llama_stack/distributions/postgres-demo/config.yaml") as f:
config_dict = yaml.safe_load(f)
config = StackConfig(**config_dict)