51a6e76e9e
CI / lint (pull_request) Successful in 16s
CI / typecheck (pull_request) Successful in 28s
CI / security (pull_request) Successful in 21s
CI / quality (pull_request) Successful in 14s
CI / integration_tests (pull_request) Failing after 6m34s
CI / unit_tests (pull_request) Successful in 6m46s
CI / build (pull_request) Successful in 15s
CI / docker (pull_request) Successful in 8s
CI / coverage (pull_request) Successful in 5m8s
Three fixes targeting CI integration_tests failures (18 failures on e8aa5ac):
1. Merge duplicate *** Settings *** blocks in 14 robot files into single
blocks. Multiple Settings sections are non-standard RF practice and
may cause resource import failures in certain Robot Framework versions
or CI environments.
2. Replace bare 'python' with ${PYTHON} variable in all Run Process
calls (14 files). Noxfile now passes --variable PYTHON:<venv-path>
to robot so tests use the venv interpreter regardless of PATH. This
fixes '/usr/local/bin/python: No module named cleveragents' on CI.
3. Add comprehensive CI debug output in noxfile.py: file existence
checks for .resource files, PATH/Python resolution, fixture dir
checks, and RF version. This will diagnose any remaining resource
import issues.
Also: remove hardcoded '/app/src' sys.path.insert in
system_prompt_template_rendering.robot (not portable to CI), and
add trailing newline to common.resource.
All 204 tests pass locally (4 excluded: 2 slow, 2 discovery).
43 lines
1.6 KiB
Plaintext
43 lines
1.6 KiB
Plaintext
*** Settings ***
|
|
Library OperatingSystem
|
|
Library Collections
|
|
Library Process
|
|
|
|
*** Variables ***
|
|
${PYTHON} python
|
|
|
|
*** 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} stdout=PIPE stderr=PIPE
|
|
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
|