From 77146b147bd935027237e883c8398a8c43d2fb1a Mon Sep 17 00:00:00 2001 From: CleverAgents Bot Date: Wed, 17 Jun 2026 22:09:38 -0400 Subject: [PATCH] test(e2e): fix llm key skip guard --- robot/e2e/common_e2e.resource | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/robot/e2e/common_e2e.resource b/robot/e2e/common_e2e.resource index 0fbb137d8..67657e52a 100644 --- a/robot/e2e/common_e2e.resource +++ b/robot/e2e/common_e2e.resource @@ -69,8 +69,7 @@ Skip If No LLM Keys ${openai_valid}= Run Keyword And Return Status Should Match Regexp ${openai_key} ^(sk|rk)-[A-Za-z0-9_-]+(\.[A-Za-z0-9_-]+)?$ ${anthropic_valid}= Run Keyword And Return Status Should Match Regexp ${anthropic_key} ^sk-(ant|live)-[A-Za-z0-9_-]+$ Set Log Level ${prev_level} - ${has_keys}= Set Variable ${openai_valid} - Run Keyword If not ${has_keys} ${has_keys}= Set Variable ${anthropic_valid} + ${has_keys}= Evaluate bool($openai_valid) or bool($anthropic_valid) Run Keyword If not ${has_keys} Skip No usable LLM API keys available (ANTHROPIC_API_KEY / OPENAI_API_KEY). Skipping E2E test. Resolve LLM Actor @@ -89,7 +88,7 @@ Resolve LLM Actor ... anthropic_model — actor name returned when the probe fails or ... the key is absent ... (default: anthropic/claude-sonnet-4-20250514). - [Arguments] ${openai_model}=openai/gpt-4o ${anthropic_model}=anthropic/claude-sonnet-4-20250514 + [Arguments] ${openai_model}=openai/gpt-4o ${anthropic_model}=anthropic/claude-sonnet-4-6 # Short-circuit: if the key is not present at all, skip the network probe. ${has_openai}= Evaluate bool(__import__('os').environ.get('OPENAI_API_KEY', '')) IF not ${has_openai}