Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 24 additions & 19 deletions .github/actions/run-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,25 +172,30 @@ runs:
echo "AGYN_AGENT_IMAGE=$AGYN_AGENT_IMAGE" >> "$GITHUB_ENV"
fi
required_init_envs=(
AGYN_AGENT_INIT_IMAGE
CODEX_INIT_IMAGE
AGN_INIT_IMAGE
CLAUDE_INIT_IMAGE
AGN_EXPOSE_INIT_IMAGE
)
missing_init_envs=()
for env_name in "${required_init_envs[@]}"; do
env_value=${!env_name:-}
trimmed_value=$(echo "$env_value" | xargs)
if [ -z "$trimmed_value" ]; then
missing_init_envs+=("$env_name")
fi
done
if [ "${#missing_init_envs[@]}" -gt 0 ]; then
printf 'Missing required init image environment variables: %s\n' \
"${missing_init_envs[*]}" >&2
exit 1
if [ -z "${CODEX_INIT_IMAGE:-}" ]; then
CODEX_INIT_IMAGE="ghcr.io/agynio/agent-init-codex:latest"
echo "CODEX_INIT_IMAGE=$CODEX_INIT_IMAGE" >> "$GITHUB_ENV"
fi
if [ -z "${AGYN_AGENT_INIT_IMAGE:-}" ]; then
# No agynio/agent-init image exists; default to the codex init image.
Comment thread
noa-lucent marked this conversation as resolved.
AGYN_AGENT_INIT_IMAGE="$CODEX_INIT_IMAGE"
echo "AGYN_AGENT_INIT_IMAGE=$AGYN_AGENT_INIT_IMAGE" >> "$GITHUB_ENV"
fi
if [ -z "${AGN_INIT_IMAGE:-}" ]; then
AGN_INIT_IMAGE="ghcr.io/agynio/agent-init-agn:latest"
echo "AGN_INIT_IMAGE=$AGN_INIT_IMAGE" >> "$GITHUB_ENV"
fi
if [ -z "${CLAUDE_INIT_IMAGE:-}" ]; then
CLAUDE_INIT_IMAGE="ghcr.io/agynio/agent-init-claude:latest"
echo "CLAUDE_INIT_IMAGE=$CLAUDE_INIT_IMAGE" >> "$GITHUB_ENV"
fi
if [ -z "${AGN_EXPOSE_INIT_IMAGE:-}" ]; then
AGN_EXPOSE_INIT_IMAGE="ghcr.io/agynio/agent-init-agn:latest"
echo "AGN_EXPOSE_INIT_IMAGE=$AGN_EXPOSE_INIT_IMAGE" >> "$GITHUB_ENV"
fi
if [ -z "${AGYN_MODEL_ID:-}" ]; then
Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/agn-cli-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,6 @@ jobs:
timeout-minutes: 60
permissions:
contents: read
env:
AGYN_AGENT_INIT_IMAGE: ghcr.io/agynio/agent-init:v1.0.0
CODEX_INIT_IMAGE: ghcr.io/agynio/agent-init-codex:0.13
AGN_INIT_IMAGE: ghcr.io/agynio/agent-init-agn:0.4
CLAUDE_INIT_IMAGE: ghcr.io/agynio/agent-init-claude:0.1
AGN_EXPOSE_INIT_IMAGE: ghcr.io/agynio/agent-init-agn:0.4
steps:
Comment thread
noa-lucent marked this conversation as resolved.
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -64,5 +58,5 @@ jobs:
with:
ref: ${{ github.sha }}
tag: svc_agn_cli
include-smoke: false
include_smoke: false
agn-binary: agn
19 changes: 13 additions & 6 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@ on:
pull_request:
push:
branches: [main]
workflow_dispatch:
inputs:
tag:
description: "Suite tag to run (e.g. svc_reminders)"
required: false
type: string
include_smoke:
description: "Include smoke suites"
required: false
default: true
type: boolean

concurrency:
group: e2e-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.sha }}
Expand All @@ -15,12 +26,6 @@ jobs:
timeout-minutes: 60
permissions:
contents: read
env:
AGYN_AGENT_INIT_IMAGE: ghcr.io/agynio/agent-init:v1.0.0
CODEX_INIT_IMAGE: ghcr.io/agynio/agent-init-codex:0.13
AGN_INIT_IMAGE: ghcr.io/agynio/agent-init-agn:0.4
CLAUDE_INIT_IMAGE: ghcr.io/agynio/agent-init-claude:0.1
AGN_EXPOSE_INIT_IMAGE: ghcr.io/agynio/agent-init-agn:0.4
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -34,3 +39,5 @@ jobs:
uses: ./.github/actions/run-tests
with:
ref: ${{ github.sha }}
tag: ${{ inputs.tag }}
include_smoke: ${{ inputs.include_smoke }}
13 changes: 5 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,11 @@ Optional domain override:

- `E2E_DOMAIN`

Full-chain tests require explicit init images:

- `AGN_INIT_IMAGE` (agn, for example `ghcr.io/agynio/agent-init-agn:0.4`)
- `CODEX_INIT_IMAGE` (codex, for example `ghcr.io/agynio/agent-init-codex:0.13`)
- `CLAUDE_INIT_IMAGE` (claude, for example `ghcr.io/agynio/agent-init-claude:0.1`)
- `AGN_EXPOSE_INIT_IMAGE` (go-core expose tests, for example `ghcr.io/agynio/agent-init-agn:0.4`)

For exact reproducibility, pin `*_INIT_IMAGE` to a patch tag
Full-chain tests use `AGN_INIT_IMAGE` (default `ghcr.io/agynio/agent-init-agn:latest`) for agn,
`CODEX_INIT_IMAGE` (default `ghcr.io/agynio/agent-init-codex:latest`) for codex,
`CLAUDE_INIT_IMAGE` (default `ghcr.io/agynio/agent-init-claude:latest`) for claude,
and `AGN_EXPOSE_INIT_IMAGE` (default `ghcr.io/agynio/agent-init-agn:latest`) for go-core expose.
For exact reproducibility, set `*_INIT_IMAGE` to a pinned patch tag
(for example, `ghcr.io/agynio/agent-init-agn:0.4.15`) or an image digest
(for example, `ghcr.io/agynio/agent-init-agn@sha256:<digest>`).

Expand Down
1 change: 1 addition & 0 deletions suites/go-core/buf.gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ inputs:
- module: buf.build/agynio/api
paths:
- agynio/api/agents/v1
- agynio/api/apps/v1
- agynio/api/authorization/v1
- agynio/api/files/v1
- agynio/api/gateway/v1/agents.proto
Expand Down
2 changes: 1 addition & 1 deletion suites/go-core/suite.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ required_env:
- CODEX_INIT_IMAGE
- AGN_EXPOSE_INIT_IMAGE
select: |
suite_tags=("svc_agents_orchestrator" "svc_runners" "svc_metering" "svc_k8s_runner" "svc_organizations" "svc_files" "svc_gateway" "svc_media_proxy" "smoke")
suite_tags=("svc_agents_orchestrator" "svc_runners" "svc_metering" "svc_k8s_runner" "svc_organizations" "svc_files" "svc_gateway" "svc_reminders" "svc_media_proxy" "smoke")

if [ -z "${TAGS:-}" ]; then
echo "smoke"
Expand Down
2 changes: 1 addition & 1 deletion suites/go-core/tests/diagnostics_helpers_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build e2e && (svc_agents_orchestrator || svc_runners || smoke)
//go:build e2e && (svc_agents_orchestrator || svc_runners || svc_gateway || svc_reminders || smoke)

package tests

Expand Down
Loading
Loading