diff --git a/.github/workflows/agent-e2e.yml b/.github/workflows/agent-e2e.yml index f8e416a3b..e818db1dd 100644 --- a/.github/workflows/agent-e2e.yml +++ b/.github/workflows/agent-e2e.yml @@ -34,7 +34,41 @@ jobs: OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} CONDUCTOR_SERVER_URL: http://localhost:8080/api + # 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 + SKIP_IMAGE_GEN: 'true' # no image models in the Orkes-Developers OpenAI project; dall-e-3 is retired, so re-enabling also needs gpt-image-1 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 + - name: Checkout code uses: actions/checkout@v4 @@ -93,6 +127,16 @@ jobs: - name: Run e2e suites run: ./gradlew :e2e:test -Pe2e + # 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 || true + # BaseTest assumeTrue-skips every suite when the server is unreachable — # without this guard a boot failure after the health gate (or a future # gate regression) would yield a green job that ran nothing. diff --git a/e2e/release/package-e2e-bundle.sh b/e2e/release/package-e2e-bundle.sh index 4a3db43a2..17d89b88d 100755 --- a/e2e/release/package-e2e-bundle.sh +++ b/e2e/release/package-e2e-bundle.sh @@ -117,7 +117,7 @@ test { environment 'CONDUCTOR_SERVER_URL', System.getProperty('CONDUCTOR_SERVER_URL', System.getenv('CONDUCTOR_SERVER_URL') ?: 'http://localhost:8080/api') environment 'CONDUCTOR_AGENT_LLM_MODEL', - System.getProperty('CONDUCTOR_AGENT_LLM_MODEL', System.getenv('CONDUCTOR_AGENT_LLM_MODEL') ?: 'openai/gpt-4o-mini') + System.getProperty('CONDUCTOR_AGENT_LLM_MODEL', System.getenv('CONDUCTOR_AGENT_LLM_MODEL') ?: 'openai/gpt-6-luna') } EOF sed -i.bak "s/@VERSION@/$VERSION/g" "$STAGE/build.gradle" && rm "$STAGE/build.gradle.bak" @@ -147,7 +147,7 @@ set -euo pipefail # - MCP testkit on http://localhost:9999/mcp (Suite4McpTools; URL is fixed # in the suite) # Optional: -# - CONDUCTOR_AGENT_LLM_MODEL (default openai/gpt-4o-mini); the matching provider +# - CONDUCTOR_AGENT_LLM_MODEL (default openai/gpt-6-luna); the matching provider # API key must be configured on the SERVER — the suites never read it # (asserted by Suite2ToolCallingCredentials). # @@ -157,7 +157,7 @@ HERE="$(cd "$(dirname "$0")" && pwd)" cd "$HERE" ./gradlew test \ -DCONDUCTOR_SERVER_URL="${CONDUCTOR_SERVER_URL:-http://localhost:8080/api}" \ - -DCONDUCTOR_AGENT_LLM_MODEL="${CONDUCTOR_AGENT_LLM_MODEL:-openai/gpt-4o-mini}" "$@" + -DCONDUCTOR_AGENT_LLM_MODEL="${CONDUCTOR_AGENT_LLM_MODEL:-openai/gpt-6-luna}" "$@" echo "Report: $HERE/build/reports/tests/test/index.html" EOF chmod +x "$STAGE/run.sh" @@ -177,7 +177,7 @@ Maven Central — no SDK source is vendored. Cut from |---------------------------------|------------------------|-----------------------------| | JDK 21 (Gradle wrapper bundled) | — | — | | Conductor server w/ agent runtime | `CONDUCTOR_SERVER_URL` | `http://localhost:8080/api` | -| LLM model | `CONDUCTOR_AGENT_LLM_MODEL` | `openai/gpt-4o-mini` | +| LLM model | `CONDUCTOR_AGENT_LLM_MODEL` | `openai/gpt-6-luna` | | MCP testkit (Suite4 only) | — (fixed in suite) | `http://localhost:9999/mcp` | The server needs the agent runtime: conductor-oss `>= 3.32.0-rc.8`, or diff --git a/e2e/src/test/java/BaseTest.java b/e2e/src/test/java/BaseTest.java index 5224165ff..4c005153c 100644 --- a/e2e/src/test/java/BaseTest.java +++ b/e2e/src/test/java/BaseTest.java @@ -47,7 +47,7 @@ public abstract class BaseTest { protected static final String BASE_URL = SERVER_URL.replace("/api", ""); /** LLM model to use in e2e tests. */ - protected static final String MODEL = System.getenv().getOrDefault("CONDUCTOR_AGENT_LLM_MODEL", "openai/gpt-4o-mini"); + protected static final String MODEL = System.getenv().getOrDefault("CONDUCTOR_AGENT_LLM_MODEL", "openai/gpt-6-luna"); private static final HttpClient HTTP_CLIENT = HttpClient.newBuilder().connectTimeout(Duration.ofSeconds(10)).build(); diff --git a/e2e/src/test/java/Suite7MediaTools.java b/e2e/src/test/java/Suite7MediaTools.java index 23a6e9d4a..7cc763598 100644 --- a/e2e/src/test/java/Suite7MediaTools.java +++ b/e2e/src/test/java/Suite7MediaTools.java @@ -22,6 +22,7 @@ import org.conductoross.conductor.ai.model.ToolDef; import org.conductoross.conductor.ai.tools.MediaTools; import org.junit.jupiter.api.*; +import org.junit.jupiter.api.condition.DisabledIfEnvironmentVariable; import static org.junit.jupiter.api.Assertions.*; import static org.junit.jupiter.api.Assumptions.assumeTrue; @@ -329,6 +330,11 @@ void test_no_media_tool_means_no_generate_in_plan() { */ @Test @Order(7) + @DisabledIfEnvironmentVariable( + named = "SKIP_IMAGE_GEN", + matches = "(?i)true", + disabledReason = "dall-e-3 has been removed from OpenAI's API ('model does not exist'), and its " + + "gpt-image-* replacements are not enabled in the Orkes-Developers OpenAI project") @SuppressWarnings("unchecked") void test_image_generation_openai_runtime_completes() { String apiKey = System.getenv("OPENAI_API_KEY");