kill built_at field in run config

This commit is contained in:
Ashwin Bharambe 2024-11-17 20:42:11 -08:00
parent b1d119466e
commit fa1d29cfdc
15 changed files with 0 additions and 20 deletions

View file

@ -1,5 +1,4 @@
version: '2' version: '2'
built_at: '2024-11-01T17:40:45.325529'
image_name: local image_name: local
name: bedrock name: bedrock
docker_image: null docker_image: null

View file

@ -1,5 +1,4 @@
version: '2' version: '2'
built_at: '2024-10-08T17:40:45.325529'
image_name: local image_name: local
docker_image: null docker_image: null
conda_env: local conda_env: local

View file

@ -1,5 +1,4 @@
version: '2' version: '2'
built_at: '2024-10-08T17:40:45.325529'
image_name: local image_name: local
docker_image: null docker_image: null
conda_env: local conda_env: local

View file

@ -1,5 +1,4 @@
version: '2' version: '2'
built_at: '2024-10-08T17:40:45.325529'
image_name: local image_name: local
docker_image: null docker_image: null
conda_env: local conda_env: local

View file

@ -1,5 +1,4 @@
version: '2' version: '2'
built_at: '2024-10-08T17:40:45.325529'
image_name: local image_name: local
docker_image: null docker_image: null
conda_env: local conda_env: local

View file

@ -1,5 +1,4 @@
version: '2' version: '2'
built_at: '2024-10-08T17:40:45.325529'
image_name: local image_name: local
docker_image: null docker_image: null
conda_env: local conda_env: local

View file

@ -1,5 +1,4 @@
version: '2' version: '2'
built_at: '2024-10-08T17:40:45.325529'
image_name: local image_name: local
docker_image: null docker_image: null
conda_env: local conda_env: local

View file

@ -1,5 +1,4 @@
version: '2' version: '2'
built_at: 2024-11-17 19:33:00
image_name: ollama image_name: ollama
docker_image: null docker_image: null
conda_env: null conda_env: null

View file

@ -1,5 +1,4 @@
version: '2' version: '2'
built_at: 2024-11-17 19:33:00
image_name: remote-vllm image_name: remote-vllm
docker_image: llamastack/distribution-remote-vllm:test-0.0.52rc3 docker_image: llamastack/distribution-remote-vllm:test-0.0.52rc3
conda_env: null conda_env: null

View file

@ -1,5 +1,4 @@
version: '2' version: '2'
built_at: 2024-11-17 19:33:00
image_name: tgi image_name: tgi
docker_image: llamastack/distribution-tgi:test-0.0.52rc3 docker_image: llamastack/distribution-tgi:test-0.0.52rc3
conda_env: null conda_env: null

View file

@ -1,5 +1,4 @@
version: '2' version: '2'
built_at: '2024-10-08T17:40:45.325529'
image_name: local image_name: local
docker_image: null docker_image: null
conda_env: local conda_env: local

View file

@ -193,7 +193,6 @@ class StackBuild(Subcommand):
apis = list(build_config.distribution_spec.providers.keys()) apis = list(build_config.distribution_spec.providers.keys())
run_config = StackRunConfig( run_config = StackRunConfig(
built_at=datetime.now(),
docker_image=( docker_image=(
build_config.name build_config.name
if build_config.image_type == ImageType.docker.value if build_config.image_type == ImageType.docker.value

View file

@ -4,8 +4,6 @@
# This source code is licensed under the terms described in the LICENSE file in # This source code is licensed under the terms described in the LICENSE file in
# the root directory of this source tree. # the root directory of this source tree.
from datetime import datetime
from typing import Dict, List, Optional, Union from typing import Dict, List, Optional, Union
from pydantic import BaseModel, Field from pydantic import BaseModel, Field
@ -115,7 +113,6 @@ class Provider(BaseModel):
class StackRunConfig(BaseModel): class StackRunConfig(BaseModel):
version: str = LLAMA_STACK_RUN_CONFIG_VERSION version: str = LLAMA_STACK_RUN_CONFIG_VERSION
built_at: datetime
image_name: str = Field( image_name: str = Field(
..., ...,

View file

@ -6,7 +6,6 @@
import json import json
import tempfile import tempfile
from datetime import datetime
from typing import Any, Dict, List, Optional from typing import Any, Dict, List, Optional
from llama_stack.distribution.datatypes import * # noqa: F403 from llama_stack.distribution.datatypes import * # noqa: F403
@ -37,7 +36,6 @@ async def construct_stack_for_test(
) -> TestStack: ) -> TestStack:
sqlite_file = tempfile.NamedTemporaryFile(delete=False, suffix=".db") sqlite_file = tempfile.NamedTemporaryFile(delete=False, suffix=".db")
run_config = dict( run_config = dict(
built_at=datetime.now(),
image_name="test-fixture", image_name="test-fixture",
apis=apis, apis=apis,
providers=providers, providers=providers,

View file

@ -4,8 +4,6 @@
# This source code is licensed under the terms described in the LICENSE file in # This source code is licensed under the terms described in the LICENSE file in
# the root directory of this source tree. # the root directory of this source tree.
from datetime import datetime
from io import StringIO from io import StringIO
from pathlib import Path from pathlib import Path
@ -87,7 +85,6 @@ class RunConfigSettings(BaseModel):
return StackRunConfig( return StackRunConfig(
image_name=name, image_name=name,
docker_image=docker_image, docker_image=docker_image,
built_at=datetime.now().strftime("%Y-%m-%d %H:%M"),
apis=list(apis), apis=list(apis),
providers=provider_configs, providers=provider_configs,
metadata_store=SqliteKVStoreConfig.sample_run_config( metadata_store=SqliteKVStoreConfig.sample_run_config(