Add GCP staging container smoke
This commit is contained in:
parent
66ecbf316e
commit
90f232fb8f
4 changed files with 92 additions and 0 deletions
21
.dockerignore
Normal file
21
.dockerignore
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
.git
|
||||
.venv
|
||||
__pycache__
|
||||
*.pyc
|
||||
.pytest_cache
|
||||
.ruff_cache
|
||||
.mypy_cache
|
||||
.env
|
||||
*.env
|
||||
secrets/
|
||||
telegram-archives/
|
||||
transcripts/
|
||||
logs/
|
||||
pipeline.db
|
||||
pipeline.db-*
|
||||
*.sqlite
|
||||
*.sqlite3
|
||||
agentcash/
|
||||
.agentcash/
|
||||
.hermes/
|
||||
node_modules/
|
||||
30
Dockerfile.gcp-staging
Normal file
30
Dockerfile.gcp-staging
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
FROM python:3.11-slim
|
||||
|
||||
ENV PYTHONDONTWRITEBYTECODE=1
|
||||
ENV PYTHONUNBUFFERED=1
|
||||
ENV PIPELINE_BASE=/opt/teleo-eval
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends ca-certificates curl git bash \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY pyproject.toml README.md /app/
|
||||
COPY lib /app/lib
|
||||
COPY tests /app/tests
|
||||
COPY scripts /app/scripts
|
||||
COPY fixtures /app/fixtures
|
||||
COPY schemas /app/schemas
|
||||
COPY systemd /app/systemd
|
||||
COPY deploy /app/deploy
|
||||
COPY diagnostics /app/diagnostics
|
||||
COPY telegram /app/telegram
|
||||
COPY teleo-pipeline.py /app/teleo-pipeline.py
|
||||
COPY docker/gcp-staging-smoke.sh /usr/local/bin/gcp-staging-smoke
|
||||
|
||||
RUN pip install --no-cache-dir --upgrade pip \
|
||||
&& pip install --no-cache-dir -e ".[dev]" \
|
||||
&& chmod +x /usr/local/bin/gcp-staging-smoke
|
||||
|
||||
CMD ["/usr/local/bin/gcp-staging-smoke"]
|
||||
11
cloudbuild.gcp-staging.yaml
Normal file
11
cloudbuild.gcp-staging.yaml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
steps:
|
||||
- name: gcr.io/cloud-builders/docker
|
||||
args:
|
||||
- build
|
||||
- -f
|
||||
- Dockerfile.gcp-staging
|
||||
- -t
|
||||
- europe-west6-docker.pkg.dev/teleo-501523/teleo/teleo-pipeline-gcp-staging:66ecbf3-20260706
|
||||
- .
|
||||
images:
|
||||
- europe-west6-docker.pkg.dev/teleo-501523/teleo/teleo-pipeline-gcp-staging:66ecbf3-20260706
|
||||
30
docker/gcp-staging-smoke.sh
Normal file
30
docker/gcp-staging-smoke.sh
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
cd /app
|
||||
|
||||
python -m compileall -q lib telegram diagnostics teleo-pipeline.py
|
||||
|
||||
python -m pytest -q \
|
||||
tests/test_agent_routing.py \
|
||||
tests/test_decision_engine_replay.py \
|
||||
tests/test_phase1b_end_to_end.py \
|
||||
tests/test_research_eval_schema_sql.py \
|
||||
tests/test_teleo_agent_systemd.py
|
||||
|
||||
python - <<'PY'
|
||||
import json
|
||||
from lib.agent_routing import classify_pr_route
|
||||
|
||||
route = classify_pr_route(
|
||||
"diff --git a/domains/internet-finance/x402-wallets.md b/domains/internet-finance/x402-wallets.md\n"
|
||||
"+AI systems route agents around x402 payments and agent wallets.\n"
|
||||
)
|
||||
|
||||
print(json.dumps({
|
||||
"smoke": "teleo-gcp-staging-ok",
|
||||
"primary_agent": route.primary_agent,
|
||||
"required_agents": list(route.required_agents),
|
||||
"route_kind": route.route_kind,
|
||||
}, sort_keys=True))
|
||||
PY
|
||||
Loading…
Reference in a new issue