From d85628fe8060e06c39039d0df64f079ae7204379 Mon Sep 17 00:00:00 2001 From: Chris Hagglund Date: Thu, 12 Nov 2026 09:46:13 -0600 Subject: [PATCH 1/2] ci(agent-e2e): run on gpt-6-luna; skip the live gpt-image-1 test The OpenAI key is moving to the Orkes-Developers project, which only allows the gpt-5.6 / gpt-6 families. gpt-4o-mini also shuts down on 2027-01-14. - Set CONDUCTOR_AGENT_LLM_MODEL=openai/gpt-6-luna (was gpt-4o-mini). - Skip ImageGeneration_OpenAI_TaskCompletes: gpt-image-* is not enabled in the project. The PlanAsync-only media tests still run. - Add an "LLM provider check" first step that calls the model directly, so a dead key or quota fails in seconds, not at the 45-minute timeout. - Add a "Show server errors" step that prints server.log errors to the job log on failure or cancel. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/agent-e2e.yml | 44 ++++++++++++++++++++- Conductor.AI.E2eTests/Suite15_MediaTools.cs | 3 +- 2 files changed, 45 insertions(+), 2 deletions(-) diff --git a/.github/workflows/agent-e2e.yml b/.github/workflows/agent-e2e.yml index 068d03af..04b6f593 100644 --- a/.github/workflows/agent-e2e.yml +++ b/.github/workflows/agent-e2e.yml @@ -33,8 +33,40 @@ jobs: OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} CONDUCTOR_SERVER_URL: http://localhost:8080/api - CONDUCTOR_AGENT_LLM_MODEL: openai/gpt-4o-mini + # Default model for every suite. The Orkes-Developers OpenAI project only + # allows the gpt-5.6 / gpt-6 families; gpt-6-luna is OpenAI's replacement + # for gpt-4o-mini, which shuts down on 2027-01-14. + CONDUCTOR_AGENT_LLM_MODEL: openai/gpt-6-luna steps: + # A dead key, exhausted quota, retired model or provider outage makes + # every agent test wait out its timeout — the job then hits timeout-minutes + # before the runner reports a single failure. Call the model the suites use + # directly, before any setup: the HTTP status and body name the cause in + # seconds. No suite calls Anthropic through the server, so only OpenAI is + # checked. + - name: LLM provider check + timeout-minutes: 1 + run: | + fail=0 + probe() { # label, url, curl args... + local label=$1 url=$2; shift 2 + local code + code=$(curl -sS -m 15 -o "$RUNNER_TEMP/probe.json" -w '%{http_code}' "$url" "$@" \ + -H 'content-type: application/json') || true + echo "$label: HTTP $code" + if [ "$code" != 200 ]; then + echo "::error::$label check failed (HTTP $code; 000 = no response in 15s)" + cat "$RUNNER_TEMP/probe.json" 2>/dev/null || true; echo + fail=1 + fi + } + # Responses API, as the server uses; 16 is its minimum max_output_tokens. + openai_model=${CONDUCTOR_AGENT_LLM_MODEL#openai/} + probe "OpenAI $openai_model" https://api.openai.com/v1/responses \ + -H "authorization: Bearer $OPENAI_API_KEY" \ + -d "{\"model\":\"$openai_model\",\"input\":\"ping\",\"max_output_tokens\":16,\"reasoning\":{\"effort\":\"none\"}}" + exit $fail + - uses: actions/checkout@v4 - uses: actions/setup-dotnet@v4 @@ -90,6 +122,16 @@ jobs: --logger "trx;LogFileName=agent-e2e.trx" \ --results-directory results + # The uploaded server.log is lost when the run is re-run, and a run + # killed at timeout-minutes never reports its test failures — keep the + # server's own errors in the job log, which survives both. + - name: Show server errors + if: failure() || cancelled() + run: | + [ -f server.log ] || exit 0 + grep -nE ' (ERROR|WARN) |Exception|[Qq]uota|rate.?limit|\b(401|403|404|429)\b' server.log \ + | grep -vE 'cannot init (Cohere|Mistral)' | tail -150 + # A dead/unhealthy server makes every [SkippableFact] skip silently — that # must never read as green. Fail on 0 executed or server-unreachable skips. # Shared verbatim with the released bundle (package-e2e-bundle.sh copies diff --git a/Conductor.AI.E2eTests/Suite15_MediaTools.cs b/Conductor.AI.E2eTests/Suite15_MediaTools.cs index 18892007..77f3940d 100644 --- a/Conductor.AI.E2eTests/Suite15_MediaTools.cs +++ b/Conductor.AI.E2eTests/Suite15_MediaTools.cs @@ -158,7 +158,8 @@ public async Task MediaTools_MultipleDistinctTypesInPlan() // Mirrors Python's test_image_openai. Gated on OPENAI_API_KEY because // the GENERATE_IMAGE task calls the real OpenAI image API. - [SkippableFact] + [SkippableFact(Skip = "gpt-image-1 is not enabled in the Orkes-Developers OpenAI project " + + "(gpt-image-* models are not on its allowlist)")] public async Task ImageGeneration_OpenAI_TaskCompletes() { _fixture.RequireServer(); From 032f805d7ff622f31834cb511c66d72b13601481 Mon Sep 17 00:00:00 2001 From: Chris Hagglund Date: Mon, 16 Nov 2026 12:44:52 -0600 Subject: [PATCH 2/2] ci(agent-e2e): gate image/TTS tests on SKIP_IMAGE_GEN/SKIP_TTS env vars The live image and TTS tests now run by default and are skipped only when SKIP_IMAGE_GEN / SKIP_TTS is "true". agent-e2e.yml sets them, because the Orkes-Developers OpenAI project has no image or TTS models. Also keep "Show server errors" green when grep finds no match. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/agent-e2e.yml | 3 ++- Conductor.AI.E2eTests/Suite15_MediaTools.cs | 7 +++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/agent-e2e.yml b/.github/workflows/agent-e2e.yml index 04b6f593..b24e0fd2 100644 --- a/.github/workflows/agent-e2e.yml +++ b/.github/workflows/agent-e2e.yml @@ -37,6 +37,7 @@ jobs: # allows the gpt-5.6 / gpt-6 families; gpt-6-luna is OpenAI's replacement # for gpt-4o-mini, which shuts down on 2027-01-14. CONDUCTOR_AGENT_LLM_MODEL: openai/gpt-6-luna + SKIP_IMAGE_GEN: 'true' # gpt-image-* models are not enabled in the Orkes-Developers OpenAI project steps: # A dead key, exhausted quota, retired model or provider outage makes # every agent test wait out its timeout — the job then hits timeout-minutes @@ -130,7 +131,7 @@ jobs: run: | [ -f server.log ] || exit 0 grep -nE ' (ERROR|WARN) |Exception|[Qq]uota|rate.?limit|\b(401|403|404|429)\b' server.log \ - | grep -vE 'cannot init (Cohere|Mistral)' | tail -150 + | grep -vE 'cannot init (Cohere|Mistral)' | tail -150 || true # A dead/unhealthy server makes every [SkippableFact] skip silently — that # must never read as green. Fail on 0 executed or server-unreachable skips. diff --git a/Conductor.AI.E2eTests/Suite15_MediaTools.cs b/Conductor.AI.E2eTests/Suite15_MediaTools.cs index 77f3940d..bc17e1e5 100644 --- a/Conductor.AI.E2eTests/Suite15_MediaTools.cs +++ b/Conductor.AI.E2eTests/Suite15_MediaTools.cs @@ -158,13 +158,16 @@ public async Task MediaTools_MultipleDistinctTypesInPlan() // Mirrors Python's test_image_openai. Gated on OPENAI_API_KEY because // the GENERATE_IMAGE task calls the real OpenAI image API. - [SkippableFact(Skip = "gpt-image-1 is not enabled in the Orkes-Developers OpenAI project " - + "(gpt-image-* models are not on its allowlist)")] + [SkippableFact] public async Task ImageGeneration_OpenAI_TaskCompletes() { _fixture.RequireServer(); Skip.If(string.IsNullOrEmpty(Environment.GetEnvironmentVariable("OPENAI_API_KEY")), "OPENAI_API_KEY not set — skipping live image generation test."); + Skip.If(string.Equals(Environment.GetEnvironmentVariable("SKIP_IMAGE_GEN"), "true", + StringComparison.OrdinalIgnoreCase), + "gpt-image-1 is not enabled in the Orkes-Developers OpenAI project " + + "(gpt-image-* models are not on its allowlist)"); var agent = new Agent("s15_image_openai_rt") {