test(e2e): fix llm key skip guard
CI / load-versions (pull_request) Successful in 18s
CI / push-validation (pull_request) Successful in 28s
CI / lint (pull_request) Successful in 43s
CI / build (pull_request) Successful in 43s
CI / helm (pull_request) Successful in 46s
CI / typecheck (pull_request) Successful in 1m15s
CI / quality (pull_request) Successful in 1m14s
CI / security (pull_request) Successful in 1m30s
CI / unit_tests (pull_request) Successful in 6m11s
CI / docker (pull_request) Successful in 1m56s
CI / integration_tests (pull_request) Successful in 11m29s
CI / coverage (pull_request) Successful in 9m51s
CI / status-check (pull_request) Successful in 3s
CI / load-versions (pull_request) Successful in 18s
CI / push-validation (pull_request) Successful in 28s
CI / lint (pull_request) Successful in 43s
CI / build (pull_request) Successful in 43s
CI / helm (pull_request) Successful in 46s
CI / typecheck (pull_request) Successful in 1m15s
CI / quality (pull_request) Successful in 1m14s
CI / security (pull_request) Successful in 1m30s
CI / unit_tests (pull_request) Successful in 6m11s
CI / docker (pull_request) Successful in 1m56s
CI / integration_tests (pull_request) Successful in 11m29s
CI / coverage (pull_request) Successful in 9m51s
CI / status-check (pull_request) Successful in 3s
This commit is contained in:
committed by
Forgejo
parent
5605fb22da
commit
77146b147b
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user