Files
cleveragents-core/robot/version_comprehensive_test.robot
T
brent.edwards 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
fix(ci): merge duplicate Settings blocks, inject venv Python, add CI debug
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).
2026-02-13 03:43:44 +00:00

37 lines
1.5 KiB
Plaintext

*** Settings ***
Documentation Comprehensive integration test for cleveragents --version
Library Process
Library OperatingSystem
Library String
Resource ${CURDIR}/v2_paths.resource
*** Variables ***
${PYTHON} python
${EXPECTED_VERSION} 0.1.0
*** Test Cases ***
Version Output Format Is Correct
[Documentation] Test that version output follows the expected format
${result} = Run Process ${PYTHON} -m cleveragents --version timeout=30s
Should Be Equal As Integers ${result.rc} 0
Should Match Regexp ${result.stdout} CleverAgents\\s+\\d+\\.\\d+\\.\\d+
Version Number Matches Expected
[Documentation] Test that version number matches expected value
${result} = Run Process ${PYTHON} -m cleveragents --version timeout=30s
Should Be Equal As Integers ${result.rc} 0
Should Contain ${result.stdout} 1.0.0
Version Command Completes Successfully
[Documentation] Test that version command completes successfully
${result} = Run Process ${PYTHON} -m cleveragents --version timeout=30s
Should Be Equal As Integers ${result.rc} 0
Version Works With Module Invocation
[Documentation] Test that version works when invoked as module
${result} = Run Process ${PYTHON} -m cleveragents --version
Should Be Equal As Integers ${result.rc} 0
Should Not Be Empty ${result.stdout}
Should Be Empty ${result.stderr}