b122ec7ed5
CI / lint (pull_request) Successful in 23s
CI / quality (pull_request) Successful in 51s
CI / typecheck (pull_request) Successful in 1m0s
CI / security (pull_request) Successful in 55s
CI / build (pull_request) Successful in 25s
CI / helm (pull_request) Successful in 32s
CI / push-validation (pull_request) Successful in 26s
CI / e2e_tests (pull_request) Successful in 3m38s
CI / integration_tests (pull_request) Successful in 6m42s
CI / unit_tests (pull_request) Successful in 8m19s
CI / docker (pull_request) Successful in 13s
CI / coverage (pull_request) Successful in 15m23s
CI / status-check (pull_request) Successful in 2s
Remove the local ${PYTHON} python (and python3) variable definitions from
the *** Variables *** sections of all affected robot files. These local
definitions were overriding the pabot-injected venv Python path passed via
--variable PYTHON:/path/to/venv/python, causing tests to use the system
Python (which lacks required packages like structlog, sqlalchemy, etc.)
instead of the nox venv Python.
The correct ${PYTHON} value is already set by Setup Test Environment in
common.resource via sys.executable, and pabot passes it via --variable.
The local fallback definitions are redundant and harmful in parallel runs.
Audit found 56 robot files with the pattern (more than the 9 originally
identified in the issue). All occurrences have been removed.
ISSUES CLOSED: #1309
47 lines
1.9 KiB
Plaintext
47 lines
1.9 KiB
Plaintext
*** Settings ***
|
|
Library OperatingSystem
|
|
Library Collections
|
|
Library Process
|
|
|
|
*** Test Cases ***
|
|
V2 Actor Config Produces Provider And Graph Descriptor
|
|
${config}= Set Variable ${OUTPUT DIR}/v2_actor.yaml
|
|
${content}= Catenate SEPARATOR=\n
|
|
... cleveragents:
|
|
... ${SPACE*2}default_router: main_router
|
|
... agents:
|
|
... ${SPACE*2}paper_writer:
|
|
... ${SPACE*4}type: llm
|
|
... ${SPACE*4}config:
|
|
... ${SPACE*6}provider: openai
|
|
... ${SPACE*6}model: gpt-4
|
|
... ${SPACE*6}unsafe: true
|
|
... ${SPACE*6}options:
|
|
... ${SPACE*8}temperature: 0.5
|
|
... routes:
|
|
... ${SPACE*2}main_router:
|
|
... ${SPACE*4}type: stream
|
|
... ${SPACE*4}operators:
|
|
... ${SPACE*6}- type: map
|
|
... ${SPACE*8}params:
|
|
... ${SPACE*10}agent: paper_writer
|
|
... ${SPACE*4}publications:
|
|
... ${SPACE*6}- __output__
|
|
Create File ${config} ${content}
|
|
${result}= Run Process ${PYTHON} robot/helper_actor_config.py ${config}
|
|
Should Be Equal As Integers ${result.rc} 0
|
|
${payload}= Evaluate __import__('json').loads('''${result.stdout.strip()}''')
|
|
Should Be Equal ${payload['provider']} openai
|
|
Should Be Equal ${payload['model']} gpt-4
|
|
Should Be True ${payload['unsafe']}
|
|
List Should Contain Value ${payload['graph_keys']} agents
|
|
List Should Contain Value ${payload['graph_keys']} routes
|
|
Should Be Equal As Numbers ${payload['options']['temperature']} 0.5
|
|
|
|
Missing Config File Exits With Non-Zero Code And Stderr Message
|
|
[Tags] tdd_issue tdd_issue_4202 tdd_expected_fail
|
|
${missing}= Set Variable ${OUTPUT DIR}/does_not_exist_actor.yaml
|
|
${result}= Run Process ${PYTHON} robot/helper_actor_config.py ${missing}
|
|
Should Not Be Equal As Integers ${result.rc} 0
|
|
Should Contain ${result.stderr} Error: Config file not found at '${missing}'
|