Merge pull request #1777 from fix/templates-supported-runtime-tests
ci-arm64-advisory / fast-checks (push) Waiting to run
Lint shellcheck (arm64 pilot) / shellcheck-arm64 (pilot) (push) Successful in 9s
publish-workspace-server-image / build-and-push (push) Successful in 4m21s
Block internal-flavored paths / Block forbidden paths (push) Successful in 3s
CI / Detect changes (push) Successful in 5s
CI / Python Lint & Test (push) Successful in 5s
E2E API Smoke Test / detect-changes (push) Successful in 6s
E2E Chat / detect-changes (push) Successful in 6s
E2E Staging Canvas (Playwright) / detect-changes (push) Successful in 10s
Harness Replays / detect-changes (push) Successful in 7s
Handlers Postgres Integration / detect-changes (push) Successful in 8s
Lint forbidden tenant-env keys / Scan workspace_secrets writers for forbidden env keys (push) Successful in 4s
Lint no tenant GITEA or GITHUB token write / Scan for repo-host token write into tenant workspace surface (push) Successful in 5s
Secret scan / Scan diff for credential-shaped strings (push) Successful in 3s
Sweep stale AWS Secrets Manager secrets / Sweep AWS Secrets Manager (push) Successful in 6s
CI / Canvas (Next.js) (push) Successful in 2s
CI / Shellcheck (E2E scripts) (push) Successful in 3s
E2E API Smoke Test / E2E API Smoke Test (push) Successful in 1m50s
E2E Staging Canvas (Playwright) / Canvas tabs E2E (push) Successful in 2s
Harness Replays / Harness Replays (push) Successful in 5s
Sweep stale Cloudflare Tunnels / Sweep CF tunnels (push) Successful in 9s
Handlers Postgres Integration / Handlers Postgres Integration (push) Successful in 1m35s
CI / Platform (Go) (push) Successful in 5m16s
CI / all-required (push) Successful in 30m4s
E2E Chat / E2E Chat (push) Successful in 4m10s
publish-workspace-server-image / Production auto-deploy (push) Successful in 27m14s
CI / Canvas Deploy Reminder (push) Successful in 5s
Sweep stale e2e-* orgs (staging) / Sweep e2e orgs (push) Successful in 4s
main-red-watchdog / watchdog (push) Successful in 34s
Staging SaaS smoke (every 30 min) / Staging SaaS smoke (push) Successful in 5m39s
Continuous synthetic E2E (staging) / Synthetic E2E against staging (push) Successful in 4m56s
gate-check-v3 / gate-check (push) Successful in 25s

test: align template list fixtures with supported runtimes
This commit was merged in pull request #1777.
This commit is contained in:
2026-05-24 05:27:08 +00:00
@@ -86,6 +86,7 @@ func TestTemplatesList_WithTemplates(t *testing.T) {
configYaml := `name: Test Agent
description: A test agent
tier: 2
runtime: claude-code
model: anthropic:claude-sonnet-4-20250514
skills:
- web-search
@@ -546,7 +547,7 @@ func TestTemplatesList_OmitsProvidersWhenAbsent(t *testing.T) {
t.Fatalf("mkdir: %v", err)
}
configYaml := `name: Legacy
runtime: langgraph
runtime: hermes
runtime_config:
model: anthropic:claude-opus-4-7
skills: []
@@ -582,6 +583,7 @@ func TestTemplatesList_LegacyTopLevelModel(t *testing.T) {
}
configYaml := `name: Legacy Agent
tier: 1
runtime: claude-code
model: anthropic:claude-sonnet-4-6
skills: []
`
@@ -602,8 +604,8 @@ skills: []
if len(resp) != 1 || resp[0].Model != "anthropic:claude-sonnet-4-6" {
t.Errorf("legacy top-level model not surfaced: %+v", resp)
}
if resp[0].Runtime != "" {
t.Errorf("Runtime should be empty for legacy template, got %q", resp[0].Runtime)
if resp[0].Runtime != "claude-code" {
t.Errorf("Runtime should be claude-code for legacy template, got %q", resp[0].Runtime)
}
if len(resp[0].Models) != 0 {
t.Errorf("Models should be empty for legacy template, got %+v", resp[0].Models)